Created a two-way scrollable gridlayout for a television application
layout structure from layout file
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#021257" android:orientation="vertical"> <HorizontalScrollView android:layout_width="match_parent" android:layout_height="wrap_content" android:fillViewport="true"> <LinearLayout android:layout_width="wrap_content" android:layout_height="match_parent"> <android.support.v7.widget.RecyclerView xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/rvThumbnail" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#021257" android:orientation="vertical"/> </LinearLayout> </HorizontalScrollView> </LinearLayout>
so I used the gridlayoutmanager (orientation vertical) and spancount equal to 49 (24 hours * 2) +1 for images displaying columns. the first line displays the timeline , divided by half an hour, and the first column displays the channels , each channel will have its own programs running under different time intervals. Now that I have reached the gridlayout scroll in both directions, now I have two more things.

1) When scrolling horizontally, the channel column (the first column) also scrolls and, therefore, is hidden (it should scroll vertically, although there may be 20 + channels). Now I need to make this column stationary by scrolling horizontally, and the rest of the remaining columns should scroll normally
2) . When scrolling vertically, the timeline line (first line) also scrolls and therefore hides (it should scroll horizontally, since the line should be displayed for 24 hours). Now I need to make this static wen line scroll vertically and the rest of the lines should scroll normally.
Can this be achieved? I appreciate your help.
DJphy source share