本文介绍了布局Android-正确定位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不能似乎我希望他们的方式正确地定位我的布局。
是这样的我有什么布局是这样的:
I cant seem to properly position my layouts the way I want them to be.What my layout looks like is like this:
LinearLayout
LinearLayout
ListView
LinearLayout
TextView
TextView
TextView
Button
我的目标是有它这样的:
在此,请任何想法,以什么布局我会用?
Any thoughts on this please as to what Layouts i will use?
帮助将AP preciated
Help will be appreciated
推荐答案
试试这个
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/homeTableLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
>
<LinearLayout
android:layout_centerInParent="true"
android:layout_width="fill_parent"
android:layout_height="100dip"
android:background="@android:color/holo_blue_dark"
>
<!-- arrange your lables and button here -->
</LinearLayout>
<LinearLayout
android:layout_width="100dip"
android:layout_height="fill_parent"
android:background="@android:color/holo_purple"
android:layout_marginLeft="20dip"
>
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
></ListView>
</LinearLayout>
</RelativeLayout>
看下面的线框。您可以设置转角半径,并在其中添加控件。
look the wireframe below . you can set corner-radius and add controls in it.
这篇关于布局Android-正确定位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!