HorizontalGridView from lean back i want to keep item in center

时间:2018-12-19 11:12:25

标签: android-layout android-tv leanback

I have list of item, i am using HorizontalGridView to display that item, i want to keep the HorizontalGridView in center of the screen but its not working.

Following is my code:

<android.support.v17.leanback.widget.HorizontalGridView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:visibility="visible"
    android:layout_centerHorizontal="true"/>

But it occupies complete width and height even-though there is less item Note: I am developing for android tv using leanback library

0 个答案:

没有答案