add a menu item for toggling filename visibility
This commit is contained in:
parent
4e9dc8e85f
commit
805f726022
14 changed files with 19 additions and 0 deletions
|
@ -150,6 +150,9 @@ public class MediaActivity extends SimpleActivity
|
|||
case R.id.sort:
|
||||
showSortingDialog();
|
||||
return true;
|
||||
case R.id.toggle_filename:
|
||||
toggleFilenameVisibility();
|
||||
return true;
|
||||
case R.id.hide_folder:
|
||||
hideDirectory();
|
||||
return true;
|
||||
|
@ -161,6 +164,10 @@ public class MediaActivity extends SimpleActivity
|
|||
}
|
||||
}
|
||||
|
||||
private void toggleFilenameVisibility() {
|
||||
|
||||
}
|
||||
|
||||
private void rescanDirectory(File dir) {
|
||||
final File[] files = dir.listFiles();
|
||||
final String[] paths = new String[files.length];
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
android:icon="@mipmap/sort"
|
||||
android:title="@string/sort_by"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item
|
||||
android:id="@+id/toggle_filename"
|
||||
android:icon="@mipmap/toggle_filename"
|
||||
android:title="@string/toggle_filename"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item
|
||||
android:id="@+id/hide_folder"
|
||||
android:title="@string/hide_folder"
|
||||
|
|
BIN
app/src/main/res/mipmap-hdpi/toggle_filename.png
Normal file
BIN
app/src/main/res/mipmap-hdpi/toggle_filename.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 283 B |
BIN
app/src/main/res/mipmap-mdpi/toggle_filename.png
Normal file
BIN
app/src/main/res/mipmap-mdpi/toggle_filename.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 206 B |
BIN
app/src/main/res/mipmap-xhdpi/toggle_filename.png
Normal file
BIN
app/src/main/res/mipmap-xhdpi/toggle_filename.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 322 B |
BIN
app/src/main/res/mipmap-xxhdpi/toggle_filename.png
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/toggle_filename.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 516 B |
BIN
app/src/main/res/mipmap-xxxhdpi/toggle_filename.png
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/toggle_filename.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 293 B |
|
@ -105,6 +105,7 @@
|
|||
<string name="same_sorting">Selbe Sortierung für Dateien und Ordner</string>
|
||||
<string name="show_hidden_folders">Zeige versteckte Ordner</string>
|
||||
<string name="autoplay_videos">Play videos automatically</string>
|
||||
<string name="toggle_filename">Toggle filename visibility</string>
|
||||
|
||||
<!-- License -->
|
||||
<string name="notice">Diese App nutzt die folgenden Drittanbieterbilbiotheken, die mein Leben einfacher machen. Danke.</string>
|
||||
|
|
|
@ -105,6 +105,7 @@
|
|||
<string name="same_sorting">Ordenar del mismo modo los archivos y las carpetas</string>
|
||||
<string name="show_hidden_folders">Mostrar carpetas ocultas</string>
|
||||
<string name="autoplay_videos">Reproducir vídeos automáticamente</string>
|
||||
<string name="toggle_filename">Toggle filename visibility</string>
|
||||
|
||||
<!-- License -->
|
||||
<string name="notice">Esta aplicación usa las siguientes bibliotecas de terceros que hacen mi vida más fácil. Gracias.</string>
|
||||
|
|
|
@ -105,6 +105,7 @@
|
|||
<string name="same_sorting">Same sorting for files and folders</string>
|
||||
<string name="show_hidden_folders">Show hidden folders</string>
|
||||
<string name="autoplay_videos">Play videos automatically</string>
|
||||
<string name="toggle_filename">Toggle filename visibility</string>
|
||||
|
||||
<!-- License -->
|
||||
<string name="notice">Questa app usa le seguenti librerie di terze parti per semplificarmi la vita. Grazie.</string>
|
||||
|
|
|
@ -105,6 +105,7 @@
|
|||
<string name="same_sorting">Same sorting for files and folders</string>
|
||||
<string name="show_hidden_folders">Show hidden folders</string>
|
||||
<string name="autoplay_videos">Play videos automatically</string>
|
||||
<string name="toggle_filename">Toggle filename visibility</string>
|
||||
|
||||
<!-- License -->
|
||||
<string name="notice">このアプリは、私の人生を容易にするために、次のサードパーティのライブラリーを使用しています。 ありがとうございます。</string>
|
||||
|
|
|
@ -106,6 +106,7 @@
|
|||
<string name="same_sorting">Mesma ordenação para ficheiros e pastas</string>
|
||||
<string name="show_hidden_folders">Mostrar pastas ocultas</string>
|
||||
<string name="autoplay_videos">Reproduzir vídeos automaticamente</string>
|
||||
<string name="toggle_filename">Toggle filename visibility</string>
|
||||
|
||||
<!-- License -->
|
||||
<string name="notice">Esta aplicação usa as seguintes bibliotecas de terceiros para facilitar a minha vida. Obrigado.</string>
|
||||
|
|
|
@ -105,6 +105,7 @@
|
|||
<string name="same_sorting">Same sorting for files and folders</string>
|
||||
<string name="show_hidden_folders">Show hidden folders</string>
|
||||
<string name="autoplay_videos">Play videos automatically</string>
|
||||
<string name="toggle_filename">Toggle filename visibility</string>
|
||||
|
||||
<!-- License -->
|
||||
<string name="notice">Denna app använder följande tredjepartsbibliotek för att göra mitt liv enklare. Tack.</string>
|
||||
|
|
|
@ -106,6 +106,7 @@
|
|||
<string name="same_sorting">Same sorting for files and folders</string>
|
||||
<string name="show_hidden_folders">Show hidden folders</string>
|
||||
<string name="autoplay_videos">Play videos automatically</string>
|
||||
<string name="toggle_filename">Toggle filename visibility</string>
|
||||
|
||||
<!-- License -->
|
||||
<string name="notice">This app uses the following third party libraries to make my life easier. Thank you.</string>
|
||||
|
|
Loading…
Reference in a new issue