first commit

This commit is contained in:
Lionel
2020-11-07 14:27:56 +01:00
commit 7e4552f5a5
83 changed files with 3161 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="ring"
android:innerRadiusRatio="2.5"
android:thickness="3dp"
android:useLevel="false">
<solid android:color="#CCC" />
</shape>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="270"
android:toDegrees="270">
<shape
android:innerRadiusRatio="2.5"
android:shape="ring"
android:thickness="3dp"
android:useLevel="true"><!-- this line fixes the issue for lollipop api 21 -->
<gradient
android:angle="0"
android:endColor="#007DD6"
android:startColor="#007DD6"
android:type="sweep"
android:useLevel="false" />
</shape>
</rotate>

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:fillColor="#FF000000"
android:pathData="M216,0h80c13.3,0 24,10.7 24,24v168h87.7c17.8,0 26.7,21.5 14.1,34.1L269.7,378.3c-7.5,7.5 -19.8,7.5 -27.3,0L90.1,226.1c-12.6,-12.6 -3.7,-34.1 14.1,-34.1L192,192L192,24c0,-13.3 10.7,-24 24,-24zM512,376v112c0,13.3 -10.7,24 -24,24L24,512c-13.3,0 -24,-10.7 -24,-24L0,376c0,-13.3 10.7,-24 24,-24h146.7l49,49c20.1,20.1 52.5,20.1 72.6,0l49,-49L488,352c13.3,0 24,10.7 24,24zM388,464c0,-11 -9,-20 -20,-20s-20,9 -20,20 9,20 20,20 20,-9 20,-20zM452,464c0,-11 -9,-20 -20,-20s-20,9 -20,20 9,20 20,20 20,-9 20,-20z"/>
</vector>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:drawable="@drawable/ic_download"
android:width="24dp"
android:height="24dp"
tools:ignore="UnusedAttribute" />
</layer-list >

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M20,6h-8l-2,-2L4,4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,8c0,-1.1 -0.9,-2 -2,-2zM20,18L4,18L4,8h16v10z"/>
</vector>

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M6,2c-1.1,0 -1.99,0.9 -1.99,2L4,20c0,1.1 0.89,2 1.99,2L18,22c1.1,0 2,-0.9 2,-2L20,8l-6,-6L6,2zM13,9L13,3.5L18.5,9L13,9z"/>
</vector>

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M21,19V5c0,-1.1 -0.9,-2 -2,-2H5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2zM8.5,13.5l2.5,3.01L14.5,12l4.5,6H5l3.5,-4.5z"/>
</vector>

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M12,3v10.55c-0.59,-0.34 -1.27,-0.55 -2,-0.55 -2.21,0 -4,1.79 -4,4s1.79,4 4,4 4,-1.79 4,-4V7h4V3h-6z"/>
</vector>

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M8,5v14l11,-7z"/>
</vector>

View File

@ -0,0 +1,14 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<group android:scaleX="0.12105304"
android:scaleY="0.12105304"
android:translateX="24.3"
android:translateY="24.3">
<path
android:fillColor="#FF000000"
android:pathData="M490.694,271.546c0,60.687 -49.379,110.064 -110.064,110.064h-28.561v-23.235h28.561c47.877,0 86.829,-38.945 86.829,-86.823c0,-47.877 -38.952,-86.82 -86.829,-86.82c-4.504,0 -9.257,0.432 -14.523,1.321l-7.43,1.253l-4.173,-6.271c-16.172,-24.296 -43.207,-38.798 -72.312,-38.798c-2.908,0 -5.876,0.153 -8.79,0.443l-9.794,0.993l-2.583,-9.505c-10.243,-37.702 -44.656,-64.043 -83.693,-64.043c-47.871,0 -86.82,38.949 -86.82,86.82c0,6.011 0.641,12.105 1.918,18.11l2.211,10.392l-10.152,3.129c-36.641,11.275 -61.25,44.626 -61.25,82.981c0,45.082 34.534,82.213 78.524,86.41c-2.746,1.395 -5.228,3.351 -7.128,5.887c-2.657,3.559 -4.117,7.968 -4.117,12.401c0,1.199 0.121,2.399 0.328,3.569C39.301,370.7 0,325.683 0,271.558c0,-45.188 26.953,-84.887 68.039,-101.745c-0.508,-4.286 -0.763,-8.588 -0.763,-12.862c0,-60.683 49.37,-110.056 110.056,-110.056c46.308,0 87.477,29.211 103.229,72.123c35.11,-0.44 67.844,15.552 88.98,43.113c3.83,-0.417 7.495,-0.629 11.101,-0.629C441.315,161.491 490.694,210.861 490.694,271.546zM218.657,365.185l-37.102,14.652V254.168c0,-1.637 -1.324,-2.973 -2.97,-2.973h-29.731c-1.64,0 -2.967,1.336 -2.967,2.973v125.669l-37.09,-14.652c-1.248,-0.491 -2.663,-0.089 -3.467,0.976c-0.396,0.531 -0.6,1.158 -0.6,1.791c0,0.632 0.204,1.276 0.618,1.814l56.022,72.867c0.562,0.733 1.433,1.165 2.361,1.165c0.925,0 1.791,-0.432 2.353,-1.165l56.031,-72.867c0.816,-1.064 0.816,-2.542 0.018,-3.605C221.326,365.096 219.898,364.694 218.657,365.185zM371.326,328.833c0.39,-0.532 0.597,-1.164 0.597,-1.791c0,-0.638 -0.207,-1.276 -0.62,-1.809L315.28,252.36c-0.562,-0.732 -1.431,-1.164 -2.358,-1.164s-1.785,0.432 -2.358,1.164l-56.022,72.874c-0.821,1.059 -0.821,2.536 -0.023,3.6c0.804,1.064 2.229,1.466 3.47,0.976l37.102,-14.652v125.668c0,1.644 1.324,2.974 2.974,2.974h29.731c1.637,0 2.973,-1.33 2.973,-2.974V315.157l37.096,14.652C369.092,330.299 370.522,329.898 371.326,328.833z"/>
</group>
</vector>

View File

@ -0,0 +1,14 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<group android:scaleX="0.12105304"
android:scaleY="0.12105304"
android:translateX="24.3"
android:translateY="24.3">
<path
android:fillColor="#FF000000"
android:pathData="M490.694,271.546c0,60.687 -49.379,110.064 -110.064,110.064h-28.561v-23.235h28.561c47.877,0 86.829,-38.945 86.829,-86.823c0,-47.877 -38.952,-86.82 -86.829,-86.82c-4.504,0 -9.257,0.432 -14.523,1.321l-7.43,1.253l-4.173,-6.271c-16.172,-24.296 -43.207,-38.798 -72.312,-38.798c-2.908,0 -5.876,0.153 -8.79,0.443l-9.794,0.993l-2.583,-9.505c-10.243,-37.702 -44.656,-64.043 -83.693,-64.043c-47.871,0 -86.82,38.949 -86.82,86.82c0,6.011 0.641,12.105 1.918,18.11l2.211,10.392l-10.152,3.129c-36.641,11.275 -61.25,44.626 -61.25,82.981c0,45.082 34.534,82.213 78.524,86.41c-2.746,1.395 -5.228,3.351 -7.128,5.887c-2.657,3.559 -4.117,7.968 -4.117,12.401c0,1.199 0.121,2.399 0.328,3.569C39.301,370.7 0,325.683 0,271.558c0,-45.188 26.953,-84.887 68.039,-101.745c-0.508,-4.286 -0.763,-8.588 -0.763,-12.862c0,-60.683 49.37,-110.056 110.056,-110.056c46.308,0 87.477,29.211 103.229,72.123c35.11,-0.44 67.844,15.552 88.98,43.113c3.83,-0.417 7.495,-0.629 11.101,-0.629C441.315,161.491 490.694,210.861 490.694,271.546zM218.657,365.185l-37.102,14.652V254.168c0,-1.637 -1.324,-2.973 -2.97,-2.973h-29.731c-1.64,0 -2.967,1.336 -2.967,2.973v125.669l-37.09,-14.652c-1.248,-0.491 -2.663,-0.089 -3.467,0.976c-0.396,0.531 -0.6,1.158 -0.6,1.791c0,0.632 0.204,1.276 0.618,1.814l56.022,72.867c0.562,0.733 1.433,1.165 2.361,1.165c0.925,0 1.791,-0.432 2.353,-1.165l56.031,-72.867c0.816,-1.064 0.816,-2.542 0.018,-3.605C221.326,365.096 219.898,364.694 218.657,365.185zM371.326,328.833c0.39,-0.532 0.597,-1.164 0.597,-1.791c0,-0.638 -0.207,-1.276 -0.62,-1.809L315.28,252.36c-0.562,-0.732 -1.431,-1.164 -2.358,-1.164s-1.785,0.432 -2.358,1.164l-56.022,72.874c-0.821,1.059 -0.821,2.536 -0.023,3.6c0.804,1.064 2.229,1.466 3.47,0.976l37.102,-14.652v125.668c0,1.644 1.324,2.974 2.974,2.974h29.731c1.637,0 2.973,-1.33 2.973,-2.974V315.157l37.096,14.652C369.092,330.299 370.522,329.898 371.326,328.833z"/>
</group>
</vector>

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M19,19H5V5h7V3H5c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2v-7h-2v7zM14,3v2h3.59l-9.83,9.83 1.41,1.41L19,6.41V10h2V3h-7z"/>
</vector>

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M19.14,12.94c0.04,-0.3 0.06,-0.61 0.06,-0.94c0,-0.32 -0.02,-0.64 -0.07,-0.94l2.03,-1.58c0.18,-0.14 0.23,-0.41 0.12,-0.61l-1.92,-3.32c-0.12,-0.22 -0.37,-0.29 -0.59,-0.22l-2.39,0.96c-0.5,-0.38 -1.03,-0.7 -1.62,-0.94L14.4,2.81c-0.04,-0.24 -0.24,-0.41 -0.48,-0.41h-3.84c-0.24,0 -0.43,0.17 -0.47,0.41L9.25,5.35C8.66,5.59 8.12,5.92 7.63,6.29L5.24,5.33c-0.22,-0.08 -0.47,0 -0.59,0.22L2.74,8.87C2.62,9.08 2.66,9.34 2.86,9.48l2.03,1.58C4.84,11.36 4.8,11.69 4.8,12s0.02,0.64 0.07,0.94l-2.03,1.58c-0.18,0.14 -0.23,0.41 -0.12,0.61l1.92,3.32c0.12,0.22 0.37,0.29 0.59,0.22l2.39,-0.96c0.5,0.38 1.03,0.7 1.62,0.94l0.36,2.54c0.05,0.24 0.24,0.41 0.48,0.41h3.84c0.24,0 0.44,-0.17 0.47,-0.41l0.36,-2.54c0.59,-0.24 1.13,-0.56 1.62,-0.94l2.39,0.96c0.22,0.08 0.47,0 0.59,-0.22l1.92,-3.32c0.12,-0.22 0.07,-0.47 -0.12,-0.61L19.14,12.94zM12,15.6c-1.98,0 -3.6,-1.62 -3.6,-3.6s1.62,-3.6 3.6,-3.6s3.6,1.62 3.6,3.6S13.98,15.6 12,15.6z"/>
</vector>

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/>
</vector>

View File

@ -0,0 +1,4 @@
<vector android:height="24dp" android:viewportHeight="1792"
android:viewportWidth="1792" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M526,1394q0,53 -37.5,90.5t-90.5,37.5q-52,0 -90,-38t-38,-90q0,-53 37.5,-90.5t90.5,-37.5 90.5,37.5 37.5,90.5zM1024,1600q0,53 -37.5,90.5t-90.5,37.5 -90.5,-37.5 -37.5,-90.5 37.5,-90.5 90.5,-37.5 90.5,37.5 37.5,90.5zM320,896q0,53 -37.5,90.5t-90.5,37.5 -90.5,-37.5 -37.5,-90.5 37.5,-90.5 90.5,-37.5 90.5,37.5 37.5,90.5zM1522,1394q0,52 -38,90t-90,38q-53,0 -90.5,-37.5t-37.5,-90.5 37.5,-90.5 90.5,-37.5 90.5,37.5 37.5,90.5zM558,398q0,66 -47,113t-113,47 -113,-47 -47,-113 47,-113 113,-47 113,47 47,113zM1728,896q0,53 -37.5,90.5t-90.5,37.5 -90.5,-37.5 -37.5,-90.5 37.5,-90.5 90.5,-37.5 90.5,37.5 37.5,90.5zM1088,192q0,80 -56,136t-136,56 -136,-56 -56,-136 56,-136 136,-56 136,56 56,136zM1618,398q0,93 -66,158.5t-158,65.5q-93,0 -158.5,-65.5t-65.5,-158.5q0,-92 65.5,-158t158.5,-66q92,0 158,66t66,158z"/>
</vector>

View File

@ -0,0 +1,10 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<rotate
android:drawable="@drawable/ic_spinner"
android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:toDegrees="360" />
</item>
</layer-list>

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:fillColor="#FF000000"
android:pathData="M296,384h-80c-13.3,0 -24,-10.7 -24,-24L192,192h-87.7c-17.8,0 -26.7,-21.5 -14.1,-34.1L242.3,5.7c7.5,-7.5 19.8,-7.5 27.3,0l152.2,152.2c12.6,12.6 3.7,34.1 -14.1,34.1L320,192v168c0,13.3 -10.7,24 -24,24zM512,376v112c0,13.3 -10.7,24 -24,24L24,512c-13.3,0 -24,-10.7 -24,-24L0,376c0,-13.3 10.7,-24 24,-24h136v8c0,30.9 25.1,56 56,56h80c30.9,0 56,-25.1 56,-56v-8h136c13.3,0 24,10.7 24,24zM388,464c0,-11 -9,-20 -20,-20s-20,9 -20,20 9,20 20,20 20,-9 20,-20zM452,464c0,-11 -9,-20 -20,-20s-20,9 -20,20 9,20 20,20 20,-9 20,-20z"/>
</vector>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:drawable="@drawable/ic_upload"
android:width="24dp"
android:height="24dp"
tools:ignore="UnusedAttribute" />
</layer-list >

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:drawable="@drawable/ic_upload"
android:width="@dimen/icon_size"
android:height="@dimen/icon_size"
tools:ignore="UnusedAttribute" />
</layer-list >

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="490.694dp"
android:height="490.694dp"
android:viewportWidth="490.694"
android:viewportHeight="490.694">
<path
android:fillColor="#FF000000"
android:pathData="M490.694,271.546c0,60.687 -49.379,110.064 -110.064,110.064h-28.561v-23.235h28.561c47.877,0 86.829,-38.945 86.829,-86.823c0,-47.877 -38.952,-86.82 -86.829,-86.82c-4.504,0 -9.257,0.432 -14.523,1.321l-7.43,1.253l-4.173,-6.271c-16.172,-24.296 -43.207,-38.798 -72.312,-38.798c-2.908,0 -5.876,0.153 -8.79,0.443l-9.794,0.993l-2.583,-9.505c-10.243,-37.702 -44.656,-64.043 -83.693,-64.043c-47.871,0 -86.82,38.949 -86.82,86.82c0,6.011 0.641,12.105 1.918,18.11l2.211,10.392l-10.152,3.129c-36.641,11.275 -61.25,44.626 -61.25,82.981c0,45.082 34.534,82.213 78.524,86.41c-2.746,1.395 -5.228,3.351 -7.128,5.887c-2.657,3.559 -4.117,7.968 -4.117,12.401c0,1.199 0.121,2.399 0.328,3.569C39.301,370.7 0,325.683 0,271.558c0,-45.188 26.953,-84.887 68.039,-101.745c-0.508,-4.286 -0.763,-8.588 -0.763,-12.862c0,-60.683 49.37,-110.056 110.056,-110.056c46.308,0 87.477,29.211 103.229,72.123c35.11,-0.44 67.844,15.552 88.98,43.113c3.83,-0.417 7.495,-0.629 11.101,-0.629C441.315,161.491 490.694,210.861 490.694,271.546zM218.657,365.185l-37.102,14.652V254.168c0,-1.637 -1.324,-2.973 -2.97,-2.973h-29.731c-1.64,0 -2.967,1.336 -2.967,2.973v125.669l-37.09,-14.652c-1.248,-0.491 -2.663,-0.089 -3.467,0.976c-0.396,0.531 -0.6,1.158 -0.6,1.791c0,0.632 0.204,1.276 0.618,1.814l56.022,72.867c0.562,0.733 1.433,1.165 2.361,1.165c0.925,0 1.791,-0.432 2.353,-1.165l56.031,-72.867c0.816,-1.064 0.816,-2.542 0.018,-3.605C221.326,365.096 219.898,364.694 218.657,365.185zM371.326,328.833c0.39,-0.532 0.597,-1.164 0.597,-1.791c0,-0.638 -0.207,-1.276 -0.62,-1.809L315.28,252.36c-0.562,-0.732 -1.431,-1.164 -2.358,-1.164s-1.785,0.432 -2.358,1.164l-56.022,72.874c-0.821,1.059 -0.821,2.536 -0.023,3.6c0.804,1.064 2.229,1.466 3.47,0.976l37.102,-14.652v125.668c0,1.644 1.324,2.974 2.974,2.974h29.731c1.637,0 2.973,-1.33 2.973,-2.974V315.157l37.096,14.652C369.092,330.299 370.522,329.898 371.326,328.833z"/>
</vector>

View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout 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="match_parent"
tools:context=".MainActivity">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary" />
</com.google.android.material.appbar.AppBarLayout>
<androidx.viewpager.widget.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/flotUpload"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@drawable/ic_upload_24" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/file_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:id="@+id/file_desc"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<ImageView
android:id="@+id/file_image"
android:layout_width="81dp"
android:layout_height="match_parent"
android:scaleType="center"
android:scaleX="2"
android:scaleY="2" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/file_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:textSize="16sp"
android:textStyle="bold" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:paddingBottom="5dp">
<TextView
android:id="@+id/file_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxWidth="200dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:singleLine="true" />
<TextView
android:id="@+id/file_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="10dp"
android:paddingEnd="10dp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/file_buttons"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:visibility="gone">
<Button
android:id="@+id/file_download"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableStart="@drawable/ic_download_24"
android:text="@string/file_download" />
<Button
android:id="@+id/file_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableStart="@drawable/ic_open"
android:text="@string/file_view" />
<Button
android:id="@+id/file_share"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableStart="@drawable/ic_share"
android:text="@string/file_share" />
</LinearLayout>
<include layout="@layout/horizontal_line" />
</LinearLayout>

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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="match_parent"
tools:context=".fragment.DownloadFragment">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/refresh"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
tools:layout_editor_absoluteX="153dp">
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent">
<LinearLayout
android:id="@+id/main_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<include layout="@layout/horizontal_line" />
</LinearLayout>
</ScrollView>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.main.PlaceholderFragment">
<TextView
android:id="@+id/section_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_marginBottom="@dimen/activity_vertical_margin"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="@+id/constraintLayout"
tools:layout_constraintLeft_creator="1"
tools:layout_constraintTop_creator="1" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".fragment.ProgressFragment" >
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/groot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
</LinearLayout>
</ScrollView>
</FrameLayout>

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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="match_parent"
tools:context=".fragment.UploadFragment">
<Button
android:id="@+id/upload"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableStart="@drawable/ic_upload_32"
android:drawablePadding="10dp"
android:paddingLeft="70dp"
android:paddingTop="50dp"
android:paddingRight="70dp"
android:paddingBottom="50dp"
android:text="@string/upload"
android:textSize="18sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.39" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<View
android:id="@+id/horizontal_line"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray" />
</FrameLayout>

View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal"
android:paddingStart="10dp"
android:paddingEnd="10dp">
<ImageView
android:id="@+id/transferType"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/fileName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/fileSize"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="10dp"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout>
<RelativeLayout
android:id="@+id/progressContainer"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_centerInParent="true"
android:indeterminate="false"
android:max="100"
android:progress="0"
android:progressDrawable="@drawable/circular_progress_bar" />
<TextView
android:id="@+id/progressText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="0 %" />
</RelativeLayout>
</LinearLayout>

View File

@ -0,0 +1,9 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/settings"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>

View File

@ -0,0 +1,16 @@
<?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/action_folder"
android:icon="@drawable/ic_folder_open"
android:orderInCategory="100"
android:title="@string/action_folder"
app:showAsAction="ifRoom" />
<item
android:id="@+id/action_settings"
android:icon="@drawable/ic_settings"
android:orderInCategory="100"
android:title="@string/action_settings"
app:showAsAction="ifRoom" />
</menu>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View 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>

View File

@ -0,0 +1,12 @@
<resources>
<!-- Reply Preference -->
<string-array name="reply_entries">
<item>Reply</item>
<item>Reply to all</item>
</string-array>
<string-array name="reply_values">
<item>reply</item>
<item>reply_all</item>
</string-array>
</resources>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#008478</color>
<color name="colorPrimaryDark">#00746A</color>
<color name="colorAccent">#2196F3</color>
</resources>

View File

@ -0,0 +1,9 @@
<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="appbar_padding">16dp</dimen>
<dimen name="fab_margin">16dp</dimen>
<dimen name="appbar_padding_top">8dp</dimen>
<dimen name="icon_size">32dp</dimen>
</resources>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#3DDC84</color>
</resources>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="ID_FILE_NAME" type="id" />
<item name="ID_FILE_SIZE" type="id" />
<item name="ID_FILE_HREF" type="id" />
<item name="ID_FILE_MIME" type="id" />
<item name="ID_SAVE_LOCATION" type="id" />
<item name="ID_FILE_BUTTONS" type="id" />
</resources>

View File

@ -0,0 +1,43 @@
<resources>
<string name="app_name">Local Transfer</string>
<!-- NavigationUI Summary -->
<string name="nav_header_title">Local Transfer</string>
<string name="nav_header_subtitle">File transfer in local area network</string>
<string name="nav_header_desc"></string>
<!-- Menu Titles -->
<string name="action_folder">Open Download Folder</string>
<string name="action_settings">Settings</string>
<!-- Tabs Titles -->
<string name="download">Download</string>
<string name="upload">Upload</string>
<string name="progress">Progress</string>
<string name="title_activity_settings">Preferences</string>
<!-- Preference Titles -->
<string name="server_header">Server Preferences</string>
<string name="local_header">Local Preferences</string>
<!-- Server Preferences -->
<string name="server_host">Host</string>
<string name="server_protocol">Use secure https</string>
<string name="server_host_def">netdldata.lan</string>
<string name="server_port">Port</string>
<string name="server_port_def">80</string>
<string name="server_root">Root</string>
<string name="server_root_def">/projects/transfer</string>
<!-- Local Preferences -->
<string name="local_storage">Local Storage</string>
<string name="local_storage_def">Download/TransferLocal</string>
<!-- File buttons -->
<string name="file_share">Share</string>
<string name="file_view">View</string>
<string name="file_download">Download</string>
<string name="share_title">Open with</string>
</resources>

View File

@ -0,0 +1,19 @@
<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>
</style>
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
</resources>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<EditText android:id="@android:id/edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:singleLine="true"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginStart="21dp"
android:layout_marginEnd="21dp"/>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,8 @@
<paths>
<files-path name="files" path="/"/>
<cache-path name="cache" path="/"/>
<external-path name="ExtPath" path="/"/>
<external-files-path name="ExtFiles" path="/"/>
<external-cache-path name="CacheFiles" path="/"/>
<external-media-path name="MediaFiles" path="/"/>
</paths>

View File

@ -0,0 +1,42 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceCategory
app:title="@string/server_header">
<SwitchPreference
android:defaultValue="false"
android:key="protocol"
android:title="@string/server_protocol" />
<EditTextPreference
app:defaultValue="@string/server_host_def"
app:key="host"
app:title="@string/server_host"
app:useSimpleSummaryProvider="true" />
<EditTextPreference
app:defaultValue="@string/server_port_def"
app:key="port"
app:title="@string/server_port"
app:useSimpleSummaryProvider="true"
app:dialogLayout="@xml/preference_edit_text_input" />
<EditTextPreference
app:defaultValue="@string/server_root_def"
app:key="root"
app:title="@string/server_root"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>
<PreferenceCategory app:title="@string/local_header">
<Preference
app:key="local_storage"
app:title="@string/local_storage"
app:defaultValue="@string/local_storage_def"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>
</PreferenceScreen>