Pages

Saturday, September 8, 2012

Android Example of frame layout


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@drawable/day">

<FrameLayout
android:layout_width="match_parent"
  android:layout_height="match_parent"
>
<ImageView
        android:id="@+id/ImageView01"
        android:layout_height="fill_parent"
        android:layout_width="fill_parent"
        android:src="@drawable/pinkrose"
     
     
     >
     </ImageView>
    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
         android:textColor="#ff00ff00"
        android:textSize="40dp"
        android:text="@string/top_text" />
    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/bottom_text"
        android:layout_gravity="bottom"
        android:gravity="right"
        android:textColor="#ff00ff00"
        android:textSize="50dp" />

</FrameLayout>
</LinearLayout>

No comments:

Post a Comment