0
我們如何能在ImageView的相對於覆蓋有TextViews和按鈕佈局上的圖像輸出到圖像我們如何能覆蓋在圖像查看佈局
我們如何能在ImageView的相對於覆蓋有TextViews和按鈕佈局上的圖像輸出到圖像我們如何能覆蓋在圖像查看佈局
總是爲Android一個很好的資源和X和Y座標佈局是這樣的:http://www.learn-android.com/2010/01/05/android-layout-tutorial/。相應的layout_x
和layout_y
也可以通過程序設置。
使用的FrameLayout作爲主容器和所有的元素將使用內部邊距:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/image" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="30dp"
android:layout_marginTop="60dp"
android:text="A text"
/>
</FrameLayout>
只是聲明你的問題」的說明 –