Skip to content

Instantly share code, notes, and snippets.

@NaturalizerINA
Created January 4, 2018 06:32
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 NaturalizerINA/e71714fd7a2271a0f3e13720fd1f8245 to your computer and use it in GitHub Desktop.
Save NaturalizerINA/e71714fd7a2271a0f3e13720fd1f8245 to your computer and use it in GitHub Desktop.
Adding xml file to adding the ImageView and ProgressBar component
<?xml version="1.0" encoding="utf-8"?>
<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"
tools:context="com.mukminullah.imagetransformer.MainActivity">
<ProgressBar
android:id="@+id/pb"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_centerInParent="true"/>
<ImageView
android:id="@+id/img_load"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment