文字left,按钮right,edittext在文字right,在按钮left。这样就満了。
父布局:relativelayout
父布局:relativelayout
解决方案 »
- android webview触屏链接后的样式
- 各位好,我在vmware 虚拟机下的ubuntu12.04编译android4.0代码,make -j4 出现下列错误,要怎样解决
- GPRS下调用带参数的WebService不成功
- HorizontalScrollView布局中 子View的onTouchEvent不响应
- android 文件下载报空指针异常
- 怎么在一个辅助类启动service啊?????
- fragment示例运行不了
- 如何用eclipse模拟这串Json数据???
- com.google.process.gapps E/GCM: Missing checkin config file
- 请问这个错误怎么解决,abdroid studio打不开了
- android 4.4源码下载——百度云盘地址
- activity回退finish关闭后,fragment开启的线程导致空指针异常??
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"> <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content" /> <EditText
android:layout_width="0dp"
android:layout_height="wrap_content" /
android:layout_weight="1"> <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content" /> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content" /
android:layout_weight="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" > <TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="144dp"
android:text="@string/hello_world" /> <EditText
android:id="@+id/editText1"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/textView1"
android:layout_toRightOf="@+id/textView1"
android:ems="10" > <requestFocus />
</EditText> <Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="0dp"
android:layout_alignBottom="@+id/editText1"
android:layout_alignParentRight="true"
android:text="Button" /></RelativeLayout>