Skip to content

Instantly share code, notes, and snippets.

@p4yam
Created February 13, 2017 05:10
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 p4yam/1f8468e6d4bcdf8be3527ed21ebb725c to your computer and use it in GitHub Desktop.
Save p4yam/1f8468e6d4bcdf8be3527ed21ebb725c to your computer and use it in GitHub Desktop.
download file 1
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:layoutDirection="rtl"
tools:context="ir.kivee.androiddownloadingfile.MainActivity">
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:textDirection="rtl"
android:layout_height="wrap_content"
android:text="دانلود عکس و فایل در اندروید" />
<Button
android:id="@+id/download_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView"
android:layout_centerHorizontal="true"
android:text="دانلود" />
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/download_button"
android:layout_centerHorizontal="true"
android:layout_marginTop="16dp" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment