Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- xmlns:camera="http://schemas.android.com/apk/res-auto"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:weightSum="7"
- tools:context="com.example.arturs.cameraappzoom.MainActivity">
- <com.example.arturs.cameraappzoom.CameraView
- android:id="@+id/custom_preview"
- camera:camera_type="back"
- android:layout_width="match_parent"
- android:layout_height="match_parent"/>
- <LinearLayout
- android:layout_alignParentBottom="true"
- android:orientation="horizontal"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <Button
- android:id="@+id/btnZoomIn"
- android:text="Zoom+"
- android:layout_weight="1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:soundEffectsEnabled="false"/>
- <Button
- android:id="@+id/btnZoomOut"
- android:text="Zoom-"
- android:layout_weight="1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:soundEffectsEnabled="false"/>
- <Button
- android:id="@+id/btnCameraSwitch"
- android:text="Switch Cam"
- android:layout_weight="1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:soundEffectsEnabled="false"/>
- </LinearLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement