download file and ask for permissions to write into storage

This commit is contained in:
M M Arif
2020-03-08 12:46:31 +05:00
parent 3794d7ff2b
commit 181a94edbe
4 changed files with 115 additions and 38 deletions

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/custom_toast_container"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="15dp"
android:background="@drawable/round_corners"
android:backgroundTint="@color/toastBackground">
<TextView android:id="@+id/toastText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/darkRed"
android:layout_gravity="center"
android:gravity="center" />
</LinearLayout>

View File

@ -551,5 +551,7 @@
<string name="mergePRSuccessMsg">Pull Request was merged successfully</string>
<string name="mergePR404ErrorMsg">Pull Request is not available for merge</string>
<string name="downloadFile">Download</string>
<string name="downloadFile">Download This File</string>
<string name="waitLoadingDownloadFile">Please wait for the file to load to memory</string>
<string name="downloadFileSaved">File is saved to Download directory</string>
</resources>