Skip to main content


Showing posts with the label Flat Button

Flat Button : Material Design Tips

From google material design documentation.
A button made of ink that displays ink reactions on press but does not lift. How to add? I. In your build.gradle add latest appcompat library. dependencies { compile ''// where X.X.X version} II. Make your activity extend publicclassMainActivityextendsAppCompatActivity{...} III. Declare your Button inside any layout.xml file with Borderless style. <Buttonandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:text="Button"style="@style/Widget.AppCompat.Button.Borderless"/> How to style?