Skip to content

Instantly share code, notes, and snippets.

@griajobag
Created June 29, 2016 04:24
Show Gist options
  • Save griajobag/078c57c6857fd2a3e59cf68c907fe56e to your computer and use it in GitHub Desktop.
Save griajobag/078c57c6857fd2a3e59cf68c907fe56e to your computer and use it in GitHub Desktop.
Ini adalah bagian dari project crop image
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:orientation="vertical"
android:background="@android:color/black"
tools:context="com.example.putuguna.croppingimage.MainActivity">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#7000"
android:padding="12dp"
android:text="@string/main_activity_desciption"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:onClick="onSelectImageClick"
android:text="@string/main_button_select_image"
android:layout_margin="12dp" />
<ImageView
android:id="@+id/quick_start_cropped_image"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:contentDescription="@string/result_image_desc"
android:src="@drawable/placeholders"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment