<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
> <TextView
android:id="@+id/tvFirst"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="@string/qxzcs"
android:textSize="20dp"
/> <RelativeLayout
android:id="@+id/rlo1"
android:layout_below="@id/tvFirst"
android:layout_alignLeft="@id/tvFirst"
android:layout_width="match_parent"
android:layout_height="wrap_content" > <TextView
android:id="@+id/tvcs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="@string/cs"
android:textSize="30dp"
/>
<Button
android:id="@+id/buttonCS"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/tvcs"
android:layout_alignBottom="@id/tvcs"
android:gravity="center"
android:text="獭獭獭獭獭"
/>
<Button
android:id="@+id/buttonCX"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/buttonCS"
android:layout_alignBottom="@id/buttonCS"
android:layout_alignParentRight="true"
android:text="@string/cx"
/> </RelativeLayout>
<TextView
android:id="@+id/tvLast"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/rlo1"
android:layout_alignParentBottom="true"
/></RelativeLayout>
请大家帮我看一下为什么第二个按钮为什么显示不出来啊 我想要这个样子
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
> <TextView
android:id="@+id/tvFirst"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="@string/qxzcs"
android:textSize="20dp"
/> <RelativeLayout
android:id="@+id/rlo1"
android:layout_below="@id/tvFirst"
android:layout_alignLeft="@id/tvFirst"
android:layout_width="match_parent"
android:layout_height="wrap_content" > <TextView
android:id="@+id/tvcs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="@string/cs"
android:textSize="30dp"
/>
<Button
android:id="@+id/buttonCS"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/tvcs"
android:layout_alignBottom="@id/tvcs"
android:gravity="center"
android:text="獭獭獭獭獭"
/>
<Button
android:id="@+id/buttonCX"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/buttonCS"
android:layout_alignBottom="@id/buttonCS"
android:layout_alignParentRight="true"
android:text="@string/cx"
/> </RelativeLayout>
<TextView
android:id="@+id/tvLast"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/rlo1"
android:layout_alignParentBottom="true"
/></RelativeLayout>
请大家帮我看一下为什么第二个按钮为什么显示不出来啊 我想要这个样子
解决方案 »
- camera显示到PopupWindow但是怎么都不行
- 求助~如何获得imageview的宽和高
- 菜鸟android编程设计的问题求助
- 短信(Mms)notification下拉事件
- android eclipse 环境搭建 求助
- 急!!!android文件下载urlConn.getInputStream()抛NUllPointerException
- 小弟初来咋到,如何让安卓客户端连接服务器数据库,请帮忙,
- Android不同分辨率客户端获取不同尺寸图片
- 我用RadioGroup和Fragment写出了底部导航栏,怎么把它隐藏?
- eclipse配置安卓出现这个错误
- 使用百度地图进行定位.无法调用到onGetAddrResult这个方法
- 关于容器的问题
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
> <TextView
android:id="@+id/tvFirst"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="@string/qxzcs"
android:textSize="20dp"
/> <RelativeLayout
android:id="@+id/rlo1"
android:layout_below="@id/tvFirst"
android:layout_alignLeft="@id/tvFirst"
android:layout_width="match_parent"
android:layout_height="wrap_content" > <TextView
android:id="@+id/tvcs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="@string/cs"
android:textSize="30dp"
/>
<Button
android:id="@+id/buttonCS"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/tvcs"
android:layout_alignBottom="@id/tvcs"
android:gravity="center"
android:text="獭獭獭獭獭"
/>
<Button
android:id="@+id/buttonCX"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/buttonCS"
android:layout_alignBottom="@id/buttonCS"
android:layout_alignParentRight="true"
android:text="@string/cx"
/> </RelativeLayout>
<TextView
android:id="@+id/tvLast"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/rlo1"
android:layout_alignParentBottom="true"
/></RelativeLayout>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
> <TextView
android:id="@+id/tvFirst"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="aa"
android:textSize="20dp"
/> <RelativeLayout
android:id="@+id/rlo1"
android:layout_below="@id/tvFirst"
android:layout_alignLeft="@id/tvFirst"
android:layout_width="match_parent"
android:layout_height="wrap_content" ><TextView
android:id="@+id/tvcs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="bb"
android:textSize="30dp"
/>
<Button
android:id="@+id/buttonCS"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/tvcs"
android:layout_alignBottom="@id/tvcs"
android:gravity="center"
android:text="獭獭獭獭獭"
/>
<Button
android:id="@+id/buttonCX"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/buttonCS"
android:layout_alignParentRight="true"
android:text="cc"
/></RelativeLayout>
<TextView
android:id="@+id/tvLast"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/rlo1"
android:layout_alignParentBottom="true"
/></RelativeLayout>
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
> <TextView
android:id="@+id/tvFirst"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="aa"
android:textSize="20dp"
/> <RelativeLayout
android:id="@+id/rlo1"
android:layout_below="@id/tvFirst"
android:layout_alignLeft="@id/tvFirst"
android:layout_width="match_parent"
android:layout_height="wrap_content" ><TextView
android:id="@+id/tvcs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="bb"
android:textSize="30dp"
/>
<Button
android:id="@+id/buttonCS"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/tvcs"
android:layout_alignBottom="@id/tvcs"
android:gravity="center"
android:text="獭獭獭獭獭"
/>
<Button
android:id="@+id/buttonCX"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/buttonCS"
android:layout_alignParentRight="true"
android:text="cc"
/></RelativeLayout>
<TextView
android:id="@+id/tvLast"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/rlo1"
android:layout_alignParentBottom="true"
/></RelativeLayout>