Advertisement
yoesuv

activity main picasso

Apr 15th, 2016
722
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.40 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:tools="http://schemas.android.com/tools"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:orientation="vertical"
  7.    tools:context="com.yoesuv.demopicasso.MainActivity">
  8.  
  9.     <android.support.v7.widget.Toolbar
  10.        android:id="@+id/toolbar"
  11.        android:layout_width="match_parent"
  12.        android:layout_height="wrap_content"
  13.        android:background="@color/colorPrimary"
  14.        android:theme="@style/toolbarTheme" />
  15.  
  16.     <RelativeLayout
  17.        android:layout_width="match_parent"
  18.        android:layout_height="wrap_content">
  19.  
  20.         <ProgressBar
  21.            android:id="@+id/progress"
  22.            android:layout_width="wrap_content"
  23.            android:layout_height="wrap_content"
  24.            android:indeterminate="true"
  25.            android:layout_centerInParent="true" />
  26.  
  27.         <ImageView
  28.            android:layout_width="match_parent"
  29.            android:layout_height="wrap_content"
  30.            android:id="@+id/imageView"
  31.            android:layout_gravity="center_horizontal"
  32.            android:adjustViewBounds="true"
  33.            android:contentDescription="@string/app_name"
  34.            android:layout_margin="10dp"
  35.            android:src="@mipmap/ic_launcher" />
  36.  
  37.     </RelativeLayout>
  38.  
  39. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement