Skip to content

Instantly share code, notes, and snippets.

@IslamBesto
Created November 12, 2018 13:39
Show Gist options
  • Save IslamBesto/82ea1b8a9dd0c80ea3f7383fc7316893 to your computer and use it in GitHub Desktop.
Save IslamBesto/82ea1b8a9dd0c80ea3f7383fc7316893 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false">
<com.example.saidi.foodesto.views.CurvedBottomNavigationView
android:id="@+id/curve_bottom_navigation_view"
android:layout_width="match_parent"
android:layout_height="@dimen/bottom_navigation_height"
android:layout_gravity="bottom"
android:background="@color/colorAccent"
android:theme="@style/AppTheme"
app:itemBackground="?attr/selectableItemBackgroundBorderless"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab_button"
android:layout_width="@dimen/fab_size"
android:layout_height="@dimen/fab_size"
android:layout_gravity="center_horizontal"
android:layout_marginTop="-32dp"
android:contentDescription="@string/scan_new_product"
android:scaleType="fitXY"
android:src="@drawable/ic_barcode"
app:borderWidth="0dp"
app:elevation="@dimen/elevation"
app:fabSize="auto" />
</com.example.saidi.foodesto.views.CurvedBottomNavigationView>
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment