problem to make scroll able,set scroll for whole layout android -


To display more information in the list view, make the layout to show the content in the list view and in the list view below. I was just showing 4 lines in the list view and the next time I click on the button then 4 rows are added to the list again, so now my button goes down on the screen so that how to create a full layout scroll So i'm up Can scroll to the layout and go to the button.

the listplacehold.xml is

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; RelativeLayout xmlns: android = "Http://schemaskandroidkcom/apk/res/android" android: orientation = "vertical" android: Layout_width = "Fill_parent" Android: Layout_height = "Fill_parent" android: background = "# 1 A77 BD "& gt; & Lt; Android: layout_height = "wrap_content" android: layout_weight = "1" android: drawSelectorOnTop = "false" /> & Lt; Android: id = "@ + id / horizontolline" Android: layout_width = "fill_parent" android: layout_height = "1dip" Android: layout_below = "@ id / android: list" Android: background = "# 000000" /> & Lt; Android: layout_height = "wrap_content" android: text = "load more ..." Android: textcolor = "@color / white" android: id = "@ + id / keywordsearchbutton" = "@ Id / horizontolline" Android: drawableLeft = "@ drawable / load_more_off" Android: gravity = "left | center_vertical" Android: background = "# 1A77BD" /> & Lt; / RelativeLayout & gt; And the item layout for the list is: listitem.xml & lt; RelativeLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: Orientation = "Vertical" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" & gt; & Lt; ImageView Android: id = "@ + id / img" Android: layout_height = "wrap_content" Android: layout_width = "wrap_content" /> & Lt ;! - Location where barreo items will be displayed - & gt; & Lt; TextView android: id = "@ + id / reportid" Android: layout_marginLeft = "70dip" android: text = "reporet ID" Android: textcolor = "@ color / white" Android: layout_height = "wrap_content" Android: layout_width = "wrap -content "/> & Lt; TextView android: id = "@ + id / status" Android: textcolor = "@ color / white" android: text = "status" Android: layout_marginTop = "40dip" Android: layout_marginLeft = "200dip" Android: Layout_width = "Wrap_content" Android: layout_height = "wrap_content" /> & Lt; TextView android: id = "@ + id / title" android: text = "Title" Android: Layout_marginLeft = "L50dip" Android: textcolor = "@ color / white" Android: Layout_width = "Wrap_content" Android: Layout_height = "Wrap_content" /> & Lt; TextView android: id = "@ + id / Date" android: text = "Dateeeeeee" Android: layout_marginLeft = "70dip" Android: layout_marginTop = "40dip" Android: Textcolor = "@ color / white" Android: Layout_width = "Wrap_content" Android: layout_height = "wrap_content" /> & Lt; / RelativeLayout & gt;   

The button is being dynamically loaded when the button is clicked on the list view

I think the scrolls on "listplacehold.xml" on XML tools Will be set, but how ?, when I'm doing it is set to half screen, this means that it is not fully displayed ... Thanks for the help in advance. Do not use ScrollView with a combination of

text ">

list view . Instead, make your layout as such.

 < Code> & lt ;? xml version = "1.0" encoding = "UTF-8"? & Gt; RelativeLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: Android: layout_height = "fill_parent" Android: background = "# 1A 77BD"> Button Android: id = "@ + id / lodmore" Android: layout = "@ + id / lodmore" Android: layout_width = "fill_parent" Text = "load more ..." Android: textcolor = "@color / white" A Droid: id = "@ + id / keywordsearchbutton" Android: layout_width = "Fill_parent" android: layout_height = "wrap_content" android: layout_alignParentBottom = "true" "Android: drawableLeft =" @ drawable / load_more_off "android: gravity =" left | Center_vertical "Android: background =" # 1A77BD "/> & Lt; Android: id = "@ + id / horizontolline" android: layout_width = "fill_parent" android: layout_height = "1dip" Android: layout_above = "@ id / loadmore" Android: background = "# 000000" /> & Lt; Android: id = "@ + id / android: list" android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_weight = "1" Android: layout_liginature desktop = "true" Android: layout_break = "@ id / Horizontal line> & gt; & lt; / relativeLayout & gt;    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -