android 图片文字布局,Android 中EditText中加入固定的图片或许文字布局

Android 中EditText中加入固定的图片或者文字布局

android:background="@drawable/login_back" android:paddingTop="21.0px"

android:paddingBottom="10.0px" android:layout_width="fill_parent"

android:layout_height="wrap_content" android:layout_marginLeft="15.0px"

android:layout_marginTop="62.0px" android:layout_marginRight="15.0px">

android:layout_width="wrap_content" android:layout_height="wrap_content" />

android:background="@drawable/qq_edit_login" android:paddingLeft="45.0sp"

android:saveEnabled="true" android:layout_width="fill_parent"

android:layout_height="wrap_content" android:layout_marginLeft="5.0dip"

android:layout_marginTop="5.0dip" android:layout_marginRight="5.0dip"

android:layout_marginBottom="5.0px" android:hint="@string/strInputAccHint"

android:maxLength="10" android:layout_toRightOf="@+id/faceImg"

android:layout_alignParentTop="true" android:inputType="number" />

android:gravity="center_vertical" android:id="@+id/TextView01"

android:paddingLeft="7.0sp" android:layout_width="wrap_content"

android:layout_height="wrap_content" android:layout_marginRight="15.0sp"

android:text="@string/strAccInputLabel" android:layout_alignLeft="@+id/login_edit_account"

android:layout_alignTop="@+id/login_edit_account"

android:layout_alignBottom="@+id/login_edit_account" />

关键代码如下:

android:layout_alignLeft="@+id/login_edit_account"

android:layout_alignTop="@+id/login_edit_account"

android:layout_alignBottom="@+id/login_edit_account"

分别表示与id 为login_edit_account的EditText控件的上端,左边,底端对齐。

1 楼

samyou

2012-01-08

楼主能将代码发给我学一下吗?sam090@qq.com

谢谢

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值