Skip to content

Instantly share code, notes, and snippets.

@vamsitallapudi
Created August 22, 2019 15:23
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 vamsitallapudi/52b10f8c1e2c03c3cc7bf525b9560f49 to your computer and use it in GitHub Desktop.
Save vamsitallapudi/52b10f8c1e2c03c3cc7bf525b9560f49 to your computer and use it in GitHub Desktop.
<?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"
android:background="@color/colorAccent"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.coderefer.uploadfiletoserver.MainActivity">
<TextView
android:id="@+id/tvHeading"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="Touch the icon below to upload file to server"
android:textColor="#fff"
android:textSize="18sp"
android:textStyle="bold"/>
<ImageView
android:id="@+id/ivAttachment"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:src="@drawable/attach_icon"/>
<TextView
android:id="@+id/tv_file_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/ivAttachment"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:gravity="center"
android:textColor="#fff"/>
<Button
android:id="@+id/b_upload"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="#039be5"
android:gravity="center"
android:text="Upload"
android:textColor="#fff"
android:textSize="20sp"
android:textStyle="bold"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment