android - Animated ExpandableListView in Scrollview -


i trying implement animated expandablelistview in scrollview layout. when expand category scroll not working. if method please me. in advance!

this xml code:

<scrollview         android:id="@+id/scroll_view"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_below="@+id/nav_header_container"         android:overscrollmode="never"         android:scrollbars="none">          <linearlayout             android:id="@+id/ll_scroll"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:orientation="vertical">              <linearlayout                 android:id="@+id/ll_home_category"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:background="@drawable/layout_press_color"                 android:orientation="horizontal"                 android:padding="@dimen/standard_padding">                   <imageview                     android:id="@+id/item_header_image"                     android:layout_width="25dp"                     android:layout_height="25dp"                     android:layout_centervertical="true"                     android:src="@drawable/ic_home" />                  <com.vrin.sga.uc.textview_open_sans_light                     android:id="@+id/txt_category"                     style="@style/normal_textview_white"                     android:layout_width="wrap_content"                     android:layout_height="wrap_content"                     android:layout_gravity="center_vertical"                     android:layout_marginleft="@dimen/standard_padding"                     android:text="home"                     android:textcolor="@color/black" />              </linearlayout>              <view                 android:id="@+id/view"                 android:layout_width="260dp"                 android:layout_height="1dp"                 android:layout_below="@+id/ll_home_category"                 android:background="@color/line_seperator" />              <com.vrin.sga.widget.animatedexpandablelistview                 android:id="@+id/left_drawer"                 android:layout_width="260dp"                 android:layout_height="match_parent"                 android:layout_below="@+id/view"                 android:layout_gravity="start"                 android:childdivider="@null"                 android:choicemode="singlechoice"                 android:divider="@null"                 android:groupindicator="@null"                 android:listselector="@drawable/selector_category"                 android:overscrollmode="never"                 android:scrollbars="none"/>              <view                 android:id="@+id/view_seperator"                 android:layout_width="fill_parent"                 android:layout_height="1dp"                 android:layout_below="@+id/left_drawer"                 android:layout_marginbottom="10dp"                 android:background="@color/line_seperator"                 android:orientation="horizontal" />              <linearlayout                 android:id="@+id/ll_categories"                 android:layout_width="fill_parent"                 android:layout_height="wrap_content"                 android:background="@color/light_black">                  <com.vrin.sga.uc.textview_open_sans_light                     android:id="@+id/txtcategory"                     style="@style/normal_textview_white"                     android:layout_width="fill_parent"                     android:layout_height="wrap_content"                     android:layout_marginleft="3dp"                     android:padding="8dp"                     android:text="@string/category"                     android:textallcaps="true" />             </linearlayout>              <linearlayout                 android:id="@+id/ll_view"                 android:layout_width="match_parent"                 android:layout_height="match_parent"                 android:orientation="vertical" />         </linearlayout>     </scrollview> 

use method hope may helps out..!

left_drawer.setontouchlistener(new view.ontouchlistener() {         @override         public boolean ontouch(view v, motionevent event) {             v.getparent().requestdisallowintercepttouchevent(true);             return false;         }     }); 

Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -