在android中如何实现图中的布局,我仅知道需要使用RelativeLayout,对于用户名后面那个编辑文本,怎么去掉EditText控件中的边框呢?希望有人能够给出样例代码参考
解决方案 »
- 请教高手,关于如何取得手机基站的GSM参数并锁定基站?
- viewgroup如何实现翻页时的3D效果
- android 改变Camera的preview图像
- 关于android界面设计(求指点)
- 在Ubuntu 10.04上搭建android开发环境。
- 图片和SDK的模拟器分辨率相同,为什么不能填满显示区域……?
- app打开操作正常,home键后操作其他的或者过了一会再打开就报异常了
- 求大神!!!android百度地图开发搜索城市跳转问题、毕业设计、急!!!!
- facebook好友列表无法显示
- 如何禁止应用在SD卡创建某个文件夹
- android ndk在cygwin下编译找不到iconv.h
- 求助canvas.drawBitmap()的问题,几句话就能帮我解决问题
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<CheckBox android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="10dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="自动登录"
android:id="@+id/checkBox1"/>
<Button android:layout_above="@+id/checkBox1"
android:layout_margin="10dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/button1"
android:text="注册"/>
<Button android:layout_above="@+id/button1"
android:layout_margin="10dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/button2"
android:text="登录"/>
<RelativeLayout android:layout_above="@+id/button2"
android:layout_margin="10dp"
android:layout_centerHorizontal="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ffffff">
<TextView android:layout_alignParentLeft="true"
android:layout_margin="5dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="用户名:"
android:id="@+id/textView1"/>
<EditText android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@null"
android:id="@+id/editText1"
android:layout_toRightOf="@+id/textView1"/>
<TextView android:layout_alignParentLeft="true"
android:layout_margin="5dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="密码:"
android:id="@+id/textView2"
android:layout_below="@+id/textView1"/>
<EditText android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@null"
android:id="@+id/editText2"
android:layout_toRightOf="@+id/textView2"
android:layout_below="@+id/editText1"/>
</RelativeLayout>
</RelativeLayout>