android - Floating imageview with text and buttons -
i loading images db listview , want create floating window. once 1 of them clicked floating window pic attached.
i know how handle onclick events list can't find way create activity layout correctly

and came far -
<?xml version="1.0" encoding="utf-8"?> <framelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/image_dialog_root"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:background="@android:color/transparent"     android:gravity="center"     android:paddingleft="5dp"     android:paddingright="5dp" >      <imageview         android:id="@+id/your_image"         android:layout_width="fill_parent"         android:layout_height="fill_parent"         android:scaletype="centerinside"         android:src="@drawable/ab" />      <textview         android:id="@+id/image_desc"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:background="@android:color/background_light" />      <relativelayout         android:layout_width="wrap_content"         android:layout_height="wrap_content" >          <button             android:id="@+id/open_in_other_app"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignparentbottom="true"             android:layout_marginright="5dp"             android:text="button1" />          <button             android:id="@+id/close_image_view"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignparentbottom="true"             android:layout_marginleft="5dp"             android:text="button2" >         </button>     </relativelayout>  </framelayout>      
with @twntee advice , serach got articale solved problem - http://www.mkyong.com/android/android-custom-dialog-example/
Comments
Post a Comment