Skip to content

Commit c84ab21

Browse files
authored
Different file cons for different type of files added
Fixes #61: Different file cons for different type of files added
2 parents dcc91b2 + c9b7351 commit c84ab21

23 files changed

+294
-13
lines changed

app/src/main/java/com/github/code/gambit/di/AppModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ object AppModule {
9494
}
9595

9696
@Provides
97-
fun provideFileListAdapter(): FileListAdapter {
98-
return FileListAdapter()
97+
fun provideFileListAdapter(@ApplicationContext context: Context): FileListAdapter {
98+
return FileListAdapter(context)
9999
}
100100

101101
@Provides

app/src/main/java/com/github/code/gambit/ui/fragment/home/FileListAdapter.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package com.github.code.gambit.ui.fragment.home
22

3+
import android.content.Context
34
import android.view.MotionEvent
45
import android.view.View
6+
import androidx.core.content.ContextCompat
57
import androidx.recyclerview.widget.LinearLayoutManager
68
import androidx.recyclerview.widget.RecyclerView
79
import com.github.code.gambit.R
@@ -10,10 +12,11 @@ import com.github.code.gambit.data.model.Url
1012
import com.github.code.gambit.databinding.FileListItemBinding
1113
import com.github.code.gambit.ui.BaseAdapter
1214
import com.github.code.gambit.ui.OnItemClickListener
15+
import com.github.code.gambit.utility.extention.getIcon
1316
import com.github.code.gambit.utility.extention.hide
1417
import com.github.code.gambit.utility.extention.show
1518

16-
class FileListAdapter :
19+
class FileListAdapter(val context: Context) :
1720
BaseAdapter<File, FileListItemBinding, FileUrlClickCallback>(R.layout.file_list_item) {
1821

1922
private val viewPool = RecyclerView.RecycledViewPool()
@@ -27,6 +30,7 @@ class FileListAdapter :
2730
binding.fileName.text = file.name
2831
binding.fileDate.text = file.timestamp
2932
binding.fileSize.text = file.size
33+
binding.fileIcon.setImageDrawable(ContextCompat.getDrawable(context, file.getIcon()))
3034
map[file.id] = UrlListAdapter(file.urls).apply {
3135
listener = object : OnItemClickListener<Url> {
3236
override fun onItemClick(item: Url) {

app/src/main/java/com/github/code/gambit/utility/AppConstant.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ object AppConstant {
66
const val SHARE_URL = "https://vt-webclient.herokuapp.com/"
77
const val FILTER_DATE_TEMPLATE = "yyyy-MM-dd"
88

9+
object FileType {
10+
const val PDF = "pdf"
11+
const val EPUB = "epub"
12+
const val TXT = "txt"
13+
const val RTF = "rtf"
14+
val ANDROID = listOf("apk")
15+
val DOC = listOf("doc", "docx")
16+
val EXCEL = listOf("xls", "xlsx")
17+
val PPT = listOf("ppt", "pptx")
18+
val IMAGE = listOf("gif", "jpeg", "jpg", "png", "svg")
19+
val AUDIO = listOf("m4a", "mp3", "flac", "wav", "wma", "aac")
20+
val VIDEO = listOf("mp4", "m4v", "mov", "mkv", "avi", "mpg", "mpeg")
21+
val SCRIPT = listOf("py", "kt", "java", "cpp", "c", "sh", "html", "htm", "xml", "js", "dart", "asp", "aspx", "vb", "php", "class")
22+
val COMPRESS = listOf("7z", "arj", "deb", "pkg", "rar", "rpm", "tar", "gz", "z", "zip", "tar.gz")
23+
}
24+
925
object Named {
1026
const val PERMISSION_ARRAY = "PERMISSION"
1127
const val USER_ID = "UID"

app/src/main/java/com/github/code/gambit/utility/extention/extension.kt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package com.github.code.gambit.utility.extention
33
import com.amplifyframework.auth.AuthUserAttribute
44
import com.amplifyframework.auth.AuthUserAttributeKey
55
import com.amplifyframework.auth.options.AuthSignUpOptions
6+
import com.github.code.gambit.R
7+
import com.github.code.gambit.data.model.File
68
import com.github.code.gambit.data.model.User
79
import com.github.code.gambit.helper.auth.AuthData
810
import com.github.code.gambit.utility.AppConstant
@@ -53,3 +55,22 @@ fun Int.byteToMb(): String {
5355
}
5456

5557
fun String.toSharableUrl(): String = "${AppConstant.SHARE_URL}$this"
58+
59+
fun File.getIcon(): Int {
60+
return when (this.type.lowercase()) {
61+
AppConstant.FileType.PDF -> R.drawable.ic_pdf
62+
AppConstant.FileType.EPUB -> R.drawable.ic_epub
63+
AppConstant.FileType.TXT -> R.drawable.ic_txt
64+
AppConstant.FileType.RTF -> R.drawable.ic_rtf
65+
in AppConstant.FileType.ANDROID -> R.drawable.ic_apk
66+
in AppConstant.FileType.DOC -> R.drawable.ic_doc
67+
in AppConstant.FileType.EXCEL -> R.drawable.ic_xls
68+
in AppConstant.FileType.PPT -> R.drawable.ic_ppt
69+
in AppConstant.FileType.IMAGE -> R.drawable.ic_image
70+
in AppConstant.FileType.AUDIO -> R.drawable.ic_audio
71+
in AppConstant.FileType.VIDEO -> R.drawable.ic_video
72+
in AppConstant.FileType.SCRIPT -> R.drawable.ic_script
73+
in AppConstant.FileType.COMPRESS -> R.drawable.ic_compress
74+
else -> R.drawable.ic_unknown
75+
}
76+
}

app/src/main/res/drawable/ic_apk.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="@dimen/file_type_icon_size"
3+
android:height="@dimen/file_type_icon_size"
4+
android:viewportWidth="512"
5+
android:viewportHeight="512">
6+
<path
7+
android:fillColor="@color/raw_file_type_color"
8+
android:pathData="M494.478,138.557L364.038,3.018C362.183,1.09 359.623,0 356.945,0H162.534c-21.757,0 -39.457,17.694 -39.457,39.442v137.789H44.289c-16.276,0 -29.519,13.239 -29.519,29.513v147.744c0,16.273 13.243,29.512 29.519,29.512h78.788v88.627c0,21.71 17.699,39.373 39.457,39.373h295.24c21.757,0 39.457,-17.653 39.457,-39.351V145.385C497.231,142.839 496.245,140.392 494.478,138.557zM359.385,26.581l107.079,111.265H359.385V26.581zM44.289,364.308c-5.418,0 -9.827,-4.405 -9.827,-9.82V206.744c0,-5.415 4.409,-9.821 9.827,-9.821h265.882c5.421,0 9.829,4.406 9.829,9.821v147.744c0,5.415 -4.409,9.82 -9.829,9.82H44.289zM477.538,472.649c0,10.84 -8.865,19.659 -19.764,19.659h-295.24c-10.899,0 -19.764,-8.828 -19.764,-19.68V384h167.401c16.279,0 29.522,-13.239 29.522,-29.512V206.744c0,-16.274 -13.243,-29.513 -29.522,-29.513H142.769V39.442c0,-10.891 8.865,-19.75 19.764,-19.75h177.159v128c0,5.438 4.409,9.846 9.846,9.846h128V472.649z"/>
9+
<path
10+
android:fillColor="@color/raw_file_type_color"
11+
android:pathData="M105.154,240.347H87.097l-32.943,84.576h18.114l6.981,-19.212h33.809l7.385,19.212h18.578L105.154,240.347zM84.499,291.461l11.424,-31.385l11.653,31.385H84.499z"/>
12+
<path
13+
android:fillColor="@color/raw_file_type_color"
14+
android:pathData="M207.96,249.895c-3.269,-4.251 -7.325,-7.01 -12.172,-8.281c-3.153,-0.847 -9.922,-1.267 -20.308,-1.267h-27.405v84.576h17.078v-31.904h11.133c7.732,0 13.635,-0.404 17.711,-1.211c3.001,-0.655 5.952,-1.992 8.856,-4.01c2.905,-2.019 5.297,-4.798 7.183,-8.337c1.886,-3.537 2.829,-7.904 2.829,-13.096C212.867,259.636 211.232,254.144 207.96,249.895zM193.336,273.174c-1.287,1.883 -3.067,3.269 -5.337,4.153c-2.27,0.883 -6.769,1.326 -13.499,1.326h-9.346v-24h8.249c6.154,0 10.249,0.192 12.288,0.576c2.772,0.502 5.058,1.75 6.868,3.751c1.807,1.999 2.71,4.539 2.71,7.616C195.268,269.095 194.623,271.288 193.336,273.174z"/>
15+
<path
16+
android:fillColor="@color/raw_file_type_color"
17+
android:pathData="M269.807,273.287l31.847,-32.94l-22.961,0l-34.501,37.556l0,-37.556l-17.075,0l0,84.576l17.075,0l0,-25.558l13.846,-14.134l23.249,39.692l22.098,0z"/>
18+
</vector>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="@dimen/file_type_icon_size"
3+
android:height="@dimen/file_type_icon_size"
4+
android:viewportWidth="512"
5+
android:viewportHeight="512">
6+
<path
7+
android:fillColor="@color/raw_file_type_color"
8+
android:pathData="M407.518,0H104.482C81.44,0 62.694,18.719 62.694,41.73v428.542c0,23.009 18.746,41.728 41.788,41.728h303.036c23.042,0 41.788,-18.719 41.788,-41.728V41.73C449.306,18.719 430.56,0 407.518,0zM428.408,470.272c0,11.486 -9.371,20.83 -20.89,20.83H104.482c-11.519,0 -20.89,-9.344 -20.89,-20.83V41.73c0,-11.486 9.371,-20.832 20.89,-20.832h303.036c11.519,0 20.89,9.346 20.89,20.832V470.272z"/>
9+
<path
10+
android:fillColor="@color/raw_file_type_color"
11+
android:pathData="M384.292,205.689c-9.413,-46.829 -83.565,-87.755 -86.717,-89.475c-3.236,-1.764 -7.163,-1.693 -10.338,0.189c-3.171,1.882 -5.115,5.297 -5.115,8.985v176.078c-4.041,-2.63 -8.628,-4.843 -13.724,-6.568c-15.411,-5.213 -33.893,-5.409 -52.041,-0.546c-18.147,4.862 -34.055,14.27 -44.797,26.494c-11.776,13.398 -16.154,28.634 -12.332,42.901c3.823,14.268 15.233,25.273 32.13,30.989c7.991,2.703 16.804,4.056 25.968,4.056c8.515,0 17.334,-1.168 26.074,-3.51c18.145,-4.862 34.055,-14.27 44.796,-26.494c8.146,-9.268 12.747,-19.416 13.547,-29.514c0.789,-1.468 1.277,-3.122 1.277,-4.906V143.94c22.989,15.096 55.878,41.403 60.786,65.88c1.745,8.698 -0.301,16.541 -6.251,23.978c-3.605,4.506 -2.874,11.083 1.631,14.688c4.509,3.605 11.083,2.875 14.688,-1.631C383.786,234.463 387.292,220.612 384.292,205.689zM272.5,354.992c-8.049,9.157 -20.304,16.296 -34.508,20.102c-14.204,3.806 -28.388,3.751 -39.936,-0.156c-5.829,-1.972 -16.003,-6.75 -18.641,-16.601c-2.639,-9.851 3.781,-19.075 7.843,-23.698c8.049,-9.157 20.304,-16.296 34.508,-20.102c7.005,-1.878 14.005,-2.815 20.686,-2.815c6.867,0 13.397,0.991 19.25,2.971c5.829,1.972 16.003,6.751 18.641,16.601C282.982,341.144 276.561,350.37 272.5,354.992z"/>
12+
</vector>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="@dimen/file_type_icon_size"
3+
android:height="@dimen/file_type_icon_size"
4+
android:viewportWidth="512"
5+
android:viewportHeight="512">
6+
<path
7+
android:fillColor="@color/raw_file_type_color"
8+
android:pathData="M349.657,18.343A8,8 0,0 0,344 16L120,16A56.063,56.063 0,0 0,64 72L64,440a56.063,56.063 0,0 0,56 56L392,496a56.063,56.063 0,0 0,56 -56L448,120a8,8 0,0 0,-2.343 -5.657ZM352,43.313 L420.687,112L392,112a40.045,40.045 0,0 1,-40 -40ZM120,32h56L176,48L160,48a8,8 0,0 0,0 16h16L176,80L160,80a8,8 0,0 0,0 16h16v16L160,112a8,8 0,0 0,0 16h16v16L160,144a8,8 0,0 0,0 16h16v16L160,176a8,8 0,0 0,0 16h16v16L160,208a8,8 0,0 0,0 16h16v16a8,8 0,0 0,-7.761 6.06l-5.906,23.622a24,24 0,1 0,43.334 0l-5.906,-23.622A8,8 0,0 0,192 240L192,224h16a8,8 0,0 0,0 -16L192,208L192,192h16a8,8 0,0 0,0 -16L192,176L192,160h16a8,8 0,0 0,0 -16L192,144L192,128h16a8,8 0,0 0,0 -16L192,112L192,96h16a8,8 0,0 0,0 -16L192,80L192,64h16a8,8 0,0 0,0 -16L192,48L192,32L336,32L336,72a56.063,56.063 0,0 0,56 56h40L432,352L80,352L80,72A40.045,40.045 0,0 1,120 32ZM192,280a8,8 0,0 1,-16 0,7.9 7.9,0 0,1 0.938,-3.756 8,8 0,0 0,0.7 -1.825L182.246,256h3.508l4.605,18.419a8,8 0,0 0,0.7 1.825A7.9,7.9 0,0 1,192 280ZM392,480L120,480a40.045,40.045 0,0 1,-40 -40L80,368L432,368v72A40.045,40.045 0,0 1,392 480Z"/>
9+
<path
10+
android:fillColor="@color/raw_file_type_color"
11+
android:pathData="M272,400a8,8 0,0 0,0 -16H240a8,8 0,0 0,0 16h8v48h-8a8,8 0,0 0,0 16h32a8,8 0,0 0,0 -16h-8V400Z"/>
12+
<path
13+
android:fillColor="@color/raw_file_type_color"
14+
android:pathData="M320,384L304,384a8,8 0,0 0,-8 8v64a8,8 0,0 0,16 0L312,432h8a24,24 0,0 0,0 -48ZM320,416h-8L312,400h8a8,8 0,0 1,0 16Z"/>
15+
<path
16+
android:fillColor="@color/raw_file_type_color"
17+
android:pathData="M208,448H188.944l26.211,-52.422A8,8 0,0 0,208 384H176a8,8 0,0 0,0 16h19.056l-26.211,52.422A8,8 0,0 0,176 464h32a8,8 0,0 0,0 -16Z"/>
18+
</vector>

app/src/main/res/drawable/ic_doc.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="@dimen/file_type_icon_size"
3+
android:height="@dimen/file_type_icon_size"
4+
android:viewportWidth="512"
5+
android:viewportHeight="512">
6+
<path
7+
android:fillColor="@color/raw_file_type_color"
8+
android:pathData="M49.479,138.557L364.04,3.018C362.183,1.09 359.621,0 356.945,0h-194.41c-21.757,0 -39.458,17.694 -39.458,39.442v137.789H44.29c-16.278,0 -29.521,13.239 -29.521,29.513v147.744C14.769,370.761 28.012,384 44.29,384h78.787v88.627c0,21.71 17.701,39.373 39.458,39.373h295.238c21.757,0 39.458,-17.653 39.458,-39.351V145.385C497.231,142.839 496.244,140.392 494.479,138.557zM359.385,26.581l107.079,111.265H359.385V26.581zM44.29,364.308c-5.42,0 -9.828,-4.405 -9.828,-9.82V206.744c0,-5.415 4.409,-9.821 9.828,-9.821h265.881c5.419,0 9.829,4.406 9.829,9.821v147.744c0,5.415 -4.41,9.82 -9.829,9.82H44.29zM477.538,472.649c0,10.84 -8.867,19.659 -19.766,19.659H162.535c-10.899,0 -19.766,-8.828 -19.766,-19.68V384h167.401c16.279,0 29.522,-13.239 29.522,-29.512V206.744c0,-16.274 -13.243,-29.513 -29.522,-29.513H142.769V39.442c0,-10.891 8.867,-19.75 19.766,-19.75h177.157v128c0,5.438 4.409,9.846 9.846,9.846h128V472.649z"/>
9+
<path
10+
android:fillColor="@color/raw_file_type_color"
11+
android:pathData="M130.826,263.451c-1.846,-5.403 -4.536,-9.969 -8.076,-13.701c-3.537,-3.731 -7.788,-6.326 -12.75,-7.788c-3.692,-1.079 -9.056,-1.615 -16.096,-1.615h-31.21v84.576h32.133c6.309,0 11.348,-0.595 15.116,-1.79c5.039,-1.615 9.039,-3.865 12,-6.749c3.924,-3.808 6.942,-8.788 9.059,-14.942c1.73,-5.039 2.594,-11.037 2.594,-18.001C133.595,275.52 132.672,268.856 130.826,263.451zM114.21,298.183c-1.152,3.789 -2.644,6.508 -4.47,8.162c-1.827,1.654 -4.126,2.829 -6.895,3.52c-2.114,0.539 -5.558,0.807 -10.326,0.807H79.769v-56.02h7.672c6.964,0 11.636,0.269 14.021,0.808c3.193,0.694 5.827,2.021 7.904,3.98c2.075,1.962 3.692,4.694 4.844,8.195c1.154,3.498 1.733,8.517 1.733,15.057C115.944,289.231 115.365,294.395 114.21,298.183z"/>
12+
<path
13+
android:fillColor="@color/raw_file_type_color"
14+
android:pathData="M294.097,293.826c-1.425,6.193 -3.771,10.733 -7.04,13.615c-3.269,2.885 -7.173,4.328 -11.712,4.328c-6.154,0 -11.153,-2.27 -14.998,-6.806c-3.847,-4.539 -5.77,-12.156 -5.77,-22.848c0,-10.075 1.952,-17.364 5.856,-21.863c3.904,-4.502 8.99,-6.753 15.259,-6.753c4.539,0 8.394,1.27 11.567,3.808c3.173,2.54 5.261,6.001 6.26,10.385l16.904,-4.04c-1.922,-6.769 -4.807,-11.96 -8.652,-15.576c-6.462,-6.114 -14.865,-9.172 -25.211,-9.172c-11.848,0 -21.406,3.894 -28.674,11.683c-7.269,7.789 -10.905,18.72 -10.905,32.797c0,13.307 3.616,23.798 10.848,31.471c7.229,7.673 16.46,11.51 27.692,11.51c9.075,0 16.566,-2.24 22.471,-6.722c5.903,-4.48 10.124,-11.335 12.662,-20.566L294.097,293.826z"/>
15+
<path
16+
android:fillColor="@color/raw_file_type_color"
17+
android:pathData="M215.434,250.501c-7.483,-7.732 -17.452,-11.597 -29.915,-11.597c-6.885,0 -12.96,1.115 -18.23,3.345c-3.961,1.654 -7.606,4.192 -10.932,7.616c-3.328,3.421 -5.952,7.288 -7.877,11.596c-2.577,5.846 -3.864,13.076 -3.864,21.691c0,13.462 3.712,24.03 11.133,31.702c7.424,7.673 17.426,11.51 30.002,11.51c12.423,0 22.346,-3.854 29.77,-11.567c7.421,-7.712 11.133,-18.395 11.133,-32.049C226.654,268.979 222.914,258.23 215.434,250.501zM202.452,304.414c-4.364,4.903 -9.952,7.355 -16.761,7.355c-6.806,0 -12.421,-2.471 -16.844,-7.412c-4.423,-4.943 -6.636,-12.202 -6.636,-21.779c0,-9.731 2.154,-17.01 6.461,-21.837c4.308,-4.827 9.982,-7.242 17.019,-7.242c7.04,0 12.684,2.385 16.933,7.156c4.251,4.768 6.375,12 6.375,21.691C208.999,292.155 206.818,299.51 202.452,304.414z"/>
18+
</vector>

app/src/main/res/drawable/ic_epub.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="@dimen/file_type_icon_size"
3+
android:height="@dimen/file_type_icon_size"
4+
android:viewportWidth="512"
5+
android:viewportHeight="512">
6+
<path
7+
android:fillColor="@color/raw_file_type_color"
8+
android:pathData="m456.287,104.056v-76.556c0,-15.163 -12.336,-27.5 -27.5,-27.5h-224.563c-4.142,0 -7.5,3.357 -7.5,7.5s3.358,7.5 7.5,7.5h224.563c6.893,0 12.5,5.607 12.5,12.5v71.929c-2.059,-0.274 -4.155,-0.429 -6.287,-0.429h-358c-0.429,0 -0.853,0.021 -1.279,0.032v-31.532c0,-28.948 23.551,-52.5 52.5,-52.5h41.003c4.142,0 7.5,-3.357 7.5,-7.5s-3.358,-7.5 -7.5,-7.5h-41.003c-37.22,0 -67.5,30.28 -67.5,67.5v34.375c-18.198,6.659 -31.221,24.149 -31.221,44.625v92c0,4.143 3.358,7.5 7.5,7.5s7.5,-3.357 7.5,-7.5v-92c-0.033,-15.973 11.608,-29.18 26.62,-31.957 1.909,-0.351 3.872,-0.543 5.88,-0.543h358c17.92,0 32.5,14.579 32.5,32.5v146c0,17.921 -14.58,32.5 -32.5,32.5h-358c-17.92,0 -32.5,-14.579 -32.5,-32.5v-19.324c0,-4.143 -3.358,-7.5 -7.5,-7.5s-7.5,3.357 -7.5,7.5v19.324c0,20.476 13.023,37.966 31.221,44.625v130.375c0,0.057 0.007,0.111 0.008,0.167 -0.001,0.111 -0.008,0.221 -0.008,0.333 0,24.262 19.738,44 44,44h47.003c4.142,0 7.5,-3.357 7.5,-7.5s-3.358,-7.5 -7.5,-7.5h-47.003c-15.991,0 -29,-13.01 -29,-29s13.009,-29 29,-29h251.06c4.142,0 7.5,-3.357 7.5,-7.5s-3.358,-7.5 -7.5,-7.5h-251.06c-11.102,0 -21.25,4.142 -29,10.951v-94.983c0.426,0.011 0.85,0.032 1.279,0.032h358c2.132,0 4.228,-0.155 6.287,-0.429v84.429h-50.507c-4.142,0 -7.5,3.357 -7.5,7.5s3.358,7.5 7.5,7.5h48.92c-8.706,18.43 -8.705,39.571 0,58h-252.976c-4.142,0 -7.5,3.357 -7.5,7.5s3.358,7.5 7.5,7.5h257.056c4.461,0 8.482,-2.292 10.755,-6.13s2.351,-8.465 0.207,-12.376c-8.747,-15.964 -8.746,-35.024 0,-50.988 1.088,-1.985 1.598,-4.154 1.545,-6.311v-101.251c15.529,-7.82 26.213,-23.903 26.213,-42.444v-146c0,-18.541 -10.684,-34.624 -26.213,-42.444z"/>
9+
<path
10+
android:fillColor="@color/raw_file_type_color"
11+
android:pathData="m394.021,158.324h-31.183c-4.142,0 -7.5,3.357 -7.5,7.5v107.352c-0.08,4.041 3.493,7.598 7.533,7.5 0.287,-0.001 28.788,-0.128 36.595,-0.128 20.068,0 36.396,-16.327 36.396,-36.396 0,-13.517 -7.412,-25.327 -18.38,-31.604 5.414,-5.764 8.74,-13.51 8.74,-22.022 0.001,-17.755 -14.445,-32.202 -32.201,-32.202zM394.021,173.324c9.485,0 17.202,7.717 17.202,17.202 0,9.484 -7.717,17.201 -17.202,17.201 -4.548,0.01 -17.921,0.041 -23.683,0.029v-34.433h23.683zM399.467,265.548c-5.295,0 -20.032,0.058 -29.128,0.096v-42.839c7.239,-0.046 21.521,-0.055 29.128,-0.048 11.797,0 21.396,9.598 21.396,21.396s-9.599,21.395 -21.396,21.395z"/>
12+
<path
13+
android:fillColor="@color/raw_file_type_color"
14+
android:pathData="m128.458,173.814c4.142,0 7.5,-3.357 7.5,-7.5s-3.358,-7.5 -7.5,-7.5h-44.82c-4.142,0 -7.5,3.357 -7.5,7.5v106.371c0,4.143 3.358,7.5 7.5,7.5h44.82c4.142,0 7.5,-3.357 7.5,-7.5s-3.358,-7.5 -7.5,-7.5h-37.32v-38.185h34.016c4.142,0 7.5,-3.357 7.5,-7.5s-3.358,-7.5 -7.5,-7.5h-34.016v-38.186z"/>
15+
<path
16+
android:fillColor="@color/raw_file_type_color"
17+
android:pathData="m254.575,158.324c-4.142,0 -7.5,3.357 -7.5,7.5v73.869c0,14.246 6.641,25.414 20.303,34.143 12.881,8.507 31.309,8.964 44.933,1.979 20.132,-10.139 24.358,-25.281 24.358,-36.199v-73.792c0,-4.143 -3.358,-7.5 -7.5,-7.5s-7.5,3.357 -7.5,7.5v73.792c0,9.886 -5.268,17.345 -16.106,22.803 -8.978,4.607 -21.597,4.429 -30.108,-1.224 -9.378,-5.991 -13.379,-12.422 -13.379,-21.502v-73.869c-0.001,-4.142 -3.359,-7.5 -7.501,-7.5z"/>
18+
<path
19+
android:fillColor="@color/raw_file_type_color"
20+
android:pathData="m168.627,273.176v-39.172c6.996,-0.039 17.262,-0.091 22.391,-0.091 21.167,0 38.388,-16.954 38.388,-37.794s-17.221,-37.795 -38.388,-37.795h-29.891c-1.724,-0.002 -3.434,0.611 -4.761,1.705 -1.719,1.402 -2.738,3.579 -2.739,5.795v107.352c0,4.143 3.358,7.5 7.5,7.5s7.5,-3.358 7.5,-7.5zM191.019,173.324c12.677,0 23.388,10.438 23.388,22.795 0,12.355 -10.71,22.794 -23.388,22.794 -5.1,0 -15.219,0.051 -22.226,0.09 -0.039,-7.186 -0.091,-17.683 -0.091,-22.884 0,-4.38 -0.03,-15.327 -0.051,-22.795z"/>
21+
</vector>

0 commit comments

Comments
 (0)