2

In my application, I have to show a timetable as below. enter image description here

Where subject can be changed by clicking on the 3 dot menu and which should be updated immediately.Also, both horizontal and vertical scrolling must be possible, when user scrolls horizontally then the Y-axis header should be frozen and when scrolls vertically then X-axis header should be frozen.How to create this in android?

Jitesh Mohite
  • 31,138
  • 12
  • 157
  • 147
KJEjava48
  • 1,967
  • 7
  • 40
  • 69
  • This is a good place to start https://stackoverflow.com/a/7120175/493321 – Anuj Nov 24 '17 at 05:57
  • Recycler View with GridLayoutManager will help you out. https://inducesmile.com/android/android-gridlayoutmanager-with-recyclerview-in-material-design/ – Sreehari Nov 24 '17 at 06:10
  • @Stallion But how to create a syncronizable scrollable X &Y Header when using Recycler view ?? – KJEjava48 Nov 24 '17 at 06:16
  • @basilisk I need a 3 dot facility in each data cell like in the image – KJEjava48 Nov 24 '17 at 06:22
  • First you check out how to use RecyclerView with a sample. Now the three dots and actions are all customisable according to your requirement. What do you mean by synchronizable scrollable? The lock of X and Y correspondingly is something I am not sure about. – Sreehari Nov 24 '17 at 06:27
  • @Stallion I know to use recycler view, but i didn't know how to use a X and Y header which match with the recycler view scrolling.If there is no header i can easily use a recyclerview. – KJEjava48 Nov 24 '17 at 06:32

1 Answers1

4

Use Recyclerview in HorizontalScrollview

It will work perfectly..

 <HorizontalScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">

          <android.support.v7.widget.RecyclerView
                android:id="@+id/recyclerview"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

            </android.support.v7.widget.RecyclerView>


</HorizontalScrollView>
Adil
  • 812
  • 1
  • 9
  • 29