I have textView
at the top and ListView
is below
I think scrolling up to the TextView
also scrolls the list fragment, but I want to scroll all the parent pieces when I'm scrolling the list < / P>
How to fix it
& lt; RelativeLayout Android:. Layout_width = "match_parent" android: layout_height = "match_parent" & lt; LinearLayout Android: layout_above = "@ + id / frame_add" Android: layout_width = "match_parent" android: layout_height = "match_parent" android: orientation = "vertical" & gt; & Lt; LinearLayout Android: paddingLeft = "16dp" Android: paddingRight = "16dp" Android: Orientation = "Horizontal" Android: layout_width = "match_parent" android: layout_height = "wrap_content" & gt; & Lt; Android: layout_height = "wrap_content" Android: layout_weight = "3" Android: text = "text" /> & Lt; Android: layout_height = "wrap_content" Android: layout_weight = "1" Android: text = "text" />; TextView = "center" Android: textSize = "10sp" Android: layout_width = "0dp" Android: Layout_weight = "1" Android: Text = "Text" /> and Android: Gravity = "Center" & lt; / LinearLayout & gt; & Lt; ListView android: paddingLeft = "16dp" Android: paddingRight = "16dp" Android: id = "@ + id / listFak" Android: layout_width = "match_parent" Android: layout_height = "wrap_content" & gt; & Lt; / ListView & gt; & Lt; / LinearLayout & gt; & Lt; Android: layout_height = "wrap_content" android: layout_alignParentBottom = "true" & gt; FrameLayout: Android: id = & Lt; TextView android: layout_width = "match_parent" android: layout_height = "wrap_content" android: text = "add" /> & Lt; / FrameLayout & gt; & Lt; / RelativeLayout & gt;
Thanks I found: Simple Adapter Adapter = New Simple Adapter (This, Map, R .layout.list_item, to, from); See v = View.inflate (this, R.layout.list_item, null); List.addHeaderView (v); List.setAdapter (adapter);
No comments:
Post a Comment