expandablelistview - HorizontalScrollView in ExpandableList Android -
am trying implement horizontalscrollview in expandablelist group. group not expanding while clicking. when remove horizontalscrollview works normally.
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/boilerbg" android:layout_marginright="15dip" android:layout_marginleft="15dip" android:gravity="center_vertical" > <imageview android:id="@+id/tag_img" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentright="true" android:layout_alignparenttop="true" android:layout_marginright="5dip" android:src="@drawable/group_down" /> <horizontalscrollview android:id="@+id/horizontalscrollview1" android:layout_width="150dip" android:layout_height="20dip" android:layout_alignparentleft="true" android:layout_centervertical="true" android:cachecolorhint="#00000000" android:layout_marginleft="15dip" android:isscrollcontainer="false" android:descendantfocusability="blocksdescendants" android:clickable="true" android:scrollbars="none" > <textview android:id="@+id/group_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" android:textcolor="#727272" android:textsize="14dip" android:textstyle="bold" /> </horizontalscrollview>
a scrollview can contain 1 object.
replace textview linearlayout (or layout prefer) , let hold textviews.
Comments
Post a Comment