laoyuyu
2019-09-03 20:06:19 +08:00
112 changed files with 1075 additions and 718 deletions

View File

@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:viewportHeight="1024"
android:viewportWidth="1024"
android:width="24dp">
<path
android:fillColor="@color/icon_color"
android:pathData="M950.86,292.57L950.86,109.71c0,-20.2 -16.37,-36.57 -36.57,-36.57L109.71,73.14c-20.2,0 -36.57,16.37 -36.57,36.57v804.57c0,20.2 16.37,36.57 36.57,36.57h804.57c20.2,0 36.57,-16.37 36.57,-36.57L950.86,365.71L73.14,365.71v-73.14h877.71zM109.71,0h804.57C974.88,0 1024,49.12 1024,109.71v804.57C1024,974.88 974.88,1024 914.29,1024L109.71,1024C49.12,1024 0,974.88 0,914.29L0,109.71C0,49.12 49.12,0 109.71,0zM694.86,146.29L768,146.29c20.2,0 36.57,16.37 36.57,36.57 0,20.2 -16.37,36.57 -36.57,36.57h-73.14c-20.2,0 -36.57,-16.37 -36.57,-36.57 0,-20.2 16.37,-36.57 36.57,-36.57zM256,512h512c20.2,0 36.57,16.37 36.57,36.57 0,20.2 -16.37,36.57 -36.57,36.57L256,585.14c-20.2,0 -36.57,-16.37 -36.57,-36.57C219.43,528.37 235.8,512 256,512zM256,731.43h512c20.2,0 36.57,16.37 36.57,36.57 0,20.2 -16.37,36.57 -36.57,36.57L256,804.57c-20.2,0 -36.57,-16.37 -36.57,-36.57 0,-20.2 16.37,-36.57 36.57,-36.57z"/>
</vector>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</layout>

View File

@@ -9,7 +9,7 @@
<include layout="@layout/layout_bar"/>
<fragment
android:id="@+id/fragment1"
android:name="com.arialyy.simple.core.download.fragment_download.DownloadFragment"
android:name="com.arialyy.simple.core.download.fragment.DownloadFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>

View File

@@ -20,6 +20,14 @@
name="stateStr"
type="String"
/>
<variable
name="file_name"
type="String"
/>
<variable
name="url"
type="String"
/>
</data>
<LinearLayout
@@ -31,6 +39,13 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{@string/file_name(file_name)}"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{@string/url(url)}"
/>
<include

View File

@@ -62,6 +62,11 @@
<item>组件中使用</item>
</string-array>
<string-array name="component_items">
<item>fragment中使用</item>
<item>dialog中使用</item>
</string-array>
<string-array name="test_apk_download_url">
<item>http://static.gaoshouyou.com/d/d4/4f/d6d48db3794fb9ecf47e83c346570881.apk</item>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true"/>
<!--<domain-config cleartextTrafficPermitted="true">-->
<!--<domain-clientConfig cleartextTrafficPermitted="true">-->
<!--<domain includeSubdomains="true">Your URL(ex: 127.0.0.1)</domain>-->
<!--</domain-config>-->
<!--</domain-clientConfig>-->
</network-security-config>