2013年8月11日星期日

Android In ListActivity how to add Button

top In ListActivity , the picture is header.xml layout, the left of the " Back " button in case of non-root directory is displayed on the right of the " refresh " button always shows ! The method used to set

------ Solution ------- -------------------------------------
listview in the first line when loading head . xml layout , and set the monitor events related to the other line is loaded item.xml
------ Solution ---------------------- ----------------------
in listview of the above plus a linearlayout Well

or use framelayout
------ Solution --------------------------------- -----------
in header.xml the top of this page layout , first add a Linearlayout Well
------ Solution ----------- ---------------------------------
you this activity corresponds layout layout file is not header.xml? Is the case in the inside plus .
------ Solution ---------------------------------------- ----
void addHeaderView (View v, Object data, boolean isSelectable)
Add a fixed view to appear at the top of the list.
void addHeaderView (View v)
Add a fixed view to appear at the top of the list.

http://developer.android.com/reference/android/widget/ListView.html
------ For reference only --------------- ------------------------

in the Activity inside Canada ?

没有评论:

发表评论