Skip to content

Instantly share code, notes, and snippets.

@bashizip
Last active April 24, 2019 19:42
Show Gist options
  • Save bashizip/39da1f4c737aa5851acd4592a2f7e5cf to your computer and use it in GitHub Desktop.
Save bashizip/39da1f4c737aa5851acd4592a2f7e5cf to your computer and use it in GitHub Desktop.
MainActivity
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
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:gravity="start"
tools:context=".MainActivity">
<View
android:id="@+id/circle_bg"
android:background="@drawable/list_circle_background"
android:layout_width="620dp"
android:layout_marginStart="-300dp"
android:layout_height="match_parent"/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:listitem="@layout/task_row" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:layout_width="56dp"
android:layout_height="56dp"
android:clickable="true"
android:focusable="true"
app:rippleColor="@color/white"
android:src="@drawable/ic_play_arrow_white_24dp"
app:fabCustomSize="56dp"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
app:layout_anchor="@id/circle_bg"
app:layout_anchorGravity="center|end"
/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment