0
我使用Androids LinearLayout
为每个设备的不同分辨率。这样我解决了垂直布局问题不同的分辨率。android布局垂直/水平权重
但我无法解决水平布局问题。我的是我的布局。我想要这样构建布局。
在这种情况下,我使用的左边距/右但这不是在不同的分辨率下工作。如何放置TextView
与分辨率有关?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background"
android:orientation="vertical" >
<TextView
android:id="@+id/titleView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="9"
android:gravity="center"
android:text="TextView"
android:textColor="#5a5856"
android:textSize="35sp" />
<TextView
android:id="@+id/wordDafinitionView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="3"
android:textSize="17sp"
android:layout_marginLeft="25dp"
android:layout_marginRight="30dp"
android:text="TextView"
android:textColor="#5a5856" />
<TextView
android:id="@+id/TextView01"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="9"
android:gravity="center"
android:text="TextView"
android:textColor="#5a5856"
android:textSize="35sp" />
</LinearLayout>
你的'截图'说'拒绝转介' –