I am using VerticalGridFragment to display items in a grid-like layout I don\'t need to show search or title and I want the rows to start from top of the screen without any marg
First of follow this steps to move the rows up which is by default given margins by Lean back Library
.
1. Go to you SDK
.
2. Inside SDK -> extras -> android -> support -> v17 -> leanback -> res -> values.
3. Inside values folder copy the dimens.xml inside your current project and copy to your projects res -> values folder
.
Now you have the file name dimens.xml inside your values folder
.
Now open the dimens.xml file which you have copied
.
Change the value for property defined below. By default it will given 168dp around that. So make it less to decrease the top margin as i have given below.
35dp
Now you can be able to split your rows up exact below of top section of your Browse Fragment
.