<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="wrap_content"    android:background="#3726ac"    android:gravity="center_vertical"    android:paddingBottom="5dp"    android:paddingLeft="10dp"    android:paddingRight="10dp"    android:paddingTop="5dp" ><FrameLayout     android:layout_width="fill_parent"    android:layout_height="wrap_content"        >        <EditText         android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:background="#D3D3D3"       android:paddingTop="10dip"       android:paddingBottom="10dip"        android:paddingLeft="50dip"        />        <LinearLayout        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:orientation="horizontal"        android:gravity="center_vertical"        android:layout_gravity="center_vertical"            android:layout_marginLeft="5dip"         >        <ImageView         android:background="@drawable/user"        android:layout_gravity="center_vertical"        android:layout_width="wrap_content"        android:layout_height="wrap_content"            />         <View         android:layout_width="1dip"        android:layout_height="20dip"        android:layout_marginLeft="5dip"        android:background="#ffffff"        android:layout_gravity="center_vertical"        />    </LinearLayout>         <ImageView         android:background="@drawable/password"        android:layout_gravity="center_vertical|right"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_marginRight="5dip"            /> </FrameLayout></RelativeLayout>

效果图:

更多相关文章

  1. Android中的流式布局
  2. Android(安卓)CheckBox设置背景selector和文本text 设置selectCo
  3. Android中使用TagFlowLayout制作动态添加删除标签
  4. popup menu案例,无说明只代码
  5. android studio 开发 cordova plugin(组件)的 helloWorld
  6. Android中自定义滑动条风格
  7. Android(安卓)开源项目分类汇总
  8. 显示倒计时的Dialog
  9. Android之---RecycleView实现简单的图片查看功能(类似相册查看器)

随机推荐

  1. Android(安卓)Bitmap内存限制问题
  2. Android智能手机网络防火墙开发的经验心
  3. 关于android读取ICCID、IMSI和IMEI
  4. 每个Android开发者必须知道的资源集锦
  5. 图说Android的8年演变史
  6. android v7包 正常导入使用方法
  7. Android(安卓)ADT安装技巧其常见错误处理
  8. Android之Kotlin
  9. # Android文件存储和数据库基本知识
  10. 程序员常用的刷题网站