Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.74 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3.     xmlns:android="http://schemas.android.com/apk/res/android"
  4.     xmlns:tools="http://schemas.android.com/tools"
  5.     xmlns:camera="http://schemas.android.com/apk/res-auto"
  6.     android:orientation="vertical"
  7.     android:layout_width="match_parent"
  8.     android:layout_height="match_parent"
  9.     android:weightSum="7"
  10.     tools:context="com.example.arturs.cameraappzoom.MainActivity">
  11.  
  12.  
  13.  
  14.     <com.example.arturs.cameraappzoom.CameraView
  15.         android:id="@+id/custom_preview"
  16.         camera:camera_type="back"
  17.         android:layout_width="match_parent"
  18.         android:layout_height="match_parent"/>
  19.  
  20.     <LinearLayout
  21.         android:layout_alignParentBottom="true"
  22.         android:orientation="horizontal"
  23.         android:layout_width="match_parent"
  24.         android:layout_height="wrap_content">
  25.  
  26.         <Button
  27.             android:id="@+id/btnZoomIn"
  28.             android:text="Zoom+"
  29.             android:layout_weight="1"
  30.             android:layout_width="match_parent"
  31.             android:layout_height="wrap_content"
  32.             android:soundEffectsEnabled="false"/>
  33.  
  34.         <Button
  35.             android:id="@+id/btnZoomOut"
  36.             android:text="Zoom-"
  37.             android:layout_weight="1"
  38.             android:layout_width="match_parent"
  39.             android:layout_height="wrap_content"
  40.             android:soundEffectsEnabled="false"/>
  41.  
  42.         <Button
  43.             android:id="@+id/btnCameraSwitch"
  44.             android:text="Switch Cam"
  45.             android:layout_weight="1"
  46.             android:layout_width="match_parent"
  47.             android:layout_height="wrap_content"
  48.             android:soundEffectsEnabled="false"/>
  49.  
  50.  
  51.  
  52.     </LinearLayout>
  53.  
  54. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement