我有以下佈局Realtive佈局與絕對佈局
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawable/flowerpower">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_y="200dip"
android:textColor="#000000"
android:text="Test"/>
</AbsoluteLayout>
現在我的問題是在不同的屏幕尺寸顯示器在東陽其絕對佈局的正確位置TextView的心不是。我如何使這一個與RelativeLayout工作?我建議這是正確的解決方案? RealtiveLayout?
你能定義什麼日e「正確的位置」是? – jkhouw1 2011-05-20 09:52:07
這就是問題所在。我有一個適合文本的背景。該圖像有一個額外的小窗口,在那裏顯示文本視圖。它的nessesry定義絕對的方式,在每個屏幕尺寸的文本和backgorund是在正確positin。 – user758610 2011-05-20 11:52:44