adding a slideshow menu button

This commit is contained in:
tibbi 2017-08-04 20:36:29 +02:00
parent 1234d40316
commit 8ff6c8d1f7
20 changed files with 133 additions and 3 deletions

View File

@ -37,7 +37,7 @@ android {
} }
dependencies { dependencies {
compile 'com.simplemobiletools:commons:2.23.8' compile 'com.simplemobiletools:commons:2.24.0'
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.6.0' compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.6.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.4.0' compile 'com.theartofdev.edmodo:android-image-cropper:2.4.0'
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2' compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'

View File

@ -213,6 +213,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
when (item.itemId) { when (item.itemId) {
R.id.menu_set_as -> trySetAs(getCurrentFile()) R.id.menu_set_as -> trySetAs(getCurrentFile())
R.id.slideshow -> initSlideshow()
R.id.menu_copy_to -> copyMoveTo(true) R.id.menu_copy_to -> copyMoveTo(true)
R.id.menu_move_to -> copyMoveTo(false) R.id.menu_move_to -> copyMoveTo(false)
R.id.menu_open_with -> openWith(getCurrentFile()) R.id.menu_open_with -> openWith(getCurrentFile())
@ -245,6 +246,10 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
} }
} }
private fun initSlideshow() {
}
private fun copyMoveTo(isCopyOperation: Boolean) { private fun copyMoveTo(isCopyOperation: Boolean) {
val files = ArrayList<File>(1).apply { add(getCurrentFile()) } val files = ArrayList<File>(1).apply { add(getCurrentFile()) }
tryCopyMoveFilesTo(files, isCopyOperation) { tryCopyMoveFilesTo(files, isCopyOperation) {

View File

@ -28,6 +28,10 @@
android:title="@string/share" android:title="@string/share"
android:visible="false" android:visible="false"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item
android:id="@+id/slideshow"
android:title="@string/slideshow"
app:showAsAction="never"/>
<item <item
android:id="@+id/menu_copy_to" android:id="@+id/menu_copy_to"
android:title="@string/copy_to" android:title="@string/copy_to"

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Portrait aspect ratio</string> <string name="portrait_aspect_ratio">Portrait aspect ratio</string>
<string name="landscape_aspect_ratio">Landscape aspect ratio</string> <string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Zobrazit skryté média</string> <string name="show_hidden_media">Zobrazit skryté média</string>
<string name="autoplay_videos">Automaticky přehrávat videa</string> <string name="autoplay_videos">Automaticky přehrávat videa</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Hochformat</string> <string name="portrait_aspect_ratio">Hochformat</string>
<string name="landscape_aspect_ratio">Querformat</string> <string name="landscape_aspect_ratio">Querformat</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Versteckte Ordner zeigen</string> <string name="show_hidden_media">Versteckte Ordner zeigen</string>
<string name="autoplay_videos">Videos automatisch abspielen</string> <string name="autoplay_videos">Videos automatisch abspielen</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Relación de aspecto tipo retrato</string> <string name="portrait_aspect_ratio">Relación de aspecto tipo retrato</string>
<string name="landscape_aspect_ratio">Relación de aspecto tipo paisaje</string> <string name="landscape_aspect_ratio">Relación de aspecto tipo paisaje</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Mostrar carpetas ocultas</string> <string name="show_hidden_media">Mostrar carpetas ocultas</string>
<string name="autoplay_videos">Reproducir vídeos automáticamente</string> <string name="autoplay_videos">Reproducir vídeos automáticamente</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Ratio aspect Portrait</string> <string name="portrait_aspect_ratio">Ratio aspect Portrait</string>
<string name="landscape_aspect_ratio">Ratio aspect Paysage</string> <string name="landscape_aspect_ratio">Ratio aspect Paysage</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Afficher les dossiers cachés</string> <string name="show_hidden_media">Afficher les dossiers cachés</string>
<string name="autoplay_videos">Lecture automatique des vidéos</string> <string name="autoplay_videos">Lecture automatique des vidéos</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Portrait aspect ratio</string> <string name="portrait_aspect_ratio">Portrait aspect ratio</string>
<string name="landscape_aspect_ratio">Landscape aspect ratio</string> <string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Show hidden media</string> <string name="show_hidden_media">Show hidden media</string>
<string name="autoplay_videos">Play videos automatically</string> <string name="autoplay_videos">Play videos automatically</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Proporzioni ritratto</string> <string name="portrait_aspect_ratio">Proporzioni ritratto</string>
<string name="landscape_aspect_ratio">Proporzioni panorama</string> <string name="landscape_aspect_ratio">Proporzioni panorama</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Mostra cartelle nascoste</string> <string name="show_hidden_media">Mostra cartelle nascoste</string>
<string name="autoplay_videos">Riproduci video automaticamente</string> <string name="autoplay_videos">Riproduci video automaticamente</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Portrait aspect ratio</string> <string name="portrait_aspect_ratio">Portrait aspect ratio</string>
<string name="landscape_aspect_ratio">Landscape aspect ratio</string> <string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">非表示フォルダーを表示</string> <string name="show_hidden_media">非表示フォルダーを表示</string>
<string name="autoplay_videos">自動的にビデオを再生</string> <string name="autoplay_videos">自動的にビデオを再生</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Proporcje ekranu w trybie pionowym</string> <string name="portrait_aspect_ratio">Proporcje ekranu w trybie pionowym</string>
<string name="landscape_aspect_ratio">Proporcje ekranu w trybie poziomym</string> <string name="landscape_aspect_ratio">Proporcje ekranu w trybie poziomym</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Pokazuj ukryte foldery</string> <string name="show_hidden_media">Pokazuj ukryte foldery</string>
<string name="autoplay_videos">Odtwarzaj filmy automatycznie</string> <string name="autoplay_videos">Odtwarzaj filmy automatycznie</string>

View File

@ -6,7 +6,8 @@
<string name="open_camera">Abrir câmera</string> <string name="open_camera">Abrir câmera</string>
<string name="open_with">Abrir com</string> <string name="open_with">Abrir com</string>
<string name="no_app_found">Nenhum aplicativo encontrado</string> <string name="no_app_found">Nenhum aplicativo encontrado</string>
   <string name="hidden">(oculto)</string>    
<string name="hidden">(oculto)</string>
<string name="pin_folder">Fixar pasta</string> <string name="pin_folder">Fixar pasta</string>
<string name="unpin_folder">Desfixar pasta</string> <string name="unpin_folder">Desfixar pasta</string>
<string name="show_all">Mostrar conteúdo de todas as pastas</string> <string name="show_all">Mostrar conteúdo de todas as pastas</string>
@ -79,6 +80,13 @@
<string name="portrait_aspect_ratio">Retrato</string> <string name="portrait_aspect_ratio">Retrato</string>
<string name="landscape_aspect_ratio">Paisagem</string> <string name="landscape_aspect_ratio">Paisagem</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Mostrar pastas ocultas</string> <string name="show_hidden_media">Mostrar pastas ocultas</string>
<string name="autoplay_videos">Reproduzir vídeos automaticamente</string> <string name="autoplay_videos">Reproduzir vídeos automaticamente</string>
@ -91,7 +99,8 @@
<string name="images_and_videos">Imagens e vídeos</string> <string name="images_and_videos">Imagens e vídeos</string>
<string name="loop_videos">Reproduzir vídeos em ciclo</string> <string name="loop_videos">Reproduzir vídeos em ciclo</string>
<string name="animate_gifs">Animação de GIFs nas miniaturas</string> <string name="animate_gifs">Animação de GIFs nas miniaturas</string>
   <string name="max_brightness">Brilho máximo ao visualizar mídia</string>    
<string name="max_brightness">Brilho máximo ao visualizar mídia</string>
<string name="crop_thumbnails">Recortar miniaturas em quadrados</string> <string name="crop_thumbnails">Recortar miniaturas em quadrados</string>
<string name="screen_rotation_by">Critério para rotação de tela</string> <string name="screen_rotation_by">Critério para rotação de tela</string>
<string name="screen_rotation_system_setting">Padrão do sistema</string> <string name="screen_rotation_system_setting">Padrão do sistema</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Proporção na vertical</string> <string name="portrait_aspect_ratio">Proporção na vertical</string>
<string name="landscape_aspect_ratio">Proporção na horizontal</string> <string name="landscape_aspect_ratio">Proporção na horizontal</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Mostrar pastas ocultas</string> <string name="show_hidden_media">Mostrar pastas ocultas</string>
<string name="autoplay_videos">Reproduzir vídeos automaticamente</string> <string name="autoplay_videos">Reproduzir vídeos automaticamente</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Формат изображения</string> <string name="portrait_aspect_ratio">Формат изображения</string>
<string name="landscape_aspect_ratio">Пейзажное соотношение сторон</string> <string name="landscape_aspect_ratio">Пейзажное соотношение сторон</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Показать скрытые папки</string> <string name="show_hidden_media">Показать скрытые папки</string>
<string name="autoplay_videos">Воспроизводить видео автоматически</string> <string name="autoplay_videos">Воспроизводить видео автоматически</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Orientácia nastojato</string> <string name="portrait_aspect_ratio">Orientácia nastojato</string>
<string name="landscape_aspect_ratio">Orientácia naležato</string> <string name="landscape_aspect_ratio">Orientácia naležato</string>
<!-- Slideshow -->
<string name="slideshow">Prezentácia</string>
<string name="interval">Interval</string>
<string name="include_videos">Zahrnúť videá</string>
<string name="random_order">Náhodné poradie</string>
<string name="use_fade">Používať miznúce animácie</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Zobraziť skryté médiá</string> <string name="show_hidden_media">Zobraziť skryté médiá</string>
<string name="autoplay_videos">Spúšťať videá automaticky</string> <string name="autoplay_videos">Spúšťať videá automaticky</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Stående bildförhållande</string> <string name="portrait_aspect_ratio">Stående bildförhållande</string>
<string name="landscape_aspect_ratio">Liggande bildförhållande</string> <string name="landscape_aspect_ratio">Liggande bildförhållande</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Visa dolda mappar</string> <string name="show_hidden_media">Visa dolda mappar</string>
<string name="autoplay_videos">Spela upp videos automatiskt</string> <string name="autoplay_videos">Spela upp videos automatiskt</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Portrait aspect ratio</string> <string name="portrait_aspect_ratio">Portrait aspect ratio</string>
<string name="landscape_aspect_ratio">Landscape aspect ratio</string> <string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Gizli klasörleri göster</string> <string name="show_hidden_media">Gizli klasörleri göster</string>
<string name="autoplay_videos">Videoları otomatik olarak oynat</string> <string name="autoplay_videos">Videoları otomatik olarak oynat</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">纵向长宽比</string> <string name="portrait_aspect_ratio">纵向长宽比</string>
<string name="landscape_aspect_ratio">横向长宽比</string> <string name="landscape_aspect_ratio">横向长宽比</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">显示所有</string> <string name="show_hidden_media">显示所有</string>
<string name="autoplay_videos">自动播放</string> <string name="autoplay_videos">自动播放</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Portrait aspect ratio</string> <string name="portrait_aspect_ratio">Portrait aspect ratio</string>
<string name="landscape_aspect_ratio">Landscape aspect ratio</string> <string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">秀出隱藏資料夾</string> <string name="show_hidden_media">秀出隱藏資料夾</string>
<string name="autoplay_videos">自動播放影片</string> <string name="autoplay_videos">自動播放影片</string>

View File

@ -79,6 +79,13 @@
<string name="portrait_aspect_ratio">Portrait aspect ratio</string> <string name="portrait_aspect_ratio">Portrait aspect ratio</string>
<string name="landscape_aspect_ratio">Landscape aspect ratio</string> <string name="landscape_aspect_ratio">Landscape aspect ratio</string>
<!-- Slideshow -->
<string name="slideshow">Slideshow</string>
<string name="interval">Interval</string>
<string name="include_videos">Include videos</string>
<string name="random_order">Random order</string>
<string name="use_fade">Use fade animations</string>
<!-- Settings --> <!-- Settings -->
<string name="show_hidden_media">Show hidden media</string> <string name="show_hidden_media">Show hidden media</string>
<string name="autoplay_videos">Play videos automatically</string> <string name="autoplay_videos">Play videos automatically</string>