android - How to open List view in a specific place of activity? -


i want open list view bottom of screen little high of middle of screen. have no idea how it. have idea it done fragment , not know how use in current activity , xml want shown in following picture :

enter image description here

i hope question quite clear. know how implement list view not know ho implement in way wanted (i mean appear , disappear out disturbing other views). list should overlay other views.

edit

including xml file if can see have done in design

 <?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"    >   <framelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"    >      <imageview         android:layout_width="match_parent"         android:layout_height="match_parent"         android:contentdescription="content_desc_overlay"         android:src="@drawable/ic_launcher"         android:id="@+id/img_view"          />       <imageview         android:layout_width="fill_parent"         android:layout_height="fill_parent"         android:id="@+id/iv_overlay"         android:src="@drawable/doom"         android:scaletype="matrix"          />  </framelayout>       <button         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="open list"         android:id="@+id/btn_screenshot"         android:layout_gravity="right|top"         />  </relativelayout> 

any suggestion ? source code appreciated.

put list view in separate blank activity , in manifest put theme of activity dialog

<activity         android:name=".ui.activities.editsignatureactivity"         android:label="@string/title_activity_edit_signature"         android:theme="@android:style/theme.holo.light.dialog" >     </activity> 

and on click of open list button start new intent:

public void openlistbutton_onclick(view v) {     intent intent = new intent(homeactivity.this, list.class);     startactivity(intent); } 

don't forget resize new listview activity as want dimensions , add margins fit position need


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -