<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
> <TextView
android:id="@+id/myTextView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<Button
android:id="@+id/myButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</RelativeLayout>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
> <TextView
android:id="@+id/myTextView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<Button
android:id="@+id/myButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</RelativeLayout>
解决方案 »
- 应用层有没有办法hack进kernel去改一些东西
- 继承AlertDialog,写一个倒计时的dialog。java语法报错,高手帮忙
- qwerty.kcm.bin文件如何修改、编译啊
- Android 调用程序 求帮助
- 求android实现qq换肤效果思路
- 一个奇怪的ListView没有刷新的问题
- MTK构建模拟器的时候出错
- Android 画板(canvas)画bitmap的时候怎么指定绘画时的起始位置?
- 怎么判断哪个范围的rgb适合搭配白色
- 求助求助,报错start called in state 0,求指错改正,可能是mediaplayer中prepare问题,但是不知道怎么改?
- 求助编译android源码
- 发送AT指令"AT+CPIN?"返回“PH-NET PIN”是怎么回事?
建议看看relative的布局的
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:id="@+id/myTextView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="abc"
/>
<Button
android:id="@+id/myButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/myTextView"
android:text="qweqw"
/>
</RelativeLayout>