Skip to content

Commit

Permalink
Updated icons by SVG files
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciotogneri committed Sep 11, 2016
1 parent c1a0735 commit e5bc097
Show file tree
Hide file tree
Showing 62 changed files with 60 additions and 850 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected void fillView(View rowView, ViewHolder viewHolder, FileInfo fileInfo)

viewHolder.size.setText(getContext().getResources().getQuantityString(R.plurals.labelItems, numberOfChildren, numberOfChildren));

viewHolder.icon.setImageResource(R.drawable.folder);
viewHolder.icon.setImageResource(R.drawable.ic_folder);
viewHolder.extension.setText(null);
viewHolder.extension.setBackgroundResource(android.R.color.transparent);
}
Expand All @@ -60,25 +60,25 @@ protected void fillView(View rowView, ViewHolder viewHolder, FileInfo fileInfo)
}
else if (fileInfo.isPdf())
{
viewHolder.icon.setImageResource(R.drawable.pdf);
viewHolder.icon.setImageResource(R.drawable.ic_pdf);
viewHolder.extension.setText(null);
viewHolder.extension.setBackgroundResource(android.R.color.transparent);
}
else if (fileInfo.isAudio())
{
viewHolder.icon.setImageResource(R.drawable.audio);
viewHolder.icon.setImageResource(R.drawable.ic_audio);
viewHolder.extension.setText(null);
viewHolder.extension.setBackgroundResource(android.R.color.transparent);
}
else if (fileInfo.isVideo())
{
viewHolder.icon.setImageResource(R.drawable.video);
viewHolder.icon.setImageResource(R.drawable.ic_video);
viewHolder.extension.setText(null);
viewHolder.extension.setBackgroundResource(android.R.color.transparent);
}
else
{
viewHolder.icon.setImageResource(R.drawable.file);
viewHolder.icon.setImageResource(R.drawable.ic_file);

String extension = fileInfo.extension();

Expand Down
Binary file removed app/src/main/res/drawable-hdpi/audio.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-hdpi/delete.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-hdpi/file.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-hdpi/folder.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-hdpi/pdf.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-hdpi/select_all.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-hdpi/share.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-hdpi/video.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-mdpi/audio.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-mdpi/delete.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-mdpi/file.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-mdpi/folder.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-mdpi/pdf.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-mdpi/select_all.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-mdpi/share.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-mdpi/video.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xhdpi/audio.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xhdpi/delete.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xhdpi/file.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xhdpi/folder.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xhdpi/pdf.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xhdpi/select_all.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xhdpi/share.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xhdpi/video.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xxhdpi/audio.png
Binary file not shown.
Binary file removed app/src/main/res/drawable-xxhdpi/delete.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxhdpi/file.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxhdpi/folder.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxhdpi/pdf.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxhdpi/select_all.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxhdpi/share.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxhdpi/video.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxxhdpi/audio.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxxhdpi/delete.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxxhdpi/file.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxxhdpi/folder.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxxhdpi/pdf.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxxhdpi/select_all.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxxhdpi/share.png
Diff not rendered.
Binary file removed app/src/main/res/drawable-xxxhdpi/video.png
Diff not rendered.
8 changes: 8 additions & 0 deletions app/src/main/res/drawable/ic_audio.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<vector android:height="24dp" android:viewportHeight="48.0"
android:viewportWidth="48.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillAlpha="1" android:fillColor="#67a898"
android:pathData="M44,12.63 L44,44.21C44,46.3 42.15,48 39.86,48L8.14,48C5.85,48 4,46.3 4,44.21L4,3.79C4,1.7 5.85,0 8.14,0L30.21,0 44,12.63Z" android:strokeColor="#00000000"/>
<path android:fillAlpha="1" android:fillColor="#76c2af"
android:pathData="M44,11.92 L44,13.5 32.72,13.5C30.39,13.5 29.31,11.76 29.31,9.61L29.31,0 31.02,0 44,11.92Z" android:strokeColor="#00000000"/>
<path android:fillColor="#ffffff" android:pathData="M12.85,37.26C13.89,38.61 16.03,38.7 17.63,37.46 18.28,36.96 19.44,35.59 19.44,32.79L19.44,24.14 31.77,21.79 31.77,27.25C31.77,29.17 30.21,29.62 29.68,29.72 29.64,29.72 29.59,29.73 29.55,29.74 29.53,29.74 29.49,29.75 29.49,29.75L29.5,29.75C28.88,29.86 28.26,30.12 27.7,30.55 26.1,31.79 25.64,33.88 26.67,35.22 27.71,36.56 29.85,36.65 31.45,35.42 32.26,34.79 33.07,33.59 33.07,31.7L33.07,17.21C33.07,16.45 32.44,16.01 31.68,16.25L19.22,18.6C18.46,18.84 18.14,19.65 18.14,20.41L18.14,28.84C18.14,30.77 16.36,31.66 15.84,31.76 15.81,31.76 15.79,31.77 15.76,31.78 15.69,31.79 15.65,31.79 15.65,31.79L15.66,31.8C15.05,31.91 14.43,32.17 13.88,32.6 12.28,33.83 11.82,35.92 12.85,37.26Z"/>
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/ic_delete.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:viewportHeight="48.0"
android:viewportWidth="48.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillAlpha="1" android:fillColor="#feffff"
android:pathData="M8.14,42.67C8.14,45.61 10.51,48 13.43,48L34.57,48C37.49,48 39.86,45.61 39.86,42.67L39.86,10.67 8.14,10.67 8.14,42.67ZM42.5,2.67 L33.25,2.67 30.61,0 17.39,0 14.75,2.67 5.5,2.67 5.5,8 42.5,8 42.5,2.67Z" android:strokeColor="#00000000"/>
</vector>
7 changes: 7 additions & 0 deletions app/src/main/res/drawable/ic_file.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<vector android:height="24dp" android:viewportHeight="64.0"
android:viewportWidth="64.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillAlpha="1" android:fillColor="#f0f0f0"
android:pathData="M11,0C7.69,0 5,2.62 5,5.82L5,29.09 5,40.73 5,58.18C5,61.38 7.69,64 11,64L53,64C56.31,64 59,61.38 59,58.18L59,40.73 59,29.09 59,17.45 41,0 11,0Z" android:strokeColor="#00000000"/>
<path android:fillAlpha="1" android:fillColor="#e6e6e6"
android:pathData="M59,17.45 L41,0 41,11.64C41,14.84 43.69,17.45 47,17.45L59,17.45Z" android:strokeColor="#00000000"/>
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/ic_folder.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:viewportHeight="64.0"
android:viewportWidth="64.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#cca352" android:pathData="M60,7.73 L24,7.73C24,5.67 22.21,4 20,4L4,4C1.79,4 0,5.67 0,7.73L0,11.47 0,17.07 0,18.93C0,21 1.79,22.67 4,22.67L60,22.67C62.21,22.67 64,21 64,18.93L64,11.47C64,9.4 62.21,7.73 60,7.73Z"/>
<path android:fillColor="#ffcc66" android:pathData="M60,13.18 L4,13.18C1.79,13.18 0,14.93 0,17.09L0,56.1C0,58.25 1.79,60 4,60L60,60C62.21,60 64,58.25 64,56.1L64,17.09C64,14.93 62.21,13.18 60,13.18Z"/>
</vector>
8 changes: 8 additions & 0 deletions app/src/main/res/drawable/ic_pdf.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<vector android:height="24dp" android:viewportHeight="48.0"
android:viewportWidth="48.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#cb0606" android:pathData="M44,12.63 L44,44.21C44,46.3 42.15,48 39.86,48L8.14,48C5.85,48 4,46.3 4,44.21L4,3.79C4,1.7 5.85,0 8.14,0L30.21,0 44,12.63Z"/>
<path android:fillColor="#fb8d8d" android:pathData="M44,11.92 L44,13.5 32.72,13.5C30.39,13.5 29.31,11.76 29.31,9.61L29.31,0 31.02,0 44,11.92Z"/>
<path android:fillColor="#00000000"
android:pathData="M24.05,16.39C24.52,16.61 24.42,16.89 24.28,18.22 24.13,19.6 23.65,22.11 22.71,24.58 21.77,27.05 20.38,29.48 19.16,31.27 17.95,33.07 16.91,34.23 16.12,34.91 15.32,35.58 14.78,35.76 14.42,35.82 14.06,35.88 13.9,35.82 13.8,35.64 13.71,35.46 13.67,35.16 13.76,34.8 13.84,34.44 14.03,34.03 14.58,33.49 15.13,32.95 16.04,32.29 17.3,31.68 18.56,31.06 20.18,30.49 21.51,30.1 22.84,29.72 23.87,29.51 24.78,29.34 25.69,29.18 26.46,29.06 27.22,29 27.99,28.94 28.73,28.94 29.46,29 30.19,29.06 30.9,29.18 31.52,29.33 32.13,29.48 32.65,29.66 33.1,29.94 33.56,30.22 33.95,30.61 34.14,31.05 34.34,31.48 34.34,31.96 34.17,32.31 34.01,32.65 33.69,32.86 33.31,32.98 32.94,33.1 32.52,33.13 32.02,32.98 31.52,32.83 30.93,32.5 30.32,32.07 29.7,31.63 29.06,31.09 28.21,30.26 27.37,29.42 26.34,28.28 25.46,27.17 24.59,26.07 23.87,24.99 23.39,24.08 22.9,23.16 22.64,22.41 22.43,21.67 22.22,20.92 22.06,20.17 22,19.5 21.93,18.82 21.96,18.22 22.03,17.74 22.09,17.27 22.19,16.9 22.35,16.66 22.51,16.43 22.74,16.31 22.9,16.25 23.06,16.19 23.16,16.19 23.26,16.17 23.35,16.16 23.45,16.13 23.6,16.17 23.74,16.22 23.93,16.33 24.11,16.45"
android:strokeColor="#ffffff" android:strokeLineJoin="round" android:strokeWidth="1.4318996668"/>
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/ic_select.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:viewportHeight="96.0"
android:viewportWidth="96.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillAlpha="1" android:fillColor="#ffffff" android:pathData="M80,4H16C9.37,4 4,9.37 4,16v64c0,6.63 5.37,12 12,12h64c6.63,0 12,-5.37 12,-12V16C92,9.37 86.63,4 80,4zM84,80c0,2.21 -1.79,4 -4,4H16c-2.21,0 -4,-1.79 -4,-4V16c0,-2.21 1.79,-4 4,-4h64c2.21,0 4,1.79 4,4V80z"/>
<path android:fillAlpha="1" android:fillColor="#ffffff" android:pathData="M72.31,31.17C70.25,29.1 66.9,29.1 64.83,31.17L42.39,53.61 31.17,42.39C29.1,40.33 25.75,40.33 23.69,42.39 21.62,44.46 21.62,47.81 23.69,49.87L38.65,64.83C40.71,66.9 44.06,66.9 46.13,64.83L72.31,38.65C74.38,36.58 74.38,33.24 72.31,31.17Z"/>
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/ic_share.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:viewportHeight="48.0"
android:viewportWidth="48.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillAlpha="1" android:fillColor="#ffffff"
android:pathData="M39.78,31.28C37.44,31.28 35.33,32.29 33.83,33.89L16.34,25.18C16.4,24.77 16.44,24.35 16.44,23.93 16.44,23.51 16.4,23.1 16.34,22.71L33.81,14.09C35.31,15.7 37.43,16.72 39.78,16.72 44.32,16.72 48,12.98 48,8.36 48,3.74 44.32,0 39.78,0 35.24,0 31.56,3.74 31.56,8.36 31.56,8.77 31.6,9.18 31.66,9.58L14.19,18.19C12.69,16.58 10.57,15.57 8.22,15.57 3.68,15.57 0,19.31 0,23.93 0,28.54 3.68,32.28 8.22,32.28 10.56,32.28 12.67,31.28 14.17,29.68L31.66,38.39C31.6,38.8 31.56,39.21 31.56,39.64 31.56,44.26 35.24,48 39.78,48 44.32,48 48,44.26 48,39.64 48,35.02 44.32,31.28 39.78,31.28Z" android:strokeColor="#00000000"/>
</vector>
8 changes: 8 additions & 0 deletions app/src/main/res/drawable/ic_video.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<vector android:height="24dp" android:viewportHeight="48.0"
android:viewportWidth="48.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillAlpha="1" android:fillColor="#5a719c"
android:pathData="M44,12.63 L44,44.21C44,46.3 42.15,48 39.86,48L8.14,48C5.85,48 4,46.3 4,44.21L4,3.79C4,1.7 5.85,0 8.14,0L30.21,0 44,12.63Z" android:strokeColor="#00000000"/>
<path android:fillAlpha="1" android:fillColor="#6988c2"
android:pathData="M44,11.92 L44,13.5 32.72,13.5C30.39,13.5 29.31,11.76 29.31,9.61L29.31,0 31.02,0 44,11.92Z" android:strokeColor="#00000000"/>
<path android:fillAlpha="1" android:fillColor="#ffffff" android:pathData="M21.11,31.07 L27.62,27.81C28.22,27.51 28.22,26.66 27.62,26.36L21.11,23.1C20.56,22.83 19.93,23.22 19.93,23.83L19.93,30.34C19.93,30.95 20.56,31.34 21.11,31.07L21.11,31.07 21.11,31.07ZM34.59,17.32 L13.41,17.32C12.07,17.32 10.97,18.42 10.97,19.77L10.97,34.4C10.97,35.75 12.06,36.85 13.41,36.85L34.59,36.85C35.93,36.85 37.03,35.75 37.03,34.4L37.03,19.77C37.02,18.41 35.94,17.32 34.59,17.32L34.59,17.32 34.59,17.32ZM15.86,34.4C15.86,34.86 15.51,35.23 15.04,35.23L13.43,35.23C12.97,35.23 12.6,34.88 12.6,34.4L12.6,32.79C12.6,32.34 12.95,31.97 13.43,31.97L15.04,31.97C15.49,31.97 15.86,32.32 15.86,32.79L15.86,34.4 15.86,34.4ZM15.86,27.89C15.86,28.35 15.51,28.71 15.04,28.71L13.43,28.71C12.97,28.71 12.6,28.36 12.6,27.89L12.6,26.28C12.6,25.83 12.95,25.46 13.43,25.46L15.04,25.46C15.49,25.46 15.86,25.81 15.86,26.28L15.86,27.89 15.86,27.89ZM15.86,21.38C15.86,21.83 15.51,22.2 15.04,22.2L13.43,22.2C12.97,22.2 12.6,21.85 12.6,21.38L12.6,19.77C12.6,19.31 12.95,18.95 13.43,18.95L15.04,18.95C15.49,18.95 15.86,19.29 15.86,19.77L15.86,21.38 15.86,21.38ZM30.51,35.23 L17.49,35.23 17.49,18.94 30.51,18.94 30.51,35.23ZM35.4,34.4C35.4,34.86 35.05,35.23 34.58,35.23L32.96,35.23C32.51,35.23 32.14,34.88 32.14,34.4L32.14,32.79C32.14,32.34 32.49,31.97 32.96,31.97L34.58,31.97C35.03,31.97 35.4,32.32 35.4,32.79L35.4,34.4ZM35.4,27.89C35.4,28.35 35.05,28.71 34.58,28.71L32.96,28.71C32.51,28.71 32.14,28.36 32.14,27.89L32.14,26.28C32.14,25.83 32.49,25.46 32.96,25.46L34.58,25.46C35.03,25.46 35.4,25.81 35.4,26.28L35.4,27.89ZM35.4,21.38C35.4,21.83 35.05,22.2 34.58,22.2L32.96,22.2C32.51,22.2 32.14,21.85 32.14,21.38L32.14,19.77C32.14,19.31 32.49,18.95 32.96,18.95L34.58,18.95C35.03,18.95 35.4,19.29 35.4,19.77L35.4,21.38Z"/>
</vector>
6 changes: 3 additions & 3 deletions app/src/main/res/layout/screen_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@
<android.support.design.widget.FloatingActionButton
android:id="@+id/button.selectAll"
style="@style/floatingButton"
android:src="@drawable/select_all"/>
android:src="@drawable/ic_select"/>

<android.support.design.widget.FloatingActionButton
android:id="@+id/button.share"
style="@style/floatingButton"
android:src="@drawable/share"/>
android:src="@drawable/ic_share"/>

<android.support.design.widget.FloatingActionButton
android:id="@+id/button.delete"
style="@style/floatingButton"
android:src="@drawable/delete"/>
android:src="@drawable/ic_delete"/>

</LinearLayout>

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':app', ':tools'
include ':app'
95 changes: 0 additions & 95 deletions tools/assets/audio-w48h48.svg
Diff not rendered.
57 changes: 0 additions & 57 deletions tools/assets/delete-w24h24.svg
Diff not rendered.
65 changes: 0 additions & 65 deletions tools/assets/file-w48h48.svg
Diff not rendered.
Loading

0 comments on commit e5bc097

Please sign in to comment.