Skip to content

Commit

Permalink
Merge pull request #145 from TeamAmaze/feature
Browse files Browse the repository at this point in the history
Add animation in analysis and files fragment; update translations
  • Loading branch information
VishalNehra authored Dec 12, 2023
2 parents 5a20145 + 67bdf01 commit 0bd5727
Show file tree
Hide file tree
Showing 36 changed files with 270 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import android.provider.Settings
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import androidx.annotation.RequiresApi
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.ViewModelProvider
Expand Down Expand Up @@ -659,6 +661,10 @@ class AnalyseFragment : AbstractMediaFileInfoOperationsFragment() {
analyseViewModel.fragmentScrollPosition = null
}, 1000)
}
val slideUpAnimation: Animation =
AnimationUtils.loadAnimation(requireContext(), R.anim.slide_up_fade_in)
binding.analysisParent.startAnimation(slideUpAnimation)
binding.analysisParent.visibility = View.VISIBLE
}
return root
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import androidx.core.graphics.ColorUtils
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
Expand Down Expand Up @@ -368,6 +370,10 @@ class FilesFragment : ItemsActionBarFragment() {
}

binding.storagePercent.setAdaptiveColorProvider(colorProvider)
val slideUpAnimation: Animation =
AnimationUtils.loadAnimation(requireContext(), R.anim.slide_up_fade_in)
binding.listFragmentParent.startAnimation(slideUpAnimation)
binding.listFragmentParent.visibility = View.VISIBLE
return root
}

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/fragment_analyse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
app:layout_constraintTop_toTopOf="parent"
>
<LinearLayout
android:id="@+id/analysis_parent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/eight_dp"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/fragment_files.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
app:layout_constraintStart_toStartOf="parent"
>
<LinearLayout
android:id="@+id/list_fragment_parent"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".home_page.ui.files.FilesFragment"
Expand Down
8 changes: 8 additions & 0 deletions app/src/main/res/values-af-rZA/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-ar-rSA/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-ca-rES/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-cs-rCZ/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-da-rDK/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-de-rDE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@ Wir sind ein Team von Open-Source-Entwicklern, die hart daran arbeiten, ein werb
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-el-rGR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-en-rUS/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-es-rES/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1018,4 +1018,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-fi-rFI/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-fr-rFR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-hi-rIN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-hu-rHU/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-it-rIT/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-iw-rIL/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1015,4 +1015,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-ja-rJP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-ko-rKR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-ml-rIN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-nl-rNL/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-no-rNO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-pl-rPL/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-pt-rPT/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -974,4 +974,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-ro-rRO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-ru-rRU/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1016,4 +1016,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-sr-rSP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,12 @@
<string name="analysis_compress_images">Compress Images</string>
<!-- Analysis compress videos -->
<string name="analysis_compress_videos">Compress Videos</string>
<!-- list fragments banner options hint -->
<string name="index">Index</string>
<!-- list fragments banner options hint -->
<string name="layout">Layout</string>
<!-- list fragments banner options hint -->
<string name="group_by">Group By</string>
<!-- list fragments banner options hint -->
<string name="sort_by">Sort By</string>
</resources>
Loading

0 comments on commit 0bd5727

Please sign in to comment.