Skip to content

Instantly share code, notes, and snippets.

@luQman704
Created February 4, 2019 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luQman704/8cccc0dd60c402f8e3f111756a78f333 to your computer and use it in GitHub Desktop.
Save luQman704/8cccc0dd60c402f8e3f111756a78f333 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"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorBlack">
<FrameLayout
android:id="@+id/frame"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1">
<com.sothree.slidinguppanel.SlidingUpPanelLayout xmlns:sothree="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/sliding_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
sothree:umanoPanelHeight="100dp"
sothree:umanoShadowHeight="4dp"
sothree:umanoScrollableView="@+id/my_recycler_view_up">
<RelativeLayout
android:id="@+id/camera_preview"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.theartofdev.edmodo.cropper.CropImageView
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:id="@+id/cropImageView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"/>
<Button
android:layout_width="40dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:layout_marginBottom="15dp"
android:id="@+id/btnCamera"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:background="@drawable/ic_camera_black_24dp"/>
<Button
android:layout_width="20dp"
android:layout_height="50dp"
android:layout_marginBottom="15dp"
android:layout_marginLeft="35dp"
android:layout_gravity="center"
android:id="@+id/btnFlash"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:background="@drawable/ic_flash_on_black_24dp"/>
<Button
android:layout_width="20dp"
android:layout_height="50dp"
android:layout_marginBottom="15dp"
android:layout_marginLeft="35dp"
android:layout_gravity="center"
android:id="@+id/btnFlashIsOn"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:background="@drawable/ic_flash_off_black_24dp"/>
<Button
android:layout_width="40dp"
android:layout_height="50dp"
android:layout_marginBottom="15dp"
android:layout_gravity="center"
android:id="@+id/btnCrop"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:background="@drawable/ic_crop_black_24dp"/>
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/my_recycler_view"
android:scrollbars="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/my_recycler_view_up"
android:scrollbars="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true"
android:focusable="true" />
</LinearLayout>
</com.sothree.slidinguppanel.SlidingUpPanelLayout>
</FrameLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment