Android ListView scrollable with TextView -


i have textview on top , listview on bottom.

i want when i'm scrolling list textview scrolling , down. scrolling list fragment want scroll parent fragment.

how fix it?

<relativelayout android:layout_width="match_parent" android:layout_height="match_parent" <linearlayout     android:layout_above="@+id/frame_add"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical">             <linearlayout         android:paddingleft="16dp"         android:paddingright="16dp"         android:orientation="horizontal"         android:layout_width="match_parent"         android:layout_height="wrap_content">         <textview             android:textsize="10sp"             android:layout_width="0dp"             android:layout_height="wrap_content"             android:layout_weight="3"             android:text="text"/>         <textview             android:gravity="center"             android:textsize="10sp"             android:layout_width="0dp"             android:layout_height="wrap_content"             android:layout_weight="1"             android:text="text"/>         <textview             android:gravity="center"             android:textsize="10sp"             android:layout_width="0dp"             android:layout_height="wrap_content"             android:layout_weight="1"             android:text="text"/>         </linearlayout>         <listview         android:paddingleft="16dp"         android:paddingright="16dp"         android:id="@+id/listfak"         android:layout_width="match_parent"         android:layout_height="wrap_content">         </listview>    </linearlayout> <framelayout     android:id="@+id/frame_add"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:layout_alignparentbottom="true">     <textview         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="add"/> </framelayout> </relativelayout> 

thank got solution: simpleadapter adapter = new simpleadapter(this,maps,r.layout.list_item,from,to); view v = view.inflate(this,r.layout.list_item,null); list.addheaderview(v); list.setadapter(adapter);


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -