android - Alignment layout at the bottom with listview -


I have a list view and a linerlayout (bottom bar) at the bottom. When the list view expands, I can not scroll properly because the bottom linear layout has seen the meeting.

I do not understand where the problem is ... I want to separate the bottom strip from the list view.

This is my layout (possibly, can you customize this layout?):

   & Lt; / RelativeLayout & gt; & Lt; LinearLayout Android: layout_width = "match_parent" Android: layout_height = "50dp" Android: Orientation = "Horizontal" Android: layout_gravity = "bottom" style = "@ Android: Style / Widget.Holo.Light.ActionBar.Solid" & gt; & Lt; Spinner Android: Android: Android: Android: Layout_Wind = "wrap_ content" Android: layout_heat = "wrap-content" Android: layout_weight = "1" Android: layout_gravity = "center_weight" Android: layout_margin = "8dp" & gt; & Lt; Android: layout_height = "wrap_content" Android: layout_weight = "1" Android: layout_gravity = "center_vertical" /> Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" android: src = "@drawable / ic_search" android: background = "@not" Android: layout_weight = "1" Android: layout_gravity = "center_vertical" /> ; & Lt; / LinearLayout & gt; & Lt; / FrameLayout & gt;   

Thanks!

The problem is that your frame layout is' not to prevent your views overlapping, this is the reason That your list view is visible below.

  & lt; FrameLayout xmlns: A solution that will not need to make more changes, keep your bottom linearLayout inside your RelativeLayout and things will be used to alignParentBottom and layout_above condition attributes Android = "http://schemas.android.com/ Apk / res / android "xmlns: tools =" http://schemas.android.com/tools "Android: layout_width =" match_parent "Android: layout_height =" match_parent "tool: reference =" com.robertot.timereport.com. Robertot.timereport.pages.WeeklyStatFragment "& gt; & Lt; RelativeLayout Android: id = "@ + id / rlList" Android: layout_width = "match_parent" Android: layout_height = "match_parent" & gt; Android: Android: Android: Android: Android: Layout_Above = "@ + ID / Star_Linar" /> & Lt; ListView Android: AD = "@ + ID / List Vick" Android: Layout_width = "Filled_preview" Android: & lt; LinearLayout Android: id = "@ + id / bottom_linear" Android: layout_width = "match_parent" Android: layout_height = "50dp" Android: orientation = "horizontal" Android: layout_gravity = "bottom" android: layout_alignParentBottom = "true" style = " @Android: Style / Widget.Holo.Light.ActionBar.Solid "& gt; & Lt; Spinner Android: Android: Android: Android: Layout_Wind = "wrap_ content" Android: layout_heat = "wrap-content" Android: layout_weight = "1" Android: layout_gravity = "center_weight" Android: layout_margin = "8dp" & gt; & Lt; Android: layout_height = "wrap_content" Android: layout_weight = "1" Android: layout_gravity = "center_vertical" /> & Lt; Android: layout_height = "wrap_content" Android: src = "@ drawable / ic_search" Android: Background = "@ Null" Android: layout_weight = "1" imageButton Android: id = "@ + id / btnFilter" Android: layout_width = "wrap_content" "Android: layout_gravity =" center_vertical "/> & Lt; / LinearLayout & gt; & Lt; / RelativeLayout & gt; & Lt; / FrameLayout & gt;    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -