源代码备份
5
app/src/main/res/anim/dialog_enter.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<translate android:fromYDelta="100%"
|
||||
android:duration="100"/>
|
||||
</set>
|
6
app/src/main/res/anim/dialog_exit.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<translate
|
||||
android:duration="100"
|
||||
android:toYDelta="100%"/>
|
||||
</set>
|
5
app/src/main/res/color/bt_selector_cancel.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="@color/black" android:state_pressed="true"/>
|
||||
<item android:color="@color/colorAccent" android:state_pressed="false"/>
|
||||
</selector>
|
11
app/src/main/res/drawable-v21/item_bg.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="@color/ripple_material_light">
|
||||
<item android:id="@android:id/mask" android:drawable="@android:color/white" />
|
||||
<item>
|
||||
<selector>
|
||||
<!-- <item android:drawable="@color/bg_grey" android:state_pressed="true"/> -->
|
||||
<item android:drawable="@android:color/transparent"/>
|
||||
</selector>
|
||||
</item>
|
||||
</ripple>
|
5
app/src/main/res/drawable/bg_loading.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#99000000"/>
|
||||
<corners android:radius="8dp"/>
|
||||
</shape>
|
4
app/src/main/res/drawable/ic_activity.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M160,375.01l354.02,216q4.99,3.01 11.01,3.01l10.02,-3.01 360,-220q10.02,-4.99 10.02,-16 0,-6.02 -2.5,-10.5t-7.49,-6.5L541.06,121.02q-10.02,-6.02 -20.99,0l-360,220q-8.99,6.02 -8.99,16.99 0,4.99 2.5,9.5t6.5,7.49zM531.01,162.02l316,192.99 -322.02,196L208,358.02zM875.01,476.99l-350.02,212.99 -344,-210.02q-7.01,-4 -15.01,-2.02t-12.99,8.99q-2.02,3.01 -2.5,7.01t0.51,7.49 3.49,7.01 5.5,5.5l354.02,216q3.01,2.02 5.5,2.5t5.5,0.51q4.99,0 10.02,-3.01l360,-220q7.01,-4 8.99,-12t-2.02,-15.01q-3.01,-4.99 -7.49,-7.49t-10.02,-2.02 -9.5,3.49zM875.01,615.01l-350.02,214.02 -344,-210.02q-7.01,-4 -15.01,-2.02t-12.99,8.99q-2.02,4 -2.5,9.5t2.02,10.02 7.49,7.49l354.02,216 11.01,3.01q2.02,0 4.99,-0.51t4.99,-2.5l360,-220q7.01,-4 8.99,-12t-2.02,-15.01q-3.01,-4.99 -7.49,-7.49t-10.02,-2.02 -9.5,2.5z"/>
|
||||
</vector>
|
15
app/src/main/res/drawable/ic_choose_file.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<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_black"
|
||||
android:pathData="M895.65,672.81c14.3,0 23.74,-9.54 23.74,-23.74L919.39,269.29a30.46,30.46 0,0 0,-8.66 -21.29L738.23,71.19A30.46,30.46 0,0 0,716.42 62L199.21,62c-52.29,0 -95.07,42.78 -95.07,95.07v654h-0.1v51.85h0.1c0,52.25 42.81,95.07 95.07,95.07h625.11c52.25,0 95.07,-42.81 95.07,-95.07v-71.31c0,-14.31 -9.54,-23.74 -23.74,-23.74s-23.74,9.54 -23.74,23.74v71.32a47.69,47.69 0,0 1,-47.48 47.58L199.21,910.51a47.72,47.72 0,0 1,-47.58 -47.58v-28.11h0.1L151.73,157.06a47.63,47.63 0,0 1,47.58 -47.48h482.47v123.57a71.32,71.32 0,0 0,71.32 71.32h118.8v344.6c-0.09,14.2 9.44,23.74 23.75,23.74zM847.19,256.81L753,256.81v0.1c-14.3,0 -23.74,-11.92 -23.74,-23.74v-98.75a2.4,2.4 0,0 1,4.13 -1.67l115.52,120a2.4,2.4 0,0 1,-1.73 4.04z"/>
|
||||
<path
|
||||
android:fillColor="@color/icon_black"
|
||||
android:pathData="M318.91,394.59c-14.78,0 -26.81,-12.25 -26.81,-27.3s12,-27.3 26.81,-27.3h300.47c14.78,0 26.81,12.25 26.81,27.3s-12,27.3 -26.81,27.3zM318.91,569.8c-14.78,0 -26.81,-12.25 -26.81,-27.3s12,-27.3 26.81,-27.3h384.85c14.78,0 26.81,12.25 26.81,27.3s-12,27.3 -26.81,27.3zM318.91,742c-14.78,0 -26.81,-12.25 -26.81,-27.3s12,-27.3 26.81,-27.3h261.3c14.78,0 26.81,12.25 26.81,27.3S595,742 580.21,742z"/>
|
||||
<path
|
||||
android:fillColor="@color/icon_black"
|
||||
android:pathData="M704.01,367.3m-27.3,0a27.3,27.3 0,1 0,54.6 0,27.3 27.3,0 1,0 -54.6,0Z"/>
|
||||
</vector>
|
9
app/src/main/res/drawable/ic_close.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="1024"
|
||||
android:viewportHeight="1024">
|
||||
<path
|
||||
android:pathData="M521.69,449.3L111.41,39.01a51.2,51.2 0,1 0,-72.43 72.36l410.28,410.32 -410.28,410.32a51.2,51.2 0,1 0,72.4 72.4l410.32,-410.28 410.32,410.28a51.2,51.2 0,1 0,72.4 -72.36l-410.28,-410.35 410.28,-410.28a51.2,51.2 0,1 0,-72.4 -72.4l-410.28,410.28z"
|
||||
android:fillColor="#515151"/>
|
||||
</vector>
|
10
app/src/main/res/drawable/ic_del.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M801.59,333.13c0.04,1.45 0.09,2.45 0.09,3.62l0,534.45c0,52.39 -42.47,94.87 -94.87,94.87l-389.61,0c-52.39,0 -94.87,-42.47 -94.87,-94.87l0,-534.45c0,-1.17 0.05,-2.17 0.09,-3.62L164.39,333.13l0,555.45c0,74.79 60.63,135.42 135.42,135.42l424.37,0c74.79,0 135.42,-60.63 135.42,-135.42L859.61,333.13 801.59,333.13z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M48.52,237.54l0,17.38c0,67.19 54.47,121.66 121.66,121.66l683.63,0c67.19,0 121.66,-54.47 121.66,-121.66l0,-17.38c0,-67.19 -54.47,-121.66 -121.66,-121.66l-683.63,0C102.99,115.87 48.52,170.34 48.52,237.54zM845.13,318.65l-666.25,0c-40,0 -72.42,-32.42 -72.42,-72.42l0,0c0,-40 32.42,-72.42 72.42,-72.42l666.25,0c40,0 72.42,32.42 72.42,72.42l0,0C917.54,286.22 885.12,318.65 845.13,318.65z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M367.16,119.13l0,-52.15C367.16,45.99 384.18,28.97 405.18,28.97L618.82,28.97C639.82,28.97 656.84,45.99 656.84,66.98l0,52.15c0,5.4 4.38,9.77 9.77,9.77l9.42,0c5.4,0 9.77,-4.38 9.77,-9.77L685.8,62.28c0,-34.4 -27.88,-62.28 -62.28,-62.28L400.47,0C366.08,0 338.2,27.88 338.2,62.28l0,56.85c0,5.4 4.38,9.77 9.77,9.77l9.42,0C362.79,128.91 367.16,124.53 367.16,119.13z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M345.58,876.27 L345.58,876.27c-8,0 -14.48,-6.48 -14.48,-14.48L331.09,457.81c0,-8 6.48,-14.48 14.48,-14.48l0,0c8,0 14.48,6.48 14.48,14.48L360.06,861.78C360.06,869.78 353.58,876.27 345.58,876.27z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M511.28,876.27 L511.28,876.27c-8,0 -14.48,-6.48 -14.48,-14.48L496.79,457.81c0,-8 6.48,-14.48 14.48,-14.48l0,0c8,0 14.48,6.48 14.48,14.48L525.76,861.78C525.76,869.78 519.28,876.27 511.28,876.27z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M677.11,753.91 L677.11,753.91c-8,0 -14.48,-6.48 -14.48,-14.48L662.63,457.81c0,-8 6.48,-14.48 14.48,-14.48l0,0c8,0 14.48,6.48 14.48,14.48l0,281.61C691.6,747.43 685.11,753.91 677.11,753.91z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M677.11,876.27 L677.11,876.27c-8,0 -14.48,-6.48 -14.48,-14.48l0,-46.36c0,-8 6.48,-14.48 14.48,-14.48l0,0c8,0 14.48,6.48 14.48,14.48L691.6,861.78C691.6,869.78 685.11,876.27 677.11,876.27z"/>
|
||||
</vector>
|
9
app/src/main/res/drawable/ic_dialog.xml
Normal 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>
|
6
app/src/main/res/drawable/ic_dir.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#CE9F06" android:pathData="M975,774.77H49V220.37h857.09c38.11,0 69.04,30.93 69.04,69.04v485.37h-0.14zM627.71,220.37c0,-63.93 -51.78,-115.71 -115.71,-115.71H49v115.71h578.71"/>
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M164.72,620.26V273.11h694.56v347.14h-694.56z"/>
|
||||
<path android:fillColor="#FFCD2C" android:pathData="M975,848.1V398.49c0,-31.9 -25.96,-57.86 -57.86,-57.86H106.86c-31.9,0 -57.86,25.96 -57.86,57.86v449.46c0,39.35 31.9,71.39 71.39,71.39h783.35c39.35,0.14 71.25,-31.9 71.25,-71.25z"/>
|
||||
</vector>
|
9
app/src/main/res/drawable/ic_fragment.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M1019.25,1024L882.39,1024l-2.9,-17.39c-11.1,-66.08 -68.78,-114.17 -135.16,-112.27 -62.88,2 -116.17,49.19 -126.76,112.27l-2.9,17.39L144.21,1024v-226.93c-78.48,-10.2 -139.96,-77.18 -140.76,-157.95 -0.4,-42.89 16.2,-83.58 46.79,-114.47 25.79,-25.99 58.58,-42.29 93.97,-46.89L144.21,148.96h283.12C439.12,65.98 510.7,2.1 595.88,2.1h2.1c83.78,1 154.55,65.18 166.35,146.86h254.93v171.15l-19.99,0.8c-64.08,2.7 -116.87,53.58 -120.16,115.77 -1.7,31.69 9.7,62.68 31.89,87.27 22.99,25.29 54.38,40.09 88.27,41.69l19.89,0.9v457.47zM916.68,982.31h60.78L977.46,605.22c-37.39,-6.1 -71.48,-24.59 -97.37,-53.28 -29.79,-32.79 -44.89,-74.48 -42.69,-117.47 4,-76.88 63.98,-140.76 140.06,-153.26v-90.67L724.74,190.54l-0.5,-20.39c-1.5,-68.88 -58.38,-125.56 -126.86,-126.46 -69.98,-0.4 -128.46,55.88 -130.06,126.46l-0.4,20.39L185.9,190.54v327.5L165.1,518.05c-32.09,0 -62.38,12.7 -85.18,35.79 -22.69,22.99 -34.99,52.98 -34.69,84.68 0.7,65.08 54.48,117.97 119.86,117.97h20.79v225.63h394.38c20.09,-73.78 85.97,-127.26 162.75,-129.66 80.08,-2.7 152.46,52.38 173.65,129.86z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M538.79,836.16L242.08,500.75l127.26,-170.05h353.3l108.47,170.95 -292.31,334.5zM295.76,498.55l242.83,274.42 240.53,-275.22 -79.48,-125.26H390.24l-94.47,126.06z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M268.97,478.86h536.14v41.69H268.97z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M396.03,507.45l38.64,-15.65 123.44,304.86 -38.64,15.65z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M524.35,784.56L643.47,489.27l38.66,15.6 -119.12,295.29zM396.22,485.29l92.07,-141.31 34.93,22.76 -92.07,141.31z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M558.2,362.12l35.97,-21.07 85.35,145.7 -35.97,21.07z"/>
|
||||
</vector>
|
6
app/src/main/res/drawable/ic_ftp.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M643.67,570.54c-8.24,0 -13.83,0.54 -16.76,1.33v52.93c3.46,0.79 7.72,1.07 13.56,1.07 21.54,0 34.85,-10.9 34.85,-29 0,-16.48 -11.17,-26.33 -31.65,-26.33z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M553.31,329.84c-22.77,-22.76 -59.68,-22.76 -82.45,0L211.94,588.76c-22.77,22.77 -22.77,59.69 0,82.46L470.84,930.13c22.77,22.77 59.68,22.77 82.45,0l258.92,-258.92a58.29,58.29 0,0 0,0 -82.45l-258.91,-258.91zM417.98,574.26h-68.88v40.97h64.36v32.97h-64.36v72.08h-40.42L308.68,541.02h109.3v33.24zM572.78,575.07h-48.95v145.2h-40.41v-145.2h-48.4v-34.04h137.76v34.04zM699.25,638.09c-13.83,12.79 -34.58,18.89 -58.51,18.89 -5.32,0 -10.1,-0.26 -13.83,-1.07v64.36h-40.15L586.76,543.42c12.5,-2.13 30.06,-3.73 54.79,-3.73 24.99,0 43.08,4.8 55.05,14.63 11.44,8.78 18.88,23.67 18.88,41.23 -0,17.82 -5.58,32.7 -16.23,42.54z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M816.52,233.62a19.23,19.23 0,0 1,-14.22 -7.93c-41.61,-57.71 -109.39,-93.42 -181.56,-93.42 -5.23,0 -10.46,0.19 -15.69,0.55a19.19,19.19 0,0 1,-13.05 -3.93C548.31,95.28 495.07,77.06 439.28,77.06c-99.7,0 -188.06,58.43 -228.31,146.63a19.22,19.22 0,0 1,-15.11 11.08C85.63,248.56 0.07,342.84 0.07,456.74c0,100.93 67.24,186.39 159.25,214.13a102,102 0,0 1,-8.53 -40.88c0,-18.38 4.91,-35.96 13.93,-51.42 -45.2,-22 -76.51,-68.27 -76.51,-121.84 0,-74.75 60.81,-135.55 135.56,-135.55 3.78,0 7.48,0.3 11.18,0.61 21.53,1.65 41.04,-12.31 46.28,-33.2 18.24,-72.64 83.22,-123.38 158.04,-123.38 42.75,0 83.2,16.51 113.9,46.48a44.08,44.08 0,0 0,39.77 11.59,137.33 137.33,0 0,1 27.8,-2.86c52.33,0 99.07,29.41 121.97,76.78 8.05,16.65 25.64,26.57 44.06,24.68a134.18,134.18 0,0 1,13.6 -0.69c74.75,0 135.57,60.81 135.57,135.55 0,53.57 -31.31,99.83 -76.51,121.84 9.02,15.45 13.93,33.02 13.93,51.39a102.13,102.13 0,0 1,-8.54 40.91c92.02,-27.75 159.25,-113.21 159.25,-214.14 0.02,-117.92 -91.69,-214.84 -207.54,-223.14z"/>
|
||||
</vector>
|
5
app/src/main/res/drawable/ic_ftp_dir.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1199" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M479.38,472.06L479.38,506.15h-119.81v76.65h114.1v34.08h-114.1v118.05h-35.4L324.17,472.06h155.21zM681.84,472.06L681.84,506.15h-76.65v228.94L569.2,735.09L569.2,506.29h-75.78v-34.08L681.84,472.21zM804.72,472.06c54.86,0 82.07,26.62 82.07,80.02s-27.79,79.43 -82.65,79.43h-59.98v102.4h-34.82v-261.85L804.72,472.06zM744.74,598.6h57.2c13.17,0.88 26.33,-3.07 36.86,-11.12 8.63,-9.65 13.02,-22.38 12,-35.4 1.32,-12.73 -3.07,-25.6 -12,-34.82 -10.83,-8.19 -24.28,-12.29 -37.74,-11.12h-56.61l0.29,92.45zM744.74,598.6"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M776.48,241.96l-144.97,-119.81L1057.79,122.15c37.89,-0.88 71.39,24.58 80.6,61.44v58.37L776.48,241.96zM1138.4,914.87c-4.39,25.16 -25.16,44.03 -50.61,46.08h-977.19c-25.45,-2.05 -46.23,-21.07 -50.61,-46.08L59.98,108.4c4.39,-25.16 25.16,-44.03 50.61,-46.08h355.62l282.77,239.62h389.41v612.94zM1087.78,62.32L578.41,62.32l-72.85,-59.98h-394.97C81.63,1.32 53.69,12.14 32.91,32.04 12,52.08 0.15,79.58 0,108.4v806.47c0.15,28.82 12,56.47 32.91,76.36 20.77,19.89 48.86,30.72 77.68,29.7h977.33c28.82,1.02 56.76,-9.8 77.68,-29.7 20.77,-20.04 32.62,-47.54 32.91,-76.36L1198.52,183.59c0.88,-63.34 -47.54,-116.44 -110.74,-121.27zM1087.78,62.32"/>
|
||||
</vector>
|
4
app/src/main/res/drawable/ic_full_screen.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_black" android:pathData="M432,636.8l-41.6,-41.6 -150.4,150.4L128,633.6L128,896h259.2l-108.8,-108.8 153.6,-150.4zM595.2,387.2l41.6,41.6 150.4,-150.4 108.8,108.8L896,128h-259.2l108.8,108.8 -150.4,150.4zM128,128v259.2l108.8,-108.8 150.4,150.4 41.6,-41.6 -147.2,-150.4L390.4,128L128,128zM595.2,636.8l150.4,150.4 -108.8,108.8L896,896v-259.2l-108.8,108.8 -150.4,-150.4 -41.6,41.6zM595.2,636.8"/>
|
||||
</vector>
|
4
app/src/main/res/drawable/ic_http.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1443" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M1200.17,1023.22L349.21,1023.22c-192.4,0 -349.21,-215.37 -349.21,-406.21a348.01,348.01 0,0 1,349.21 -346.02,335.2 335.2,0 0,1 38.78,2.34C470.96,141.06 617.25,0 774.78,0a454.37,454.37 0,0 1,454.67 423.4c120.25,14.31 213.63,168.95 213.63,359.19a242.01,242.01 0,0 1,-242.91 240.62zM349.15,330.57A288.06,288.06 0,0 0,60.13 617.01c0,158.01 129.69,346.62 289.08,346.62h850.96A182.12,182.12 0,0 0,1382.89 782.6c0,-156.87 -81.95,-301.35 -182.66,-301.35a30.06,30.06 0,0 1,-30.06 -30.06A394.06,394.06 0,0 0,774.72 59.29c-142.68,0 -274.89,136.97 -344.94,260.7a29.7,29.7 0,0 1,-31.27 14.79,291.19 291.19,0 0,0 -49.3,-4.21zM1230.23,451.48zM300.63,783.5L240.5,783.5v-240.5h60.13v60.13h60.13v-60.13h60.13v240.5L360.75,783.5v-120.25L300.63,663.25v120.25zM481,603.12v-60.13h180.38v60.13h-60.13v180.38L541.13,783.5v-180.38L481,603.12zM721.51,603.12v-60.13h180.38v60.13h-60.13v180.38h-60.13v-180.38h-60.13zM1022.13,783.5h-60.13v-240.5h60.13c71.37,-0.96 127.23,-24.05 126.26,30.06 -1.86,50.26 -7.94,147.55 -66.14,150.31h-60.13v60.13zM1022.13,603.12v60.13a35.29,35.29 0,0 0,12.03 6.01q56.4,5.59 54.95,-36.08 0,-37.7 -54.95,-36.08a35.29,35.29 0,0 0,-12.03 6.01z"/>
|
||||
</vector>
|
5
app/src/main/res/drawable/ic_http_group.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M193.28,478.21v94.72h102.4v-94.72h29.95v224.77h-29.44v-100.61h-102.4v100.86L163.33,703.23v-225.02zM510.21,478.21v29.18h-65.28v195.58h-29.7v-195.58h-65.79v-29.18zM679.68,478.21v29.18L614.4,507.39v195.58h-29.95v-195.58h-65.79v-29.18zM784.64,478.21c46.85,0 70.14,22.78 70.14,68.35S830.98,614.4 784.13,614.4h-51.2v87.55h-29.7v-223.74zM733.44,586.24h48.9a46.85,46.85 0,0 0,32.51 -9.47,40.19 40.19,0 0,0 10.24,-30.21 36.86,36.86 0,0 0,-10.5 -29.7,46.59 46.59,0 0,0 -32.26,-9.47h-49.15z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M663.55,281.6l-123.9,-102.4h364.29A69.38,69.38 0,0 1,972.8 231.68V281.6zM972.8,856.58A47.87,47.87 0,0 1,929.54 896H94.46A47.87,47.87 0,0 1,51.2 856.58V167.42A47.87,47.87 0,0 1,94.46 128h303.87L640,332.8h332.8zM929.54,128h-435.2l-62.21,-51.2H94.46A91.39,91.39 0,0 0,0 167.42v689.15A91.39,91.39 0,0 0,94.46 947.2h835.07A91.39,91.39 0,0 0,1024 856.58V231.68A102.4,102.4 0,0 0,929.54 128z"/>
|
||||
</vector>
|
4
app/src/main/res/drawable/ic_kotlin.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M863.1,914.43a116.03,116.03 0,0 1,-166.4 8.32L419.9,665.6q-2.18,-1.79 -4.29,-3.9L633.6,537.98l221.31,205.63a123.01,123.01 0,0 1,8.19 170.82zM381.82,280.83v-23.49A128,128 0,0 0,255.62 128a128,128 0,0 0,-126.21 129.34L129.41,424.32zM128,822.02v7.23A129.22,129.22 0,0 0,255.62 960a129.22,129.22 0,0 0,127.62 -130.75L383.23,677.25zM881.22,196.35a116.54,116.54 0,0 0,-160.38 -47.17l-587.52,333.44v276.48l701.82,-398.34a122.5,122.5 0,0 0,46.08 -164.42z"/>
|
||||
</vector>
|
12
app/src/main/res/drawable/ic_live.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<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="M690.42,297.75c3.04,0 5.23,0 7.42,0 24.08,0 48.29,-0.73 72.37,0.36 34.79,1.58 65.19,13.99 88.18,41.11 14.6,17.15 22.01,37.46 22.01,59.84 0.24,123.21 0.49,246.54 -0.12,369.75 -0.12,35.15 -12.53,66.29 -39.53,90.25 -17.27,15.45 -37.95,22.99 -61.06,23.6 -16.18,0.36 -32.48,0.12 -48.65,0.12 -155.08,0 -310.16,-0.49 -465.23,0.24 -59.11,0.24 -110.8,-45 -120.41,-99.61 -1.34,-7.78 -1.7,-15.69 -1.7,-23.6 -0.12,-117.37 0.61,-234.75 -0.36,-352.12 -0.49,-59.36 38.8,-95.11 84.65,-105.82 11.92,-2.8 24.45,-3.65 36.73,-3.89 24.08,-0.61 48.17,-0.12 73.34,-0.12 -1.34,-2.55 -2.19,-4.5 -3.16,-6.32 -9.37,-16.54 -18.85,-33.08 -28.1,-49.75 -6.57,-11.92 -4.14,-25.06 5.84,-33.57 6.81,-5.84 13.26,-7.3 20.56,-2.07 7.42,5.35 14.47,11.8 19.95,19.22 14.96,20.43 29.68,41.11 43.06,62.64 5.23,8.39 10.58,10.1 19.58,10.1 67.87,-0.36 135.86,-0.24 203.73,-0.12 4.87,0 7.54,-1.34 9.85,-5.72 12.65,-23.84 25.54,-47.44 38.56,-71.03 5.96,-10.83 15.57,-15.69 27.85,-14.47 11.07,0.97 18.73,7.05 23.11,17.27 3.53,8.15 2.55,16.3 -1.58,23.96 -7.78,14.35 -15.69,28.83 -23.6,43.18C692.61,293.01 691.76,294.95 690.42,297.75zM518.56,834.87c84.9,0 169.79,-0.12 254.81,0.12 23.84,0.12 39.89,-10.95 50.48,-31.38 7.05,-13.74 9,-28.46 9,-43.54 0,-87.82 0,-175.51 0,-263.33 0,-30.65 -0.12,-61.18 0,-91.83 0.12,-23.6 -11.07,-40.02 -31.62,-50.48 -13.26,-6.81 -27.61,-8.88 -42.33,-8.88 -164.56,0 -329.13,0 -493.69,0.12 -7.66,0 -15.45,0.73 -22.87,2.19 -33.93,6.69 -50.96,27.61 -50.96,62.03 0,116.76 0.61,233.53 -0.24,350.29 -0.24,40.38 36.37,75.9 75.29,75.29C350.35,834.01 434.52,834.87 518.56,834.87z"/>
|
||||
<path
|
||||
android:fillColor="@color/icon_color"
|
||||
android:pathData="M446.31,601.95c0,-28.58 0,-57.17 0,-85.75 0,-15.33 8.88,-20.68 22.01,-13.26 50.6,28.1 101.2,56.31 151.67,84.53 1.58,0.85 3.16,1.7 4.74,2.68 10.22,6.32 10.1,18.37 -0.36,24.45 -11.31,6.69 -22.87,13.01 -34.42,19.46 -40.62,22.62 -81.37,45.25 -121.99,67.87 -13.01,7.18 -21.77,1.95 -21.77,-13.01C446.31,659.84 446.31,630.89 446.31,601.95z"/>
|
||||
</vector>
|
9
app/src/main/res/drawable/ic_modify.xml
Normal 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_black"
|
||||
android:pathData="M768.49,388.36L590.76,215.07 210.93,594.49l-66.2,242.16v0.4L386.48,769.8zM739.52,66.62l-95.2,95.04 178.3,172.65 92.38,-92.3c48.49,-48.41 48.49,-126.99 0,-175.39 -48.4,-48.41 -127.07,-48.41 -175.47,-0zM79.03,878.71h872.33v114.98H79.03z"/>
|
||||
</vector>
|
6
app/src/main/res/drawable/ic_server.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M0,411.44l0,201.1c0,16.62 5.36,31.88 14.25,44.51l995.48,0C1018.64,644.44 1024,629.16 1024,612.56L1024,411.44c0,-16.62 -5.36,-31.88 -14.25,-44.51L14.25,366.93C5.36,379.56 0,394.84 0,411.44zM887.47,520.53c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S878.05,520.53 887.47,520.53zM853.33,469.33c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S843.91,469.33 853.33,469.33zM819.2,520.53c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S809.78,520.53 819.2,520.53zM785.07,469.33c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S775.65,469.33 785.07,469.33zM750.93,520.53c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S741.51,520.53 750.93,520.53zM716.8,469.33c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S707.38,469.33 716.8,469.33zM682.67,520.53c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S673.25,520.53 682.67,520.53zM648.53,469.33c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S639.11,469.33 648.53,469.33zM614.4,520.53c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S604.98,520.53 614.4,520.53zM580.27,469.33c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S570.85,469.33 580.27,469.33zM179.2,435.2c42.34,0 76.8,34.46 76.8,76.8s-34.46,76.8 -76.8,76.8S102.4,554.34 102.4,512 136.86,435.2 179.2,435.2z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M1009.75,332.8C1018.64,320.17 1024,304.9 1024,288.29L1024,87.18C1024,43.81 988.72,8.53 945.36,8.53L78.64,8.53C35.28,8.53 0,43.81 0,87.18l0,201.1c0,16.62 5.36,31.88 14.25,44.51L1009.75,332.78zM887.47,196.27c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S878.05,196.27 887.47,196.27zM853.33,145.07c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S843.91,145.07 853.33,145.07zM819.2,196.27c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S809.78,196.27 819.2,196.27zM785.07,145.07c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S775.65,145.07 785.07,145.07zM750.93,196.27c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S741.51,196.27 750.93,196.27zM716.8,145.07c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S707.38,145.07 716.8,145.07zM682.67,196.27c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S673.25,196.27 682.67,196.27zM648.53,145.07c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S639.11,145.07 648.53,145.07zM614.4,196.27c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S604.98,196.27 614.4,196.27zM580.27,145.07c9.42,0 17.07,7.65 17.07,17.07s-7.65,17.07 -17.07,17.07 -17.07,-7.65 -17.07,-17.07S570.85,145.07 580.27,145.07zM179.2,110.93c42.34,0 76.8,34.46 76.8,76.8s-34.46,76.8 -76.8,76.8S102.4,230.08 102.4,187.73 136.86,110.93 179.2,110.93z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M14.25,691.2C5.36,703.83 0,719.1 0,735.71l0,201.1C0,980.19 35.28,1015.47 78.64,1015.47l866.7,0c43.37,0 78.64,-35.28 78.64,-78.64L1023.98,735.71c0,-16.62 -5.36,-31.88 -14.25,-44.51L14.25,691.2zM179.2,913.07C136.86,913.07 102.4,878.61 102.4,836.27s34.46,-76.8 76.8,-76.8S256,793.92 256,836.27 221.54,913.07 179.2,913.07zM580.27,827.73c-9.42,0 -17.07,-7.65 -17.07,-17.07s7.65,-17.07 17.07,-17.07 17.07,7.65 17.07,17.07S589.69,827.73 580.27,827.73zM614.4,878.93c-9.42,0 -17.07,-7.65 -17.07,-17.07s7.65,-17.07 17.07,-17.07 17.07,7.65 17.07,17.07S623.82,878.93 614.4,878.93zM648.53,827.73c-9.42,0 -17.07,-7.65 -17.07,-17.07s7.65,-17.07 17.07,-17.07 17.07,7.65 17.07,17.07S657.95,827.73 648.53,827.73zM682.67,878.93c-9.42,0 -17.07,-7.65 -17.07,-17.07s7.65,-17.07 17.07,-17.07 17.07,7.65 17.07,17.07S692.09,878.93 682.67,878.93zM716.8,827.73c-9.42,0 -17.07,-7.65 -17.07,-17.07s7.65,-17.07 17.07,-17.07 17.07,7.65 17.07,17.07S726.22,827.73 716.8,827.73zM750.93,878.93c-9.42,0 -17.07,-7.65 -17.07,-17.07s7.65,-17.07 17.07,-17.07 17.07,7.65 17.07,17.07S760.35,878.93 750.93,878.93zM785.07,827.73c-9.42,0 -17.07,-7.65 -17.07,-17.07s7.65,-17.07 17.07,-17.07 17.07,7.65 17.07,17.07S794.49,827.73 785.07,827.73zM819.2,878.93c-9.42,0 -17.07,-7.65 -17.07,-17.07s7.65,-17.07 17.07,-17.07 17.07,7.65 17.07,17.07S828.62,878.93 819.2,878.93zM853.33,827.73c-9.42,0 -17.07,-7.65 -17.07,-17.07s7.65,-17.07 17.07,-17.07 17.07,7.65 17.07,17.07S862.75,827.73 853.33,827.73zM887.47,878.93c-9.42,0 -17.07,-7.65 -17.07,-17.07s7.65,-17.07 17.07,-17.07 17.07,7.65 17.07,17.07S896.89,878.93 887.47,878.93z"/>
|
||||
</vector>
|
15
app/src/main/res/drawable/ic_sftp.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="128dp"
|
||||
android:height="128dp"
|
||||
android:viewportWidth="1024"
|
||||
android:viewportHeight="1024">
|
||||
<path
|
||||
android:pathData="M694.4,1.6L163.2,1.6C113.6,1.6 73.6,41.6 73.6,91.2v843.2c0,49.6 40,89.6 89.6,89.6h475.2c-20.8,-14.4 -33.6,-36.8 -33.6,-64L604.8,758.4c0,-41.6 32,-84.8 75.2,-84.8h209.6l1.6,-475.2L694.4,1.6zM307.2,545.6c-6.4,9.6 -14.4,16 -25.6,20.8 -11.2,4.8 -24,8 -38.4,8 -24,0 -41.6,-4.8 -54.4,-14.4 -12.8,-9.6 -20.8,-24 -24,-43.2l30.4,-4.8c1.6,12.8 8,20.8 16,27.2 8,6.4 19.2,9.6 33.6,9.6 14.4,0 22.4,-3.2 28.8,-9.6s9.6,-11.2 9.6,-17.6c0,-6.4 -3.2,-12.8 -9.6,-16 -4.8,-3.2 -14.4,-4.8 -30.4,-9.6 -22.4,-6.4 -38.4,-11.2 -46.4,-14.4 -8,-4.8 -16,-9.6 -19.2,-17.6 -4.8,-8 -6.4,-16 -6.4,-24s1.6,-16 4.8,-22.4c3.2,-6.4 8,-12.8 14.4,-17.6 4.8,-3.2 14.4,-9.6 22.4,-12.8 8,-3.2 17.6,-3.2 27.2,-3.2 14.4,0 22.4,1.6 33.6,6.4 6.4,3.2 19.2,12.8 24,20.8 4.8,6.4 8,16 11.2,27.2l-30.4,4.8c-1.6,-9.6 -4.8,-16 -11.2,-22.4 -6.4,-4.8 -16,-8 -27.2,-8 -14.4,0 -22.4,1.6 -27.2,4.8 -6.4,4.8 -11.2,11.2 -11.2,17.6 0,3.2 0,8 1.6,11.2 3.2,3.2 6.4,6.4 11.2,8 3.2,1.6 12.8,3.2 27.2,8 22.4,6.4 36.8,11.2 44.8,14.4 8,3.2 16,9.6 20.8,17.6 4.8,6.4 8,16 8,25.6 0,8 -3.2,17.6 -8,25.6zM465.6,417.6h-91.2v44.8h78.4v32h-78.4v80L336,574.4L336,385.6h129.6v32zM633.6,417.6h-56v156.8h-38.4v-156.8h-56v-32h150.4v32zM790.4,473.6c-4.8,8 -9.6,14.4 -16,19.2 -6.4,4.8 -12.8,8 -19.2,9.6 -9.6,1.6 -22.4,3.2 -40,3.2h-25.6v72h-38.4v-192h60.8c22.4,0 38.4,1.6 44.8,3.2 11.2,3.2 19.2,9.6 27.2,19.2s11.2,22.4 11.2,36.8c0,11.2 -1.6,20.8 -4.8,28.8zM694.4,196.8L694.4,51.2l145.6,145.6h-145.6z"
|
||||
android:fillColor="@color/icon_color"/>
|
||||
<path
|
||||
android:pathData="M736,419.2c-4.8,-1.6 -14.4,-1.6 -27.2,-1.6h-19.2v52.8h20.8c14.4,0 25.6,-1.6 30.4,-3.2 4.8,-1.6 9.6,-4.8 11.2,-9.6 3.2,-4.8 4.8,-9.6 4.8,-14.4 0,-6.4 -1.6,-12.8 -6.4,-17.6 -3.2,-3.2 -9.6,-4.8 -14.4,-6.4zM795.2,867.2c-11.2,0 -22.4,9.6 -22.4,22.4 0,9.6 6.4,17.6 14.4,20.8v30.4h14.4v-30.4c8,-3.2 14.4,-11.2 14.4,-20.8 1.6,-12.8 -8,-22.4 -20.8,-22.4zM795.2,764.8c-16,0 -28.8,12.8 -28.8,28.8v28.8h57.6v-28.8c1.6,-16 -12.8,-28.8 -28.8,-28.8z"
|
||||
android:fillColor="@color/icon_color"/>
|
||||
<path
|
||||
android:pathData="M892.8,705.6L699.2,705.6c-32,0 -57.6,25.6 -57.6,56L641.6,960c0,30.4 25.6,56 57.6,56h195.2c32,0 57.6,-25.6 57.6,-56L952,761.6c-1.6,-30.4 -27.2,-56 -59.2,-56zM883.2,955.2c0,8 -6.4,14.4 -14.4,14.4h-144c-8,0 -14.4,-6.4 -14.4,-14.4L710.4,832c0,-8 6.4,-14.4 14.4,-14.4h22.4v-28.8c0,-27.2 22.4,-51.2 51.2,-51.2 27.2,0 51.2,22.4 51.2,51.2v28.8h22.4c8,0 14.4,6.4 14.4,14.4v123.2z"
|
||||
android:fillColor="@color/icon_color"/>
|
||||
</vector>
|
4
app/src/main/res/drawable/ic_start.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M759.47,490.67L311.47,136.53C307.2,132.27 298.67,128 290.13,128c-17.07,0 -34.13,12.8 -34.13,25.6v712.53c0,17.07 17.07,25.6 34.13,25.6 8.53,0 17.07,-4.27 21.33,-8.53l448,-358.4c12.8,-4.27 12.8,-21.33 0,-34.13z"/>
|
||||
</vector>
|
4
app/src/main/res/drawable/ic_stop.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M303.43,882.79H210.73c-27.81,0 -46.35,-18.54 -46.35,-46.35V187.56c0,-27.81 18.54,-46.35 46.35,-46.35h92.7c27.81,0 46.35,18.54 46.35,46.35v648.88c0,27.81 -18.54,46.35 -46.35,46.35zM813.27,882.79h-92.7c-27.81,0 -46.35,-18.54 -46.35,-46.35V187.56c0,-27.81 18.54,-46.35 46.35,-46.35h92.7c27.81,0 46.35,18.54 46.35,46.35v648.88c0,27.81 -18.54,46.35 -46.35,46.35z"/>
|
||||
</vector>
|
4
app/src/main/res/drawable/ic_top.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M0,347.65h83.97v438.78h141.82L225.79,347.65h83.97L309.76,238.08L0,238.08v109.57zM636.42,284.16c-14.34,-19.46 -32.77,-33.79 -55.81,-43.01 -23.04,-9.73 -49.66,-14.34 -78.34,-14.34 -30.72,0 -57.86,5.12 -80.9,15.36s-41.47,24.58 -55.3,43.52c-13.31,18.94 -21.5,39.94 -24.06,62.98 -2.56,22.53 -4.1,61.44 -4.1,116.22v93.7c0,56.32 1.54,95.74 4.1,118.27 2.56,22.53 11.26,43.52 25.09,62.46 14.34,18.94 32.77,33.79 55.81,43.01 23.04,9.73 49.66,14.34 78.85,14.34 30.72,0 57.86,-5.12 80.9,-15.36s41.47,-24.58 54.78,-43.52c13.31,-18.94 21.5,-39.94 24.06,-62.98 2.56,-23.04 4.1,-61.95 4.1,-117.25L665.6,464.9c0,-56.32 -1.54,-95.74 -4.1,-118.78 -2.56,-22.02 -10.75,-43.01 -25.09,-61.95zM524.29,630.78c0,32.26 -1.54,52.74 -4.1,61.44 -2.56,8.7 -8.7,12.8 -18.43,12.8 -9.22,0 -15.36,-3.58 -17.92,-11.26 -2.56,-7.68 -4.1,-27.14 -4.1,-58.88L479.74,378.88c0,-28.16 2.05,-45.06 6.14,-51.2 4.1,-5.63 9.73,-8.7 16.9,-8.7 8.7,0 14.34,3.58 17.41,10.75 2.56,7.17 4.1,23.55 4.1,49.15v251.9zM1018.37,315.39c-3.58,-16.38 -10.75,-30.21 -20.99,-41.98 -10.24,-11.26 -26.11,-20.48 -46.59,-26.62 -20.99,-6.14 -50.69,-9.22 -89.09,-9.22h-142.85v548.35h141.82v-220.67h37.89c31.23,0 55.81,-4.1 75.26,-12.8 18.94,-8.7 32.26,-20.99 39.42,-36.86 7.17,-15.87 10.75,-41.47 10.75,-76.8v-47.62c0,-34.3 -2.05,-59.39 -5.63,-75.78zM905.73,421.89c0,20.48 -2.56,33.79 -7.68,39.94 -5.12,6.66 -14.34,9.73 -27.14,9.73 -3.07,0 -6.66,0 -10.24,-0.51L860.67,331.78c18.43,0 30.72,3.07 36.35,8.7 5.63,5.63 8.7,17.92 8.7,36.35v45.06z"/>
|
||||
</vector>
|
33
app/src/main/res/drawable/ic_ts.xml
Normal file
@ -0,0 +1,33 @@
|
||||
<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="#F4F4F4"
|
||||
android:pathData="M891.9,307.2v634.88c0,15.87 -12.8,28.16 -28.16,28.67H206.34c-11.78,0 -21.5,-9.22 -22.02,-21.5V90.62c0,-8.7 7.17,-15.87 15.87,-15.87h442.88c0.51,0 1.02,0.51 1.02,1.02s0,0.51 -0.51,0.51c-0.51,0.51 -0.51,1.02 0,1.54l247.81,228.86c0.51,0 0.51,0.51 0.51,0.51z"/>
|
||||
<path
|
||||
android:fillColor="#6200AF"
|
||||
android:pathData="M643.58,291.84L643.58,74.75l248.32,231.94h-233.98c-7.68,0 -14.34,-6.66 -14.34,-14.85zM420.35,366.08L202.24,366.08c-58.37,0 -105.47,-47.1 -105.47,-105.47S143.36,154.62 202.24,154.62h218.11c58.37,0 105.47,47.1 105.47,105.47s-47.1,105.98 -105.47,105.98zM658.43,771.58h-235.52c-21.5,0 -38.4,-17.41 -38.91,-38.4v-178.69c0,-21.5 17.41,-38.4 38.4,-38.4h235.52c21.5,0 38.4,17.41 38.4,38.4v178.69c0,20.99 -16.9,38.4 -37.89,38.4zM422.91,529.41c-13.82,0 -24.58,11.26 -24.58,24.58v178.69c0,13.82 11.26,24.58 24.58,24.58h235.52c13.82,0 24.58,-11.26 24.58,-24.58v-178.69c0,-13.82 -11.26,-24.58 -24.58,-24.58h-235.52z"/>
|
||||
<path
|
||||
android:fillColor="#6200AF"
|
||||
android:pathData="M437.76,771.58c-4.1,0 -7.17,-3.07 -7.17,-7.17L430.59,522.24c0,-4.1 3.07,-7.17 7.17,-7.17s7.17,3.07 7.17,7.17v242.18c0,4.1 -3.07,7.17 -7.17,7.17zM643.07,771.58c-4.1,0 -7.17,-3.07 -7.17,-7.17L635.9,522.24c0,-4.1 3.07,-7.17 7.17,-7.17s7.17,3.07 7.17,7.17v242.18c0,4.1 -3.07,7.17 -7.17,7.17z"/>
|
||||
<path
|
||||
android:fillColor="#6200AF"
|
||||
android:pathData="M437.76,595.97h-46.59c-4.1,0 -7.17,-3.07 -7.17,-7.17s3.07,-7.17 7.17,-7.17h46.59c4.1,0 7.17,3.07 7.17,7.17s-3.58,7.17 -7.17,7.17zM437.76,650.75h-46.59c-4.1,0 -7.17,-3.07 -7.17,-7.17s3.07,-7.17 7.17,-7.17h46.59c4.1,0 7.17,3.07 7.17,7.17s-3.58,7.17 -7.17,7.17zM437.76,712.19h-46.59c-4.1,0 -7.17,-3.07 -7.17,-7.17s3.07,-7.17 7.17,-7.17h46.59c4.1,0 7.17,3.07 7.17,7.17s-3.58,7.17 -7.17,7.17zM689.66,595.97h-46.59c-4.1,0 -7.17,-3.07 -7.17,-7.17s3.07,-7.17 7.17,-7.17h46.59c4.1,0 7.17,3.07 7.17,7.17s-3.07,7.17 -7.17,7.17zM689.66,650.75h-46.59c-4.1,0 -7.17,-3.07 -7.17,-7.17s3.07,-7.17 7.17,-7.17h46.59c4.1,0 7.17,3.07 7.17,7.17s-3.07,7.17 -7.17,7.17zM689.66,712.19h-46.59c-4.1,0 -7.17,-3.07 -7.17,-7.17s3.07,-7.17 7.17,-7.17h46.59c4.1,0 7.17,3.07 7.17,7.17s-3.07,7.17 -7.17,7.17zM509.44,693.25c-1.02,0 -2.56,-0.51 -3.58,-1.02 -2.05,-1.02 -3.58,-3.58 -3.58,-6.14v-86.02c0,-2.56 1.54,-4.61 3.58,-6.14 2.05,-1.02 4.61,-1.02 7.17,0l74.24,43.01c3.58,2.05 4.61,6.14 2.56,9.73 -0.51,1.02 -1.54,2.05 -2.56,2.56l-74.24,43.01c-1.02,1.02 -2.05,1.02 -3.58,1.02zM516.61,612.86v61.44l53.25,-30.72 -53.25,-30.72z"/>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:pathData="M284.16,301.57h-15.36L261.12,279.55h-33.79L220.16,301.57h-15.36l31.74,-84.99h15.87l31.74,84.99zM257.54,268.29L245.76,233.98c-0.51,-1.54 -1.02,-3.58 -1.02,-5.12 -0.51,1.54 -0.51,3.58 -1.02,5.12l-11.78,33.79h25.6zM360.96,216.06l-30.72,85.5h-15.87l-30.21,-85.5h15.36l20.99,64.51c0.51,2.56 1.02,4.61 1.54,7.17 0.51,-2.56 1.02,-5.12 1.54,-7.17l21.5,-64.51h15.87zM391.68,301.57h-14.34L377.34,216.06h14.34v85.5z"/>
|
||||
<path
|
||||
android:fillColor="#F4F4F4"
|
||||
android:pathData="M891.9,307.2v634.88c0,15.87 -12.8,28.16 -28.16,28.67H206.34c-11.78,0 -21.5,-9.22 -22.02,-21.5V90.62c0,-8.7 7.17,-15.87 15.87,-15.87h442.88c0.51,0 1.02,0.51 1.02,1.02s0,0.51 -0.51,0.51c-0.51,0.51 -0.51,1.02 0,1.54l247.81,228.86c0.51,0 0.51,0.51 0.51,0.51z"/>
|
||||
<path
|
||||
android:fillColor="@color/icon_color"
|
||||
android:pathData="M643.58,291.84V74.75l248.32,231.94h-233.98c-7.68,0 -14.34,-6.66 -14.34,-14.85zM420.35,366.08H202.24c-58.37,0 -105.47,-47.1 -105.47,-105.47S143.36,154.62 202.24,154.62h218.11c58.37,0 105.47,47.1 105.47,105.47s-47.1,105.98 -105.47,105.98z"/>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:pathData="M308.22,231.94h-24.06v69.63h-19.46V231.94H240.64v-15.87h67.58v15.87zM321.02,297.98v-18.94c3.58,3.07 7.17,5.12 11.26,6.66 4.1,1.54 8.19,2.05 12.29,2.05 2.56,0 4.61,0 6.14,-0.51s3.07,-1.02 4.61,-2.05c1.02,-1.02 2.05,-1.54 2.56,-2.56 0.51,-1.02 1.02,-2.05 1.02,-3.58 0,-1.54 -0.51,-3.07 -1.54,-4.61 -1.02,-1.54 -2.05,-2.56 -4.1,-3.58 -1.54,-1.02 -3.58,-2.05 -5.63,-3.07 -2.05,-1.02 -4.61,-2.05 -7.17,-3.07 -6.66,-2.56 -11.78,-6.14 -14.85,-10.24 -3.07,-4.1 -5.12,-8.7 -5.12,-14.34 0,-4.61 1.02,-8.19 2.56,-11.26 1.54,-3.07 4.1,-5.63 7.17,-7.68s6.66,-3.58 10.75,-4.61 8.19,-1.54 12.8,-1.54c4.61,0 8.19,0.51 11.78,1.02 3.58,0.51 6.66,1.54 9.73,2.56v17.92c-1.54,-1.02 -3.07,-2.05 -4.61,-2.56 -1.54,-0.51 -3.58,-1.54 -5.12,-2.05s-3.58,-1.02 -5.12,-1.02c-1.54,0 -3.58,-0.51 -5.12,-0.51 -2.05,0 -4.1,0 -6.14,0.51l-4.61,1.54c-1.02,0.51 -2.05,1.54 -3.07,2.56 -0.51,1.02 -1.02,2.05 -1.02,3.58 0,1.54 0.51,2.56 1.02,3.58 0.51,1.02 2.05,2.05 3.07,3.07 1.54,1.02 3.07,2.05 5.12,3.07 2.05,1.02 4.1,2.05 6.66,3.07 3.58,1.54 6.66,3.07 9.22,4.61 2.56,1.54 5.12,3.58 7.17,5.63 2.05,2.05 3.58,4.1 4.61,7.17s1.54,5.63 1.54,9.22c0,4.61 -1.02,8.7 -2.56,11.78s-4.1,5.63 -7.17,7.68 -6.66,3.58 -10.75,4.1c-4.1,1.02 -8.19,1.54 -12.8,1.54 -4.61,0 -9.22,-0.51 -13.31,-1.02 -4.61,-1.02 -8.19,-2.56 -11.26,-4.1z"/>
|
||||
<path
|
||||
android:fillColor="@color/icon_color"
|
||||
android:pathData="M504.83,708.61l75.26,-43.01c5.12,-3.58 6.66,-10.75 3.58,-15.87 -1.02,-1.54 -2.05,-2.56 -3.58,-3.58l-75.26,-43.01c-4.61,-2.05 -10.24,0 -12.8,4.61 -0.51,1.54 -1.02,3.07 -1.02,5.12v85.5c-0.51,5.12 3.58,9.73 8.7,10.24 2.05,1.02 3.58,0.51 5.12,0zM660.48,527.36L416.26,527.36c-15.36,0 -28.16,14.34 -28.16,32.26v192.51c0,17.92 12.29,32.26 28.16,32.26L660.48,784.38c15.36,0 28.16,-14.34 28.16,-32.26v-192c0,-17.92 -12.8,-32.77 -28.16,-32.77zM444.42,752.13c0,5.63 -4.1,10.24 -9.22,10.75h-18.43c-5.63,-0.51 -9.73,-5.12 -9.22,-10.75v-20.99c-0.51,-5.63 4.1,-10.24 9.22,-10.75L435.2,720.38c5.63,0.51 9.73,5.12 9.22,10.75v20.99zM444.42,666.62c0.51,5.63 -4.1,10.24 -9.22,10.75h-18.43c-5.63,-0.51 -9.73,-5.12 -9.22,-10.75v-20.99c0,-5.63 4.1,-10.24 9.22,-10.75L435.2,634.88c5.63,0.51 9.73,5.12 9.22,10.75v20.99zM444.42,581.12c0.51,5.63 -4.1,10.24 -9.22,10.75h-18.43c-5.63,-0.51 -9.73,-5.12 -9.22,-10.75v-20.99c-0.51,-5.63 4.1,-10.24 9.22,-10.75L435.2,549.38c5.63,0.51 9.73,5.12 9.22,10.75v20.99zM613.38,762.88L463.36,762.88v-214.02h150.02L613.38,762.88zM669.7,752.13c0,5.63 -3.58,10.24 -9.22,10.75h-18.43c-5.63,-0.51 -9.73,-5.12 -9.22,-10.75v-20.99c-0.51,-5.63 4.1,-10.24 9.22,-10.75h18.43c5.63,0.51 9.73,5.12 9.73,10.75l-0.51,20.99zM669.7,666.62c0.51,5.63 -4.1,10.24 -9.73,10.75h-18.43c-5.63,-0.51 -9.73,-5.12 -9.22,-10.75v-20.99c-0.51,-5.63 4.1,-10.24 9.22,-10.75h18.94c5.63,0.51 9.73,5.12 9.73,10.75l-0.51,20.99zM669.7,581.12c0.51,5.63 -4.1,10.24 -9.73,10.75h-18.43c-5.63,-0.51 -9.73,-5.12 -9.22,-10.75v-20.99c-0.51,-5.63 4.1,-10.24 9.22,-10.75h18.94c5.63,0.51 9.73,5.12 9.73,10.75l-0.51,20.99z"/>
|
||||
</vector>
|
4
app/src/main/res/drawable/ic_view.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M160,160h64v736H160zM288,160h175.23v175.23H288zM288,440.38h175.23v175.23H288zM288,720.77h175.23V896H288zM576,160h64v736h-64zM704,160h175.23v175.23H704zM704,440.38h175.23v175.23H704zM704,720.77h175.23V896H704z"/>
|
||||
</vector>
|
7
app/src/main/res/drawable/ic_windows.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024"
|
||||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M512.82,545.87v315.45l412.98,67.77v-383.22h-412.98zM512.82,545.87z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M925.8,476.59v-383.21l-412.98,68.85v314.36h412.98zM925.8,476.59z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M443.54,476.59v-302.89l-349.11,58.24v244.65h349.11zM443.54,476.59z"/>
|
||||
<path android:fillColor="@color/icon_color" android:pathData="M94.43,545.87v246.82l349.11,57.26v-304.08h-349.11zM94.43,545.87z"/>
|
||||
</vector>
|
7
app/src/main/res/drawable/item_bg.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:drawable="@color/bg_grey" android:state_pressed="true"/>
|
||||
<item android:drawable="@android:color/transparent"/>
|
||||
|
||||
</selector>
|
7
app/src/main/res/drawable/selector_start_stop_bt.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:drawable="@drawable/ic_start" android:state_selected="false"/>
|
||||
<item android:drawable="@drawable/ic_stop"/>
|
||||
|
||||
</selector>
|
8
app/src/main/res/layout/activity_component.xml
Normal 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>
|
33
app/src/main/res/layout/activity_db_test.xml
Normal file
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/layout_bar"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/insert"
|
||||
android:onClick="onClick"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="插入"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/search"
|
||||
android:onClick="onClick"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="查询"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/search_all"
|
||||
android:onClick="onClick"
|
||||
android:text="查询全部"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
31
app/src/main/res/layout/activity_download_group.xml
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<include layout="@layout/layout_bar" />
|
||||
|
||||
<com.arialyy.simple.widget.ProgressLayout
|
||||
android:id="@+id/pl"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/toolbar"
|
||||
android:layout_margin="16dp"
|
||||
/>
|
||||
|
||||
<com.arialyy.simple.widget.SubStateLinearLayout
|
||||
android:id="@+id/child_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/pl"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</layout>
|
21
app/src/main/res/layout/activity_download_mean.xml
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<include layout="@layout/layout_bar"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
18
app/src/main/res/layout/activity_fragment.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
<include layout="@layout/layout_bar"/>
|
||||
<fragment
|
||||
android:id="@+id/fragment1"
|
||||
android:name="com.arialyy.simple.core.download.fragment.DownloadFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
17
app/src/main/res/layout/activity_full_screen_code.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<com.pddstudio.highlightjs.HighlightJsView
|
||||
android:id="@+id/code_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</layout>
|
53
app/src/main/res/layout/activity_highest_priority.xml
Normal file
@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<data>
|
||||
<variable
|
||||
name="taskName"
|
||||
type="String"
|
||||
/>
|
||||
</data>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<include layout="@layout/layout_bar"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/toolbar"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="@{taskName}"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
<include
|
||||
layout="@layout/content_single"
|
||||
android:id="@+id/task"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/name"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_below="@+id/task"
|
||||
android:background="@android:color/darker_gray"
|
||||
/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/task"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
22
app/src/main/res/layout/activity_m3u8_live.xml
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<LinearLayout xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical"
|
||||
tools:context=".core.download.SingleTaskActivity"
|
||||
>
|
||||
|
||||
<include layout="@layout/layout_bar" />
|
||||
|
||||
<com.arialyy.simple.widget.ProgressLayout
|
||||
android:id="@+id/pl"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
43
app/src/main/res/layout/activity_m3u8_vod.xml
Normal file
@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical"
|
||||
tools:context=".core.download.SingleTaskActivity"
|
||||
>
|
||||
|
||||
<include layout="@layout/layout_bar" />
|
||||
|
||||
<com.arialyy.simple.widget.ProgressLayout
|
||||
android:id="@+id/pl"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatSeekBar
|
||||
android:id="@+id/seek_bar"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
/>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/video_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="200dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="@color/white"
|
||||
>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
19
app/src/main/res/layout/activity_main.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<include layout="@layout/layout_bar"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
56
app/src/main/res/layout/activity_multi.xml
Normal file
@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
<include layout="@layout/layout_bar"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_above="@+id/num"
|
||||
android:layout_below="@+id/toolbar"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/num"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_margin="16dp"
|
||||
android:onClick="onClick"
|
||||
android:text="下载数设置"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/stop_all"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_margin="16dp"
|
||||
android:onClick="onClick"
|
||||
android:text="停止所有"
|
||||
/>
|
||||
|
||||
|
||||
<Button
|
||||
android:id="@+id/turn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_margin="16dp"
|
||||
android:onClick="onClick"
|
||||
android:text="下载列表"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
22
app/src/main/res/layout/activity_multi_download.xml
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<RelativeLayout
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/activity_main"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="com.example.arial.test.MainActivity"
|
||||
>
|
||||
|
||||
<include layout="@layout/layout_bar"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/toolbar"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
37
app/src/main/res/layout/activity_multi_fragment_activity.xml
Normal file
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tabLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.google.android.material.tabs.TabItem
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="fm1" />
|
||||
|
||||
<com.google.android.material.tabs.TabItem
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="fm2" />
|
||||
|
||||
<com.google.android.material.tabs.TabItem
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="fm3" />
|
||||
|
||||
</com.google.android.material.tabs.TabLayout>
|
||||
|
||||
<androidx.viewpager.widget.ViewPager
|
||||
android:id="@+id/vpPage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
23
app/src/main/res/layout/activity_single.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
|
||||
<LinearLayout xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical"
|
||||
tools:context=".core.download.SingleTaskActivity"
|
||||
>
|
||||
|
||||
<include layout="@layout/layout_bar" />
|
||||
|
||||
<com.arialyy.simple.widget.ProgressLayout
|
||||
android:id="@+id/pl"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
86
app/src/main/res/layout/activity_single_kotlin.xml
Normal file
@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:bind="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
|
||||
<data>
|
||||
<variable
|
||||
name="fileSize"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="speed"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="progress"
|
||||
type="int"
|
||||
/>
|
||||
<variable
|
||||
name="stateStr"
|
||||
type="String"
|
||||
/>
|
||||
|
||||
<variable
|
||||
name="url"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="filePath"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="viewModel"
|
||||
type="com.arialyy.simple.core.download.KotlinDownloadActivity"
|
||||
/>
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical"
|
||||
tools:context=".core.download.SingleTaskActivity"
|
||||
>
|
||||
|
||||
<include layout="@layout/layout_bar"/>
|
||||
|
||||
<com.arialyy.simple.widget.SvgTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
bind:iconClickListener="@{() -> viewModel.chooseUrl()}"
|
||||
bind:svg_text_view_icon="@drawable/ic_modify"
|
||||
bind:text="@{@string/url(url)}"
|
||||
/>
|
||||
|
||||
<com.arialyy.simple.widget.SvgTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
bind:iconClickListener="@{() -> viewModel.chooseFilePath()}"
|
||||
bind:svg_text_view_icon="@drawable/ic_choose_file"
|
||||
bind:text="@{@string/file_path(filePath)}"
|
||||
/>
|
||||
|
||||
<include
|
||||
layout="@layout/layout_content_single"
|
||||
bind:fileSize="@{fileSize}"
|
||||
bind:progress="@{progress}"
|
||||
bind:speed="@{speed}"
|
||||
bind:stateStr="@{stateStr}"
|
||||
/>
|
||||
|
||||
<com.arialyy.simple.widget.CodeView
|
||||
android:id="@+id/code_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
40
app/src/main/res/layout/activity_test.xml
Normal file
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/start"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:onClick="onClick"
|
||||
android:text="start"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/stop"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:onClick="onClick"
|
||||
android:text="stop"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/cancel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:onClick="onClick"
|
||||
android:text="del"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
155
app/src/main/res/layout/content_single.xml
Normal file
@ -0,0 +1,155 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout 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"
|
||||
>
|
||||
|
||||
<data>
|
||||
<variable
|
||||
name="fileSize"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="speed"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="progress"
|
||||
type="int"
|
||||
/>
|
||||
</data>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||
tools:context=".core.download.SingleTaskActivity"
|
||||
tools:showIn="@layout/activity_single"
|
||||
>
|
||||
|
||||
<com.arialyy.simple.widget.HorizontalProgressBarWithNumber
|
||||
android:id="@+id/progressBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_margin="16dp"
|
||||
android:layout_toLeftOf="@+id/size"
|
||||
android:max="100"
|
||||
android:progress="@{progress}"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/size"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignTop="@+id/progressBar"
|
||||
android:layout_marginRight="16dp"
|
||||
android:text="@{fileSize}"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/handle_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/progressBar"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/speed"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:text="@{speed}"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/start"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:text="开始"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/stop"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:text="暂停"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/cancel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:text="删除任务"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/speed_hint"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/handle_bar"
|
||||
/>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/speeds"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/speed_hint"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
>
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="256kb"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="512kb"
|
||||
/>
|
||||
<RadioButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="1mb"
|
||||
/>
|
||||
<RadioButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="2mb"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="max"
|
||||
/>
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
81
app/src/main/res/layout/dialog_choose_dir.xml
Normal file
@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<data>
|
||||
<variable
|
||||
name="currentPath"
|
||||
type="String"
|
||||
/>
|
||||
<import type="android.text.Html"/>
|
||||
</data>
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/background_color"
|
||||
android:maxHeight="400dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:text="@string/choose_dir"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="22sp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/current_path"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/title"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
android:text="@{Html.fromHtml(@string/current_path(currentPath))}"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/up"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/current_path"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text=".."
|
||||
android:textColor="@color/text_black"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold"
|
||||
/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/enter"
|
||||
android:layout_below="@+id/up"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="4dp"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/enter"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:text="@string/choose_current_dir"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
70
app/src/main/res/layout/dialog_download.xml
Normal file
@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<com.arialyy.simple.widget.HorizontalProgressBarWithNumber
|
||||
android:id="@+id/progressBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_margin="16dp"
|
||||
android:layout_toLeftOf="@+id/size"
|
||||
android:max="100"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/size"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignTop="@+id/progressBar"
|
||||
android:layout_marginRight="16dp"
|
||||
android:text="0mb"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/handle_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/progressBar"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/speed"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:text="0kb/s"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/start"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:text="开始"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
|
||||
<Button
|
||||
android:id="@+id/cancel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:text="删除"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
85
app/src/main/res/layout/dialog_download_num.xml
Normal file
@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<LinearLayout
|
||||
android:minWidth="300dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:padding="10dp"
|
||||
android:text="设置下载数"
|
||||
android:textColor="@color/colorPrimary"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/black"
|
||||
/>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/rg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp"
|
||||
>
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:layoutDirection="rtl"
|
||||
android:tag="2"
|
||||
android:text="下载线程数:2"
|
||||
android:textAlignment="textStart"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:layoutDirection="rtl"
|
||||
android:tag="3"
|
||||
android:text="下载线程数:3"
|
||||
android:textAlignment="textStart"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:layoutDirection="rtl"
|
||||
android:tag="4"
|
||||
android:text="下载线程数:4"
|
||||
android:textAlignment="textStart"
|
||||
/>
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/black"
|
||||
/>
|
||||
|
||||
|
||||
<Button
|
||||
android:id="@+id/cancel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="取消"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</layout>
|
39
app/src/main/res/layout/dialog_fragment_download.xml
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:bind="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<data>
|
||||
<variable
|
||||
name="fileSize"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="speed"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="progress"
|
||||
type="int"
|
||||
/>
|
||||
|
||||
<variable
|
||||
name="stateStr"
|
||||
type="String"
|
||||
/>
|
||||
</data>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<include
|
||||
layout="@layout/layout_content_single"
|
||||
bind:fileSize="@{fileSize}"
|
||||
bind:progress="@{progress}"
|
||||
bind:speed="@{speed}"
|
||||
bind:stateStr="@{stateStr}"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
19
app/src/main/res/layout/dialog_loading.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="120dp"
|
||||
android:background="@drawable/bg_loading"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<ProgressBar
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_centerInParent="true"
|
||||
/>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
120
app/src/main/res/layout/dialog_modify_path.xml
Normal file
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:bind="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<data>
|
||||
<variable
|
||||
name="title"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="name"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="dir"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="viewModel"
|
||||
type="com.arialyy.simple.common.ModifyPathDialog"
|
||||
/>
|
||||
</data>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/background_color"
|
||||
android:gravity="center|left"
|
||||
android:maxHeight="400dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:text="@{title}"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="22sp"
|
||||
/>
|
||||
|
||||
<com.arialyy.simple.widget.SvgTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
bind:iconClickListener="@{() -> viewModel.chooseDir()}"
|
||||
bind:svg_text_view_icon="@drawable/ic_modify"
|
||||
bind:text="@{@string/dir_path(dir)}"
|
||||
/>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dir_hint"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="@string/name"
|
||||
android:textColor="@color/text_black"
|
||||
android:textSize="@dimen/text_size_normal"
|
||||
android:textStyle="bold"
|
||||
/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_toRightOf="@+id/dir_hint"
|
||||
android:background="@android:color/transparent"
|
||||
android:hint="@string/file_name_hint"
|
||||
android:lineSpacingMultiplier="1.2"
|
||||
android:text="@={name}"
|
||||
android:textColor="@color/text_black"
|
||||
android:textSize="@dimen/text_size_normal"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
<Button
|
||||
android:id="@+id/cancel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/cancel"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/enter"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/enter"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
78
app/src/main/res/layout/dialog_modify_url.xml
Normal file
@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<data>
|
||||
<variable
|
||||
name="title"
|
||||
type="java.lang.String"
|
||||
/>
|
||||
<variable
|
||||
name="text"
|
||||
type="java.lang.String"
|
||||
/>
|
||||
</data>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/background_color"
|
||||
android:gravity="center|left"
|
||||
android:maxHeight="400dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:text="@{title}"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="22sp"
|
||||
/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="@android:color/transparent"
|
||||
android:hint="@string/url_hint"
|
||||
android:lineSpacingMultiplier="1.2"
|
||||
android:text="@={text}"
|
||||
android:textColor="#000"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
<Button
|
||||
android:id="@+id/cancel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/cancel"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/enter"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/enter"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
65
app/src/main/res/layout/dialog_msg.xml
Normal file
@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<data>
|
||||
<variable
|
||||
name="title"
|
||||
type="java.lang.String"
|
||||
/>
|
||||
<variable
|
||||
name="msg"
|
||||
type="java.lang.String"
|
||||
/>
|
||||
</data>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/background_color"
|
||||
android:gravity="center|left"
|
||||
android:maxHeight="400dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:text="@{title}"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="22sp"
|
||||
/>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxHeight="400dp"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/msg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:gravity="center_vertical|left"
|
||||
android:lineSpacingMultiplier="1.2"
|
||||
android:text="@{msg}"
|
||||
android:textColor="#000"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
</ScrollView>
|
||||
|
||||
<Button
|
||||
android:id="@+id/enter"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="确定"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
76
app/src/main/res/layout/dialog_sub_task_handler.xml
Normal file
@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
|
||||
>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
android:padding="16dp"
|
||||
>
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/task_group"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="任务组:"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sub_task"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/task_group"
|
||||
android:layout_marginTop="5dp"
|
||||
android:text="子任务:"
|
||||
/>
|
||||
|
||||
<com.arialyy.simple.widget.HorizontalProgressBarWithNumber
|
||||
android:id="@+id/pb"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/sub_task"
|
||||
android:layout_marginTop="10dp"
|
||||
android:max="100"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/pb"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
|
||||
<Button
|
||||
android:id="@+id/start"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="开始"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/stop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="停止"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
<!--<Button-->
|
||||
<!--android:id="@+id/cancel"-->
|
||||
<!--android:layout_width="wrap_content"-->
|
||||
<!--android:layout_height="wrap_content"-->
|
||||
<!--android:layout_weight="1"-->
|
||||
<!--android:text="删除"-->
|
||||
<!--style="?buttonBarButtonStyle"-->
|
||||
<!--/>-->
|
||||
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
</layout>
|
16
app/src/main/res/layout/fragment_download.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.arialyy.simple.widget.ProgressLayout
|
||||
android:id="@+id/pl"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp" />
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
49
app/src/main/res/layout/fragment_video_player.xml
Normal file
@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/white"
|
||||
>
|
||||
|
||||
<SurfaceView
|
||||
android:id="@+id/surface_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="240dp"
|
||||
/>
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:layout_alignBottom="@+id/surface_view"
|
||||
android:background="#33000000"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/control_bt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:clickable="true"
|
||||
android:visibility="visible"
|
||||
app:srcCompat="@drawable/selector_start_stop_bt"
|
||||
/>
|
||||
|
||||
<SeekBar
|
||||
android:id="@+id/seek_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@+id/control_bt"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
31
app/src/main/res/layout/item_choose_dir.xml
Normal file
@ -0,0 +1,31 @@
|
||||
<?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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/bar_height"
|
||||
android:background="@drawable/item_bg"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="@dimen/icon_size"
|
||||
android:layout_height="@dimen/icon_size"
|
||||
android:layout_centerVertical="true"
|
||||
app:srcCompat="@drawable/ic_dir"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_toRightOf="@+id/icon"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/text_black"
|
||||
android:textSize="@dimen/text_size_normal"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
52
app/src/main/res/layout/item_download.xml
Normal file
@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.cardview.widget.CardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:clickable="true"
|
||||
android:foreground="@drawable/item_bg"
|
||||
android:padding="16dp"
|
||||
app:cardBackgroundColor="@color/white"
|
||||
app:cardCornerRadius="4dp"
|
||||
app:cardElevation="4dp"
|
||||
app:cardMaxElevation="8dp"
|
||||
>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="140dp"
|
||||
android:padding="30dp"
|
||||
app:srcCompat="@drawable/ic_ftp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/image"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:ellipsize="marquee"
|
||||
android:marqueeRepeatLimit="2"
|
||||
android:singleLine="true"
|
||||
android:text="qqqq"
|
||||
android:textColor="@color/text_black"
|
||||
android:textSize="@dimen/text_size_normal"
|
||||
android:textStyle="bold"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
40
app/src/main/res/layout/item_file_list.xml
Normal file
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="name"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/download_url"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/name"
|
||||
android:layout_marginTop="10dp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/download_path"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/download_url"
|
||||
android:layout_marginTop="10dp"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/bt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/download_path"
|
||||
android:text="点击下载"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
25
app/src/main/res/layout/item_group_download.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<include
|
||||
layout="@layout/layout_item_progress"
|
||||
android:id="@+id/include"
|
||||
/>
|
||||
|
||||
|
||||
<com.arialyy.simple.widget.SubStateLinearLayout
|
||||
android:visibility="gone"
|
||||
android:id="@+id/child_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/include"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
/>
|
||||
|
||||
|
||||
</RelativeLayout>
|
48
app/src/main/res/layout/item_main.xml
Normal file
@ -0,0 +1,48 @@
|
||||
<?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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/item_h"
|
||||
android:background="@drawable/item_bg"
|
||||
android:clickable="true"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="@dimen/icon_size"
|
||||
android:layout_height="@dimen/icon_size"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="16dp"
|
||||
app:srcCompat="@drawable/ic_ftp"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_toRightOf="@+id/image"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/colorAccent"
|
||||
android:textSize="@dimen/text_size_normal"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/desc"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:textColor="@color/text_black"
|
||||
android:textSize="@dimen/text_size_smallest"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
9
app/src/main/res/layout/item_simple_download.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<include layout="@layout/layout_item_progress"/>
|
||||
|
||||
</RelativeLayout>
|
10
app/src/main/res/layout/layout_bar.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/colorPrimary"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay"
|
||||
/>
|
7
app/src/main/res/layout/layout_child_state.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="14sp"
|
||||
/>
|
44
app/src/main/res/layout/layout_code_demo.xml
Normal file
@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/hint"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="@string/code_simple"
|
||||
android:textColor="@color/text_black"
|
||||
android:textSize="@dimen/text_size_normal"
|
||||
android:textStyle="bold"
|
||||
/>
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/full_screen"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
app:srcCompat="@drawable/ic_full_screen"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<com.pddstudio.highlightjs.HighlightJsView
|
||||
android:id="@+id/js_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
/>
|
||||
|
||||
|
||||
</LinearLayout>
|
115
app/src/main/res/layout/layout_content_single.xml
Normal file
@ -0,0 +1,115 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout 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"
|
||||
>
|
||||
|
||||
<data>
|
||||
<variable
|
||||
name="fileSize"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="speed"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="timeLeft"
|
||||
type="String"
|
||||
/>
|
||||
<variable
|
||||
name="progress"
|
||||
type="int"
|
||||
/>
|
||||
<variable
|
||||
name="stateStr"
|
||||
type="String"
|
||||
/>
|
||||
</data>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||
tools:context=".core.download.SingleTaskActivity"
|
||||
tools:showIn="@layout/activity_single"
|
||||
>
|
||||
|
||||
<com.arialyy.simple.widget.HorizontalProgressBarWithNumber
|
||||
android:id="@+id/progressBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_margin="16dp"
|
||||
android:layout_toLeftOf="@+id/size"
|
||||
android:max="100"
|
||||
android:progress="@{progress}"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/size"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignTop="@+id/progressBar"
|
||||
android:layout_marginRight="16dp"
|
||||
android:text="@{fileSize}"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/handle_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/progressBar"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/speed"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@{speed}"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/time_left"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@{timeLeft}"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/start"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:text="@{stateStr ?? @string/start}"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
|
||||
<Button
|
||||
android:id="@+id/cancel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:text="@string/delete"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
77
app/src/main/res/layout/layout_item_progress.xml
Normal file
@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingTop="8dp"
|
||||
>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<com.arialyy.simple.widget.HorizontalProgressBarWithNumber
|
||||
android:id="@+id/progressBar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_toLeftOf="@+id/bt"
|
||||
android:max="100"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/fileSize"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/progressBar"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="0mb/0mb"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/bt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="开始"
|
||||
style="?buttonBarButtonStyle"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/speed"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignRight="@+id/progressBar"
|
||||
android:layout_alignTop="@+id/fileSize"
|
||||
android:text="0kb/s"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/del"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/fileSize"
|
||||
android:layout_marginLeft="18dp"
|
||||
android:layout_toRightOf="@+id/progressBar"
|
||||
android:text="删除"
|
||||
android:textColor="@color/bt_selector_cancel"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/bar"
|
||||
android:layout_marginTop="5dp"
|
||||
android:text="name"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
102
app/src/main/res/layout/layout_progress_content.xml
Normal file
@ -0,0 +1,102 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/file_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/text_size_normal"
|
||||
/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/file_name"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginRight="12dp"
|
||||
android:layout_toLeftOf="@+id/del_bt"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/speed_or_state"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/text_grey"
|
||||
android:textSize="@dimen/text_size_smallest"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/left_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/speed_or_state"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_toEndOf="@+id/speed_or_state"
|
||||
android:layout_toRightOf="@+id/speed_or_state"
|
||||
android:textColor="@color/text_grey"
|
||||
android:textSize="@dimen/text_size_smallest"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/file_size"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/speed_or_state"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:text="-/-"
|
||||
android:textSize="@dimen/text_size_smallest"
|
||||
tools:ignore="RelativeOverlap"
|
||||
/>
|
||||
|
||||
<com.arialyy.simple.widget.HorizontalProgressBarWithNumber
|
||||
android:id="@+id/pb"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_below="@+id/speed_or_state"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginTop="4dp"
|
||||
android:max="100"
|
||||
/>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageButton
|
||||
android:id="@+id/del_bt"
|
||||
style="?buttonBarButtonStyle"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_toLeftOf="@+id/handle_bt"
|
||||
android:background="@color/transparent"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
app:srcCompat="@drawable/ic_close"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/handle_bt"
|
||||
style="?buttonBarButtonStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="@string/start"
|
||||
android:textSize="@dimen/text_size_normal"
|
||||
/>
|
||||
|
||||
|
||||
</RelativeLayout>
|
29
app/src/main/res/layout/layout_svg_text.xml
Normal file
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toLeftOf="@+id/image"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/text_size_normal"
|
||||
/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:clickable="true"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
20
app/src/main/res/menu/menu_highest_priority.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/add_task"
|
||||
android:icon="@mipmap/ic_add_black_48dp"
|
||||
android:orderInCategory="80"
|
||||
android:title="添加一组任务"
|
||||
app:showAsAction="always"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/help"
|
||||
android:icon="@mipmap/ic_help_black_48dp"
|
||||
android:orderInCategory="90"
|
||||
android:title="最高优先级任务介绍"
|
||||
app:showAsAction="ifRoom"
|
||||
/>
|
||||
|
||||
</menu>
|
10
app/src/main/res/menu/menu_main.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<menu 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"
|
||||
tools:context="com.example.arial.downloaddemo.com.arialyy.simple.MainActivity">
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:title="@string/action_settings"
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="never"/>
|
||||
</menu>
|
10
app/src/main/res/menu/menu_mutil_task.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item
|
||||
android:id="@+id/resume_all"
|
||||
android:orderInCategory="80"
|
||||
android:title="resume_all_task"
|
||||
app:showAsAction="always"
|
||||
/>
|
||||
</menu>
|
34
app/src/main/res/menu/menu_single_task_activity.xml
Normal file
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/help"
|
||||
android:icon="@mipmap/ic_help_black_48dp"
|
||||
android:orderInCategory="90"
|
||||
android:title="tip"
|
||||
app:showAsAction="ifRoom"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/speed_0"
|
||||
android:title="不限速"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/speed_128"
|
||||
android:title="最大速度(128kb)"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/speed_256"
|
||||
android:title="最大速度(256kb)"
|
||||
/>
|
||||
|
||||
<item
|
||||
android:id="@+id/speed_512"
|
||||
android:title="最大速度(512kb)"
|
||||
/>
|
||||
|
||||
<item
|
||||
android:id="@+id/speed_1m"
|
||||
android:title="最大速度(1mb)"
|
||||
/>
|
||||
</menu>
|
BIN
app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
app/src/main/res/mipmap-mdpi/ic_add_black_48dp.png
Normal file
After Width: | Height: | Size: 199 B |
BIN
app/src/main/res/mipmap-mdpi/ic_help_black_48dp.png
Normal file
After Width: | Height: | Size: 578 B |
BIN
app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 22 KiB |
28
app/src/main/res/values-v21/styles.xml
Normal file
@ -0,0 +1,28 @@
|
||||
<resources>
|
||||
|
||||
<!--<style name="AppTheme.NoActionBar">-->
|
||||
<!--<item name="windowActionBar">false</item>-->
|
||||
<!--<item name="windowNoTitle">true</item>-->
|
||||
<!--<item name="android:windowDrawsSystemBarBackgrounds">true</item>-->
|
||||
<!--<item name="android:statusBarColor">@android:color/transparent</item>-->
|
||||
<!--<item name="colorPrimary">@color/colorPrimary</item>-->
|
||||
<!--<item name="colorPrimaryDark">@color/colorPrimaryDark</item>-->
|
||||
<!--<item name="colorAccent">@color/colorAccent</item>-->
|
||||
<!--</style>-->
|
||||
|
||||
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
<!--设置导航栏内容可用-->
|
||||
<!--<item name="android:windowTranslucentNavigation">true</item>-->
|
||||
<!--设置状态栏内容可以-->
|
||||
<!--<item name="android:windowTranslucentStatus">true</item>-->
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
<item name="android:windowIsTranslucent">true</item>
|
||||
</style>
|
||||
</resources>
|
6
app/src/main/res/values-w820dp/dimens.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<resources>
|
||||
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
|
||||
(such as screen margins) for screens with more than 820dp of available width. This
|
||||
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
|
||||
<dimen name="activity_horizontal_margin">64dp</dimen>
|
||||
</resources>
|
21
app/src/main/res/values/attr.xml
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<declare-styleable name="HorizontalProgressBarWithNumber">
|
||||
<attr format="color" name="progress_unreached_color"/>
|
||||
<attr format="color" name="progress_reached_color"/>
|
||||
<attr format="dimension" name="progress_reached_bar_height"/>
|
||||
<attr format="dimension" name="progress_unreached_bar_height"/>
|
||||
<attr format="dimension" name="progress_text_size"/>
|
||||
<attr format="color" name="progress_text_color"/>
|
||||
<attr format="dimension" name="progress_text_offset"/>
|
||||
<attr format="enum" name="progress_text_visibility">
|
||||
<enum name="visible" value="0"/>
|
||||
<enum name="invisible" value="1"/>
|
||||
</attr>
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="SvgTextView">
|
||||
<attr format="reference" name="svg_text_view_icon"/>
|
||||
<attr format="reference" name="text"/>
|
||||
</declare-styleable>
|
||||
</resources>
|
14
app/src/main/res/values/colors.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#3F51B5</color>
|
||||
<color name="colorPrimaryDark">#303F9F</color>
|
||||
<color name="colorAccent">#FF4081</color>
|
||||
<color name="icon_color">#FF4081</color>
|
||||
<color name="black">#2B2B2B</color>
|
||||
<color name="text_black">#2B2B2B</color>
|
||||
<color name="text_grey">#55544F</color>
|
||||
<color name="icon_black">#2B2B2B</color>
|
||||
<color name="bg_grey">#efefef</color>
|
||||
<color name="bg_line">#597F96</color>
|
||||
<color name="transparent">#00000000</color>
|
||||
</resources>
|
19
app/src/main/res/values/dimens.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<resources>
|
||||
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||
<dimen name="activity_horizontal_margin">16dp</dimen>
|
||||
<dimen name="activity_vertical_margin">16dp</dimen>
|
||||
<dimen name="fab_margin">16dp</dimen>
|
||||
<dimen name="item_h">60dp</dimen>
|
||||
|
||||
<dimen name="text_size_smallest">12sp</dimen>
|
||||
<dimen name="text_size_smaller">13sp</dimen>
|
||||
<dimen name="text_size_small">14sp</dimen>
|
||||
<dimen name="text_size_normal">15sp</dimen>
|
||||
<dimen name="text_size_big">16sp</dimen>
|
||||
<dimen name="text_size_bigger">17sp</dimen>
|
||||
<dimen name="text_size_biggest">18sp</dimen>
|
||||
|
||||
<dimen name="icon_size">24dp</dimen>
|
||||
<dimen name="bar_height">48dp</dimen>
|
||||
|
||||
</resources>
|
12
app/src/main/res/values/help_code_string.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="code_ftp_upload">
|
||||
Aria.upload(this)
|
||||
.loadFtp("/mnt/sdcard/gggg.apk") //上传文件路径
|
||||
.setUploadUrl(URL) //上传的ftp服务器地址
|
||||
.login("lao", "123456")
|
||||
.start();
|
||||
</string>
|
||||
|
||||
</resources>
|
13
app/src/main/res/values/ids.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<item name="item_click_support" type="id"/>
|
||||
|
||||
<array name="main_icons">
|
||||
<item>@drawable/ic_http</item>
|
||||
<item>@drawable/ic_http</item>
|
||||
<item>@drawable/ic_http</item>
|
||||
<item>@drawable/ic_ftp</item>
|
||||
<item>@drawable/ic_ftp_dir</item>
|
||||
<item>@drawable/ic_ftp</item>
|
||||
</array>
|
||||
</resources>
|
173
app/src/main/res/values/strings.xml
Normal file
@ -0,0 +1,173 @@
|
||||
<resources>
|
||||
<string name="app_name">Aria</string>
|
||||
<string name="action_settings">Settings</string>
|
||||
|
||||
<string name="url"><![CDATA[<b><font color=#2B2B2B>URL:</b>]]> %1$s</string>
|
||||
<string name="file_name"><![CDATA[<b><font color=#2B2B2B>NAME:</b>]]> %1$s</string>
|
||||
<string name="file_path"><![CDATA[<b><font color=#2B2B2B>PATH:</b>]]> %1$s</string>
|
||||
<string name="enter">确认</string>
|
||||
<string name="cancel">取消</string>
|
||||
<string name="modify_url_dialog_title">修改URL</string>
|
||||
<string name="stop">停止</string>
|
||||
<string name="stopped">已停止</string>
|
||||
<string name="start">开始</string>
|
||||
<string name="waiting">等待中</string>
|
||||
<string name="state_error">任务已失败</string>
|
||||
<string name="resume">恢复</string>
|
||||
<string name="delete">删除</string>
|
||||
<string name="complete">完成</string>
|
||||
<string name="completed">已完成</string>
|
||||
<string name="code_simple">代码示例:</string>
|
||||
<string name="download_success">下载完成</string>
|
||||
<string name="upload_success">上传完成</string>
|
||||
<string name="download_fail">下载失败</string>
|
||||
<string name="upload_fail">上传失败</string>
|
||||
<string name="re_start">重新开始</string>
|
||||
<string name="choose_current_dir">选择当前文件夹</string>
|
||||
<string name="choose_dir">选择文件夹</string>
|
||||
<string name="current_path"><![CDATA[<b><font color=#2B2B2B>PATH:</b>]]> %1$s</string>
|
||||
<string name="dir_path"><![CDATA[<b><font color=#2B2B2B>DIR:</b>]]> %1$s</string>
|
||||
<string name="file_name_hint">文件名</string>
|
||||
<string name="url_hint">url</string>
|
||||
<string name="name">NAME: </string>
|
||||
<string name="modify_file_path">修改文件路径</string>
|
||||
<string name="m3u8_file">M3U8点播文件下载</string>
|
||||
<string name="m3u8_live">M3U8直播文件下载</string>
|
||||
|
||||
|
||||
<string name="error_file_name_null">文件名为空</string>
|
||||
|
||||
<string-array name="main_items">
|
||||
<item>HTTP 下载</item>
|
||||
<item>HTTP 上传</item>
|
||||
<item>HTTP 组合任务下载</item>
|
||||
<item>FTP 下载</item>
|
||||
<item>FTP 文件夹下载</item>
|
||||
<item>FTP 文件上传</item>
|
||||
<item>M3U8 点播文件下载</item>
|
||||
<item>M3U8 直播文件下载</item>
|
||||
<item>SFTP 下载</item>
|
||||
<item>SFTP 上传</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="main_items_desc">
|
||||
<item>单文件下载、多文件队列下载、各组件中使用</item>
|
||||
<item>上传单个文件到服务器</item>
|
||||
<item>多文件组合为一个组(如:封面、字幕、电影)</item>
|
||||
<item>单文件下载、多文件队列下载</item>
|
||||
<item>下载服务器上的某个FTP文件夹</item>
|
||||
<item>上传单个文件到服务器</item>
|
||||
<item>下载M3U8点播文件</item>
|
||||
<item>下载M3U8直播文件</item>
|
||||
<item>SFTP单文件下载</item>
|
||||
<item>SFTP单文件上传</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="download_items">
|
||||
<item>单任务下载</item>
|
||||
<item>多任务下载</item>
|
||||
<item>高优先级任务</item>
|
||||
<item>kotlin</item>
|
||||
<item>多fragment</item>
|
||||
<item>组件中使用</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="component_items">
|
||||
<item>fragment中使用</item>
|
||||
<item>dialog中使用</item>
|
||||
<item>dialogFragment中使用</item>
|
||||
</string-array>
|
||||
|
||||
|
||||
<string-array name="test_apk_download_url">
|
||||
<item>http://static.gaoshouyou.com/d/d4/4f/d6d48db3794fb9ecf47e83c346570881.apk</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="file_nams">
|
||||
<item>王者荣耀</item>
|
||||
<item>植物大战僵尸</item>
|
||||
<item>部落冲突</item>
|
||||
<item>瘟疫公司</item>
|
||||
<item>水上公园大战</item>
|
||||
<item>死亡之雨</item>
|
||||
|
||||
<item>test_1</item>
|
||||
<item>test_2</item>
|
||||
<item>test_3</item>
|
||||
|
||||
</string-array>
|
||||
<string-array name="download_url">
|
||||
<item>https://downs.muzhiwan.com/2019/06/28/com.tencent.tmgp.sgame5d15f9df3bb4d.gpk</item>
|
||||
<item>https://downs.muzhiwan.com/2017/03/15/com.ea.game.pvz2_row58c8bfc00eea8.gpk</item>
|
||||
<item>https://downs.muzhiwan.com/2019/07/04/com.supercell.clashofclans.ewan.mzw_5d1da09397884.apk</item>
|
||||
<item>https://downs.muzhiwan.com/2019/02/28/com.miniclip.plagueinc_5c77596c79179.apk</item>
|
||||
<item>https://downs.muzhiwan.com/2019/06/03/com.aqua.slide_5cf4b69e90e6a.apk</item>
|
||||
<item>https://downs.muzhiwan.com/2019/05/07/com.tinydevbox.deadrain2_g_5cd14a8aedb2f.apk</item>
|
||||
<item>http://dby-resource-android.duobeiyun.com/jz22a8508b4265466b9fb4bb29082eaa2d.zip</item>
|
||||
<item>http://dby-resource-android.duobeiyun.com/jz05fa8faf068145fcb25c93c8091297ad.zip</item>
|
||||
<item>http://dby-resource-android.duobeiyun.com/jz684e1b4c2f6b4576979e60fd95edebad.zip</item>
|
||||
|
||||
</string-array>
|
||||
|
||||
<string-array name="highest_names">
|
||||
<item>豪门足球风云</item>
|
||||
<item>碧蓝航线</item>
|
||||
<item>天龙八部手游</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="highest_urls">
|
||||
<item>https://res5.d.cn/6f78ee3bcfdd033e0193c05c74acd280a32d5c1d8da7a68963da81a1403751e88e8f115ea475566c54456b74d82098c836577f54711a35bbb149e0bd88dc15c48845327fae8652cc.apk</item>
|
||||
<item>https://res5.d.cn/6f78ee3bcfdd033e1861859eaef45235b089f60f2e08c0e0e4fc8959d94de1e358a5149b4bec8519eabc62a53eebea280a05ef2d902d3153ae1dec4cb07b505e90a9f50af7dd14c4.apk</item>
|
||||
<item>https://res5.d.cn/6f78ee3bcfdd033ef8e38596afb298d87de07e5f0f1f91f22acd57750f8ae68270531e2b266ea41c86cd196da839a0afef1952dde89773c7e26b9019249503174ca0513fa0a36a6472c4202bbf94da382964a0478471b753ebd95b67aac7ad89.apk</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="group_urls">
|
||||
<item>https://downs.muzhiwan.com/2019/06/19/com.and.games505.TerrariaPaid5d0a074e451c0.gpk</item>
|
||||
<item>https://downs.muzhiwan.com/2017/03/28/com.xyzstudio_58da07426e959.apk</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="group_urls_1">
|
||||
<item>http://hzdown.muzhiwan.com/2017/05/08/nl.noio.kingdom_59104935e56f0.apk</item>
|
||||
<!--<item>https://atom-installer.github.com/v1.13.0/AtomSetup.exe1</item>-->
|
||||
<item>http://hzdown.muzhiwan.com/2017/09/05/com.mir.iphone.empire83jie.mzw_59ae6d5a3638d.apk</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="group_urls_2">
|
||||
<item>http://down.muzhiwan.com/2017/04/05/org.sanguoqy01_58e4993914424.apk</item>
|
||||
<item>http://apk500.bce.baidu-mgame.com/game/67000/67734/20170622040827_oem_5502845.apk?r=1</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="group_urls_3">
|
||||
<item>http://down.muzhiwan.com/2017/04/05/org.sanguoqy01_58e4993914424.apk</item>
|
||||
<item>http://apk500.bce.baidu-mgame.com/game/67000/67734/20170622040827_oem_5502845.apk?r=1</item>
|
||||
<!-- <item>https://downs.muzhiwan.com/2019/07/23/com.amazid.me_5d36bade614d9.apk</item>-->
|
||||
<!-- <item>https://downs.muzhiwan.com/2019/07/30/com.counter.terrorist.attack.fps.sniper.fight_5d3fe8f0a7edf.apk</item>-->
|
||||
</string-array>
|
||||
|
||||
<string-array name="group_url4">
|
||||
<item>http://120.79.135.3/img/20180601/VR Karts Sprint.ver.1.04.build.15_crack_align.apk</item>
|
||||
<item>http://120.79.135.3/img/20180601/main.11.com.daydvr.acefishing.vr.freefull.google.global.android.common.obb</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="group_names">
|
||||
<item>泰拉瑞亚.apk</item>
|
||||
<item>疯狂屁股.apk</item>
|
||||
<!--<item>天魔幻想.apk</item>-->
|
||||
</string-array>
|
||||
|
||||
<string-array name="group_names_1">
|
||||
<item>新大陆.apk</item>
|
||||
<item>罗马战争.apk</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="group_names_2">
|
||||
<item>三国群英传.apk</item>
|
||||
<item>海岛骑兵.apk</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="group_names_3">
|
||||
<item>神奇的绳索英雄.apk</item>
|
||||
<item>自由火力反击.apk</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
47
app/src/main/res/values/styles.xml
Normal file
@ -0,0 +1,47 @@
|
||||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<!--<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">-->
|
||||
<!--<!– Customize your theme here. –>-->
|
||||
<!--<item name="colorPrimary">@color/colorPrimary</item>-->
|
||||
<!--<item name="colorPrimaryDark">@color/colorPrimaryDark</item>-->
|
||||
<!--<item name="colorAccent">@color/colorAccent</item>-->
|
||||
<!--<item name="windowActionBar">false</item>-->
|
||||
<!--<item name="windowNoTitle">true</item>-->
|
||||
<!--</style>-->
|
||||
|
||||
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
|
||||
|
||||
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"/>
|
||||
|
||||
<style name="dialogStyle" parent="@android:style/Animation.Dialog">
|
||||
<item name="android:windowEnterAnimation">@anim/dialog_enter</item>
|
||||
<!-- 进入时的动画 -->
|
||||
<item name="android:windowExitAnimation">@anim/dialog_exit</item>
|
||||
<!-- 退出时的动画 -->
|
||||
</style>
|
||||
|
||||
<!-- 对话框样式 -->
|
||||
<style name="Theme.Light.Dialog" parent="android:style/Theme.Dialog">
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="android:windowIsFloating">true</item>
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
<item name="android:scrollHorizontally">true</item>
|
||||
</style>
|
||||
|
||||
<style name="FullScreen" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="android:windowFullscreen">true</item>
|
||||
</style>
|
||||
|
||||
|
||||
</resources>
|
25
app/src/main/res/xml/aria_fileprovider_paths.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<root-path
|
||||
name="root"
|
||||
path="" />
|
||||
<files-path
|
||||
name="files"
|
||||
path="." />
|
||||
|
||||
<cache-path
|
||||
name="cache"
|
||||
path="." />
|
||||
|
||||
<external-path
|
||||
name="external"
|
||||
path="." />
|
||||
|
||||
<external-files-path
|
||||
name="external_file_path"
|
||||
path="." />
|
||||
<external-cache-path
|
||||
name="external_cache_path"
|
||||
path="." />
|
||||
|
||||
</paths>
|
7
app/src/main/res/xml/network_security_config.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<base-config cleartextTrafficPermitted="true"/>
|
||||
<!--<domain-clientConfig cleartextTrafficPermitted="true">-->
|
||||
<!--<domain includeSubdomains="true">Your URL(ex: 127.0.0.1)</domain>-->
|
||||
<!--</domain-clientConfig>-->
|
||||
</network-security-config>
|