45

Recycler displays both horizontal and vertical scrolling

 2 years ago
source link: https://www.codesd.com/item/recycler-displays-both-horizontal-and-vertical-scrolling.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Recycler displays both horizontal and vertical scrolling

advertisements

I need both horizontal scrolling and vertical scrolling. how can be it possible using recycler views, or should i use 2 way views? Any one help me please. How will set the adapter for the same?


you can add recycler view to your layout file

<android.support.v7.widget.RecyclerView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/recycler_view"
            xmlns:android="http://schemas.android.com/apk/res/android" />

In java file set its orientation to horizontal or vertical

LinearLayoutManager LayoutManager = new LinearLayoutManager(this);
LayoutManager.setOrientation(LinearLayoutManager.HORIZONTAL);// or LinearLayoutManager.VERTICAL
RecyclerView.setLayoutManager(LayoutManager);

Related Articles

How do I make my layout scroll both horizontally and vertically?

I am using a TableLayout. I need to have both horizontal and vertical scrolling for this layout. By default I am able to get vertical scrolling in the view but horizontal scrolling is not working. I am using Android SDK 1.5 r3. I have already tried a

How to implement infinite horizontal and vertical scrolling in UICollectionView in iOS 6?

I'm trying to implement infinite horizontal and vertical scrolling from within a UICollectionView in iOS 6. I have managed to get it working, but it's slow and choppy. There are similar questions asked on StackOverflow but the deepest any of them go

HTML table with horizontal and vertical scroll bars on demand

I want a HTML-table to show the scrollbars (both horizontal and vertical), as soon as the browser window becomes too small to fully show the table. Please see the following example: JSFiddle example I suspect the main-div to be the faulty one: .myMai

Android GridView with horizontal and vertical scroll bars at the same time

I am new to Android and Have to Port a Windows Mobile Application to an Android Application. Issue: I need GridView in Android similar to .net GridView which is able to scroll in both Horizontal and Vertical directions at the same time. As there are

Imitate horizontal and vertical scrolling combined in the iOS iTunes store

I'm trying to create a screen similar to that in the new iTunes store: That is, a grid that's scrollable both horizontally and vertically. The first approach I've tried involved creating a UITableView (for the vertical rows) and, within each UITableV

How to implement horizontal and vertical scrolling in RecyclerView?

Curently I'm using ViewPager to achieve Horizontal and Vertical Scrolling in a RecyclerView with LinearLayoutManager set to LinearLayoutManager.VERTICAL. Is there any better approach to do the same?you have to set layout manager to recycler view with

How to give a horizontal and vertical scroll bar in IE

<!DOCTYPE html> <html> <head> </head> <body> <div id="divScroll" style="width: 100%;overflow-x: scroll;overflow-y: scroll;"> <table width="100%"> <tr> <td>Name</td>

layout_weight both horizontal and vertical

I have a situation like this: I have layout like this: <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <RelativeLayout android:layout_width=&q

UICollectionView: How to define a UICollectionViewLayout that supports horizontal and vertical scrolling?

At the moment I'm trying to create an UICollectionView, that should display a simple excel-like-spreadsheet, with rows and columns. This should be an easy task with UICollectionViews, I believed. And I really would like to do the implementation in UI

Fixed GridView header with horizontal and vertical scrolling in asp.net

I want to fix(Freeze) gridview header while vertical scrolling. I also want to fix first column while horizontal scrolling. I want this in both chrome and IE.It is possible to apply the specific GridView / Table layout via custom CSS rules (as it was

Remove the horizontal and vertical scroll bar for Facebook apps

I have created a facebook apps. It works fine for me. But my problem is that always show vertical and horizontal scrollbar, when I use fluid for both width and height of my page from facebook settings. My page looks like this http://karen.webmascot.c

How to manage the horizontal and vertical scroll bar in the selection box?

I want to add horizontal scroll bar in select box.i have tried with div section with following code sample,but <div id="topicsInterest_id" style="width:180px;height:280px;overflow-y:hidden;overflow-x:scroll;"> <select id="

Adding horizontal and vertical scrolling to a table

I have a table: <div> <div className="shadow-z-1"> <table className="table table-bordered table-hover"> <thead> <tr> <th>ID</th> <th>First Name</th> <th>Last Name</th> &

Fixed head table with horizontal and vertical scrolling

I have calendar with list of users in left side and in right side - dates with cell. On top I need fix dates when scroll page to bottom. I don't know how I can make it because I have <table> with dates in main <table> with overflow: scroll, be

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK