Getting started
<!-- rounded edit text --><com.beardedhen.androidbootstrap.BootstrapEditText android:id="@+id/txtOne" android:layout_width="150dp" android:layout_height="wrap_content" android:layout_margin="10dp" android:hint="rounded" bootstrapbutton:be_roundedCorners="true" android:gravity="center" bootstrapbutton:be_state="success"/>
The above code inserts a rounded Bootstrap edit text with the state set to be succesfull. the following attributes can be added:
bootstrapbutton:be_state="success"The state of the bootstrap edit text e.g. Warning, danger, success. Leave blank for default state.
bootstrapbutton:be_roundedCorners="true"Whether the bootstrap edit text shocould have rounded corners
- And all the other variables for a typical edit text!
You can also change the bootstrap edit text programmatically!
txtItem.setEnabled(false);Change whether the edit text is enabled or disabled!
txtItem.setState("default");Change the state of the bootstrap edit text from warning, danger, success, or default.
txtItem.setSuccess();Change the state of the bootstrap edit text to success
txtItem.setWarning();Change the state of the bootstrap edit text to warning
txtItem.setDanger();Change the state of the bootstrap edit text to danger
txtItem.setDefault();Change the state of the bootstrap edit text to default
- And all the functions for a typical edit text.
- Note: You can also set up listeners and interact as per regular edit texts