Ticker

6/recent/ticker-posts

Android pre-defined Button style - buttonStyle, borderlessButtonStyle, buttonStyleToggle and buttonStyleInset


Some example of pre-defined Button style, include buttonStyle, borderlessButtonStyle, buttonStyleToggle and buttonStyleInset.


    xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="10dp"
tools:context=".MainActivity">

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:autoLink="web"
android:text="http://picturedmagazine.blogspot.com/"
android:textStyle="bold" />

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="buttonStyle: Normal Button style"
style="?android:attr/buttonStyle"/>

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="borderlessButtonStyle: Style for buttons without an explicit border"
style="?android:attr/borderlessButtonStyle"/>

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textOn="ON - buttonStyleToggle: ToggleButton style"
android:textOff="OFF - buttonStyleToggle: ToggleButton style"
style="?android:attr/buttonStyleToggle"/>

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="buttonStyleInset: Button style to inset into an EditText"
style="?android:attr/buttonStyleInset"/>

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



Related:
- Custom Color Button

إرسال تعليق

0 تعليقات