Skip to content

Instantly share code, notes, and snippets.

@travisdachi
Last active November 25, 2016 11:07
Show Gist options
  • Save travisdachi/d26f45a73b7f0bef69293258e46245cb to your computer and use it in GitHub Desktop.
Save travisdachi/d26f45a73b7f0bef69293258e46245cb to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:orientation="vertical"
tools:context="com.example.travis.playground.MainActivity">
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
<Button
style="@style/Widget.AppCompat.Button.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Colored Button (colorAccent)" />
<Button
android:id="@+id/button2"
style="@style/Widget.AppCompat.Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="#ffff00"
android:text="Yellow Tint Button" />
<Button
style="@style/RedButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Red Button Style" />
<Button
style="@style/GreenButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Green Button Style" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="8dp"
app:srcCompat="@android:drawable/ic_dialog_email" />
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="8dp"
android:clickable="true"
app:backgroundTint="#ffff00"
app:srcCompat="@android:drawable/ic_dialog_email" />
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="8dp"
android:clickable="true"
android:theme="@style/RedAccentTheme"
app:srcCompat="@android:drawable/ic_dialog_email" />
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="8dp"
android:clickable="true"
android:theme="@style/GreenAccentTheme"
app:srcCompat="@android:drawable/ic_dialog_email" />
</LinearLayout>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="textAllCaps=false"
android:textAllCaps="false" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment