用RelativeLayout布局可以在imageview中写上文字

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="vertical" >

    <!-- 用RelativeLayout框架布局可以 在imageview中写上文字 -->

    <RelativeLayout
        android:id="@+id/linear_btu"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical" >

        <ImageView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/feature_guide_4"
            android:contentDescription="@string/app_name" >
        </ImageView>

        <!--
             <TextView
            android:id="@+id/txt_music"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="开始你的看图之旅吧"
            android:textSize="18dip" />
        -->
    </RelativeLayout>

</LinearLayout>

 

posted @ 2013-08-03 22:38  javawebsoa  Views(409)  Comments(0Edit  收藏  举报