Skip to content

475789729/BootStrapStyleEditTextDemo

Repository files navigation

BootStrapStyleEditTextDemo

test
xml使用:
<EditText android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="15dp"
android:layout_margin="14dp"
android:background="@drawable/edit_background"
>

代码使用:
//wrong
//edittext.setPadding(30, 30, 30, 30);
//edittext.setBackgroundResource(R.drawable.edit_background);

//right
edittext.setBackgroundResource(R.drawable.edit_background);
edittext.setPadding(30, 30, 30, 30);
注意:必须先设置backgroundResouce,再设置padding,顺序不能颠倒

Releases

No releases published

Packages

No packages published

Languages