赞
踩
xml布局:
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="20dp"
android:id="@+id/et_discounts"
android:background="@null"
android:inputType="number|numberDecimal"
android:textCursorDrawable="@null"
android:maxLength="4"
/>
xml关键属性介绍:
minWidth:设置文本区域的最小宽度
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。