有一行有两个组件EditText和Button,Button靠最右,EditText宽度从最左到Button的左边,
这个用相对布局,要怎么实现?
这个用相对布局,要怎么实现?
解决方案 »
- 求Android大文本阅读器源码
- RelativeLayout不能绑pressed="true"?
- android binder机制中的BN和BP
- android入门,求好的教材
- android里怎么可靠地存取全局变量
- 求高手解答页面跳转问题
- 如何增加一个统Setting的界面,在不修改系统Setting源码的情况下
- 安卓编程 线程 更改textview 的问题
- 求助,那位android牛人有cchartengine经验的,本人初入职场,帮我改下,万分感谢,我想要有8条曲线动态显示,现在只有1条曲线在动
- Android studio 开发记事本有异常抛出
- 谁做过使用nand的android系统的 recovery模式?
- android 静默安装的问题!!!!!!!!!
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/myButton"
android:layout_alignParentRight="true"
android:layout_width="100dip"
android:layout_height="wrap_content"
/>
<EditText
android:id="@+id/myEdit"
android:layout_toLeftOf="@id/myButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</RelativeLayout>