Loïc Siret | eaafc6b | 2017-09-27 11:18:54 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | android:layout_width="fill_parent" |
| 5 | android:layout_height="fill_parent"> |
| 6 | |
| 7 | <FrameLayout |
| 8 | android:id="@+id/camera_preview" |
| 9 | android:layout_width="fill_parent" |
| 10 | android:layout_height="fill_parent" |
| 11 | android:layout_weight="1"/> |
| 12 | |
| 13 | |
| 14 | <android.support.design.widget.FloatingActionButton |
| 15 | android:id="@+id/button_capture" |
| 16 | android:layout_width="wrap_content" |
| 17 | android:layout_height="wrap_content" |
| 18 | android:layout_margin="16dp" |
| 19 | android:contentDescription="@string/action_call_decline" |
| 20 | android:src="@drawable/ic_photo_camera" |
| 21 | app:backgroundTint="@color/holo_green_dark" |
| 22 | app:elevation="6dp" |
| 23 | app:pressedTranslationZ="12dp" |
| 24 | app:rippleColor="@android:color/white" |
| 25 | android:layout_alignParentBottom="true" |
| 26 | android:layout_centerHorizontal="true"/> |
| 27 | </RelativeLayout> |