效果图:


布局文件activity_fankui.xml的内容:

<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"
android:background="#ffffff" >

<RelativeLayout
android:id="@+id/login_top_layout"
android:layout_width="fill_parent"
android:layout_height="45dp"
android:layout_alignParentTop="true"
android:background="@drawable/login_top_bg" >

<TextView
android:layout_width="wrap_content"
android:layout_height="23dp"
android:layout_centerInParent="true"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:text="@string/user_fankui"
android:textColor="#ffffff"
android:textSize="17sp"
android:textStyle="bold" />
</RelativeLayout>
<!--EditText组件的属性设置:

android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/login_top_layout"
android:layout_above="@+id/login_bottom_layout"

可以保证EditText填充中间部分,而又在标题栏之下,底部菜单栏之上

-->
<EditText
android:id="@+id/edit_fankui_info"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/login_top_layout"
android:layout_above="@+id/login_bottom_layout"
android:layout_margin="6dip"
tools:context=".AboutActivity" />

<RelativeLayout
android:id="@+id/login_bottom_layout"
android:layout_width="fill_parent"
android:layout_height="45dp"
android:layout_alignParentBottom="true"
android:background="@drawable/bg_bottom" >
<ImageButton
android:id="@+id/btn_sms_send"
android:layout_width="80dp"
android:layout_height="30dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="220dp"
android:layout_marginTop="7dip"
android:background="@drawable/btn_subcmit_selecter"
android:paddingTop="10dp" />
</RelativeLayout>


</RelativeLayout>


更多相关文章

  1. 使用ComponentName启动Activity
  2. android 软件键盘
  3. Android组件 文本框(EditText)
  4. Android实现异步加载
  5. Android学习之键盘事件
  6. 使用xml和java代码混合控制UI界面
  7. 漂亮的Android加载动画
  8. Android几种定时器的使用
  9. 7.高级UI组件

随机推荐

  1. Android(安卓)View的测量、布局、绘制过
  2. Android(安卓)基于dpi的资源加载
  3. android 完全退出自己的应用程序
  4. SDL Android(安卓)编译小记
  5. ant 编译 android工程
  6. plist读写,NSArray,NSData,NSnumber,字典
  7. Android(安卓)高清加载巨图方案 拒绝压缩
  8. Android工程中添加图片资源
  9. Matrix用法
  10. 自定义BaseActivity