From 8ff6c8d1f74c63acf1ac09b8ccdc4eae2916b3f7 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 4 Aug 2017 20:36:29 +0200 Subject: [PATCH] adding a slideshow menu button --- app/build.gradle | 2 +- .../gallery/activities/ViewPagerActivity.kt | 5 +++++ app/src/main/res/menu/menu_viewpager.xml | 4 ++++ app/src/main/res/values-cs/strings.xml | 7 +++++++ app/src/main/res/values-de/strings.xml | 7 +++++++ app/src/main/res/values-es/strings.xml | 7 +++++++ app/src/main/res/values-fr/strings.xml | 7 +++++++ app/src/main/res/values-hu/strings.xml | 7 +++++++ app/src/main/res/values-it/strings.xml | 7 +++++++ app/src/main/res/values-ja/strings.xml | 7 +++++++ app/src/main/res/values-pl/strings.xml | 7 +++++++ app/src/main/res/values-pt-rBR/strings.xml | 13 +++++++++++-- app/src/main/res/values-pt/strings.xml | 7 +++++++ app/src/main/res/values-ru/strings.xml | 7 +++++++ app/src/main/res/values-sk/strings.xml | 7 +++++++ app/src/main/res/values-sv/strings.xml | 7 +++++++ app/src/main/res/values-tr/strings.xml | 7 +++++++ app/src/main/res/values-zh-rCN/strings.xml | 7 +++++++ app/src/main/res/values-zh-rTW/strings.xml | 7 +++++++ app/src/main/res/values/strings.xml | 7 +++++++ 20 files changed, 133 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 24aabd87a..161d4d82b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -37,7 +37,7 @@ android { } 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.theartofdev.edmodo:android-image-cropper:2.4.0' compile 'com.bignerdranch.android:recyclerview-multiselect:0.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index 3c46cbb1b..d8c9cd241 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -213,6 +213,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View when (item.itemId) { R.id.menu_set_as -> trySetAs(getCurrentFile()) + R.id.slideshow -> initSlideshow() R.id.menu_copy_to -> copyMoveTo(true) R.id.menu_move_to -> copyMoveTo(false) 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) { val files = ArrayList(1).apply { add(getCurrentFile()) } tryCopyMoveFilesTo(files, isCopyOperation) { diff --git a/app/src/main/res/menu/menu_viewpager.xml b/app/src/main/res/menu/menu_viewpager.xml index 2ab54089e..192458087 100644 --- a/app/src/main/res/menu/menu_viewpager.xml +++ b/app/src/main/res/menu/menu_viewpager.xml @@ -28,6 +28,10 @@ android:title="@string/share" android:visible="false" app:showAsAction="ifRoom"/> + Portrait aspect ratio Landscape aspect ratio + + Slideshow + Interval + Include videos + Random order + Use fade animations + Zobrazit skryté média Automaticky přehrávat videa diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 4d5170f31..7fc9f8aae 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -79,6 +79,13 @@ Hochformat Querformat + + Slideshow + Interval + Include videos + Random order + Use fade animations + Versteckte Ordner zeigen Videos automatisch abspielen diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 1f217721d..686bf180c 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -79,6 +79,13 @@ Relación de aspecto tipo retrato Relación de aspecto tipo paisaje + + Slideshow + Interval + Include videos + Random order + Use fade animations + Mostrar carpetas ocultas Reproducir vídeos automáticamente diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 9a258b186..edf38033b 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -79,6 +79,13 @@ Ratio aspect Portrait Ratio aspect Paysage + + Slideshow + Interval + Include videos + Random order + Use fade animations + Afficher les dossiers cachés Lecture automatique des vidéos diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index ade73ca6b..a4a9b8135 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -79,6 +79,13 @@ Portrait aspect ratio Landscape aspect ratio + + Slideshow + Interval + Include videos + Random order + Use fade animations + Show hidden media Play videos automatically diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 7d4e09e4c..756b14eb4 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -79,6 +79,13 @@ Proporzioni ritratto Proporzioni panorama + + Slideshow + Interval + Include videos + Random order + Use fade animations + Mostra cartelle nascoste Riproduci video automaticamente diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 62f2d3e45..1db0cc43d 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -79,6 +79,13 @@ Portrait aspect ratio Landscape aspect ratio + + Slideshow + Interval + Include videos + Random order + Use fade animations + 非表示フォルダーを表示 自動的にビデオを再生 diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index 935ca5a09..eff70d5e4 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -79,6 +79,13 @@ Proporcje ekranu w trybie pionowym Proporcje ekranu w trybie poziomym + + Slideshow + Interval + Include videos + Random order + Use fade animations + Pokazuj ukryte foldery Odtwarzaj filmy automatycznie diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 6d81a2352..21f64ac03 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -6,7 +6,8 @@ Abrir câmera Abrir com Nenhum aplicativo encontrado -    (oculto) +     + (oculto) Fixar pasta Desfixar pasta Mostrar conteúdo de todas as pastas @@ -79,6 +80,13 @@ Retrato Paisagem + + Slideshow + Interval + Include videos + Random order + Use fade animations + Mostrar pastas ocultas Reproduzir vídeos automaticamente @@ -91,7 +99,8 @@ Imagens e vídeos Reproduzir vídeos em ciclo Animação de GIFs nas miniaturas -    Brilho máximo ao visualizar mídia +     + Brilho máximo ao visualizar mídia Recortar miniaturas em quadrados Critério para rotação de tela Padrão do sistema diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index 5eaad8dbb..3352875be 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -79,6 +79,13 @@ Proporção na vertical Proporção na horizontal + + Slideshow + Interval + Include videos + Random order + Use fade animations + Mostrar pastas ocultas Reproduzir vídeos automaticamente diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 7d203a46b..85c64a684 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -79,6 +79,13 @@ Формат изображения Пейзажное соотношение сторон + + Slideshow + Interval + Include videos + Random order + Use fade animations + Показать скрытые папки Воспроизводить видео автоматически diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml index 5c5f176f9..f9bd2312a 100644 --- a/app/src/main/res/values-sk/strings.xml +++ b/app/src/main/res/values-sk/strings.xml @@ -79,6 +79,13 @@ Orientácia nastojato Orientácia naležato + + Prezentácia + Interval + Zahrnúť videá + Náhodné poradie + Používať miznúce animácie + Zobraziť skryté médiá Spúšťať videá automaticky diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 31351e0cc..540589920 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -79,6 +79,13 @@ Stående bildförhållande Liggande bildförhållande + + Slideshow + Interval + Include videos + Random order + Use fade animations + Visa dolda mappar Spela upp videos automatiskt diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index b7bcb2b25..19408787d 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -79,6 +79,13 @@ Portrait aspect ratio Landscape aspect ratio + + Slideshow + Interval + Include videos + Random order + Use fade animations + Gizli klasörleri göster Videoları otomatik olarak oynat diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index a29dde1b9..bf147404b 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -79,6 +79,13 @@ 纵向长宽比 横向长宽比 + + Slideshow + Interval + Include videos + Random order + Use fade animations + 显示所有 自动播放 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 26e559daa..b0403528b 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -79,6 +79,13 @@ Portrait aspect ratio Landscape aspect ratio + + Slideshow + Interval + Include videos + Random order + Use fade animations + 秀出隱藏資料夾 自動播放影片 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2e5a52af4..7bd64fd1b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -79,6 +79,13 @@ Portrait aspect ratio Landscape aspect ratio + + Slideshow + Interval + Include videos + Random order + Use fade animations + Show hidden media Play videos automatically