android - Why is listview items length set by the first item -


i created horizontal scrollable listview. , can populated db without problem. problem is; entire length of items setted length of first item.

like this

<relativelayout     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:orientation="horizontal">   <horizontalscrollview         android:layout_width="fill_parent"         android:layout_height="fill_parent" >             <listview                 android:layout_width="match_parent"                 android:layout_height="wrap_content"/>    </horizontalscrollview> </relativelayout> 

simple solution problem use recyclerview instead of list view. adding horizontalscrollview linearlayout not work. have tried many solutions posted here , finnaly solution recyclerview. , here learned use this.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -