Android 在屏幕中间设计一个布局
我想设计一个类似下面第三个屏幕的布局 但是我不知道怎么做。如何在任何屏幕尺寸下保持相同的位置Android 在屏幕中间设计一个布局,android,android-layout,Android,Android Layout,我想设计一个类似下面第三个屏幕的布局 但是我不知道怎么做。如何在任何屏幕尺寸下保持相同的位置 任何例子对我都有好处。谢谢尝试使用我下面的代码 不错,但在大屏幕上,高度似乎太小了。不管怎样,这对我很有帮助。谢谢,谢谢。为此,您可以使用两个不同的文件夹。布局-sw1200和布局 <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" androi
任何例子对我都有好处。谢谢尝试使用我下面的代码
不错,但在大屏幕上,高度似乎太小了。不管怎样,这对我很有帮助。谢谢,谢谢。为此,您可以使用两个不同的文件夹。布局-sw1200和布局
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"android:background="#aaabca"
android:baselineAligned="false"
android:orientation="horizontal"
android:padding="6dp" >
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="19:08"
android:textColor="#111111"
android:textSize="18sp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:orientation="horizontal" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0 Sms"
android:textColor="#111111"
android:textSize="18sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:text="0 Calls"
android:textColor="#111111"
android:textSize="18sp" />
</LinearLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="WEDNESDAY \nOCTOBER 15"
android:textColor="#111111"
android:textSize="18sp" />
</RelativeLayout>
</LinearLayout>