Skip to content

Instantly share code, notes, and snippets.

@adityajoshi12
Last active February 15, 2018 15:14
Show Gist options
  • Save adityajoshi12/99f411e02b37e32bdb227c7ea19f5962 to your computer and use it in GitHub Desktop.
Save adityajoshi12/99f411e02b37e32bdb227c7ea19f5962 to your computer and use it in GitHub Desktop.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="?attr/actionBarSize"
android:paddingBottom="@dimen/activity_vertical_margin"
>
<Button
android:id="@+id/btnTakePicture"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="takePicture_Click"
android:text="Take Picture" />
<ImageView
android:id="@+id/img_camera"
android:layout_width="200dip"
android:layout_height="200dip"
android:layout_below="@+id/btnTakePicture"
android:layout_centerHorizontal="true"
android:layout_margin="5dp"
tools:src="@mipmap/abc1" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment