Skip to content

Instantly share code, notes, and snippets.

@diegogurgel
Created August 15, 2015 13:14
Show Gist options
  • Save diegogurgel/f04d571d23b3aa362590 to your computer and use it in GitHub Desktop.
Save diegogurgel/f04d571d23b3aa362590 to your computer and use it in GitHub Desktop.
dependencies {
compile 'com.android.support:design:22.2.1'
}
<android.support.design.widget.FloatingActionButton
app:fabSize="normal"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridLayout"
android:background="@color/accent_fav_like"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="bottom"
android:background="@color/abc_search_url_text_normal"></ListView>
<ImageView
android:layout_width="wrap_content"
android:padding="5dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="16dp"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:background="@color/primary"
android:src="@drawable/abc_btn_rating_star_off_mtrl_alpha"/>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment