Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Gridview not showing the items in HorizontalScrollView

AshokVeldi.8296AshokVeldi.8296 USMember
edited January 2017 in Xamarin.Android

Hi, I am trying to display the gridview with 3 columns in HorizontalScrollView and my layout is like

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="" xmlns:tools="" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="1dp" android:orientation="vertical"> <HorizontalScrollView android:layout_width="match_parent" android:layout_height="wrap_content" android:scrollbars="none" android:id="@+id/title_horizontalScrollView" android:layout_margin="1dp" android:fillViewport="false"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <GridView android:id="@+id/videoGridView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:stretchMode="columnWidth" /> </LinearLayout> </HorizontalScrollView> </LinearLayout>

while i am adding items to gridview adapter it is showing empty space without items.Please help me how to display HorizontalScrollView with gridview items.

Sign In or Register to comment.