Привет, я использую следующую структуру раскладки внутри LinearLayout
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/tv1"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="10dp"
android:textColor="#000" />
<TextView
android:id="@+id/tv2"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:gravity="right"
android:paddingRight="10dp"
android:textColor="#000" />
</TableRow>
</TableLayout>
<ImageView
android:id="@+id/img1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="320px"
android:layout_height="320px"
android:gravity="center" >
</RelativeLayout>
и хотите динамически устанавливать относительную ширину и высоту расположения из java файла, а не устанавливать его на 320 пикселей в XML файле, но не в состоянии сделать это. Изменение ориентации не является проблемой, поскольку я ограничиваю его только в режиме Portrait. Можно установить относительный макет в полноэкранном режиме с помощью match_parent, но я должен поместить другие виды на экран, так что это возможно, или я должен достичь этого по-другому...