Layout Design -android -



Layout Design -android -

i want create design below image showing popup window.

i've tried

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#00154271" > <linearlayout android:id="@+id/linearlayout1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerinparent="true" android:background="#154271" android:orientation="vertical" > <linearlayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="20dp" android:orientation="vertical" > <textview android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="it&apos;s popupwindow" /> <imageview android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/ic_launcher" /> <button android:id="@+id/dismiss" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="dismiss" /> </linearlayout> </linearlayout> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignbottom="@+id/linearlayout1" android:layout_alignparentright="true" android:layout_marginbottom="126dp" android:layout_marginright="58dp" android:src="@drawable/icon_facebook" /> </relativelayout>

i think not perfect devices because close image using margin properties. differ devices. how create above design devices.?

try way,hope help solve problem.

<framelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="match_parent" android:background="#00154271" > <linearlayout android:id="@+id/linearlayout1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#154271" android:orientation="vertical" android:layout_margin="20dp"> <linearlayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="20dp" android:orientation="vertical" > <textview android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="it&apos;s popupwindow" /> <imageview android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/ic_launcher" /> <button android:id="@+id/dismiss" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="dismiss" /> </linearlayout> </linearlayout> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:src="@drawable/ic_launcher" /> </framelayout>

android android-layout

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -