lets use the same instant medium changer width at images

This commit is contained in:
tibbi 2020-02-17 20:37:40 +01:00
parent 7abdd059eb
commit 60b3023564
4 changed files with 4 additions and 7 deletions

View File

@ -767,9 +767,8 @@ class PhotoFragment : ViewPagerFragment() {
}
private fun updateInstantSwitchWidths() {
val newWidth = resources.getDimension(R.dimen.instant_change_bar_width) + if (activity?.portrait == false) activity!!.navigationBarWidth else 0
mView.instant_prev_item.layoutParams.width = newWidth.toInt()
mView.instant_next_item.layoutParams.width = newWidth.toInt()
mView.instant_prev_item.layoutParams.width = mScreenWidth / 7
mView.instant_next_item.layoutParams.width = mScreenWidth / 7
}
override fun fullscreenToggled(isFullscreen: Boolean) {

View File

@ -98,12 +98,12 @@
<com.simplemobiletools.gallery.pro.views.InstantItemSwitch
android:id="@+id/instant_prev_item"
android:layout_width="@dimen/instant_change_bar_width"
android:layout_width="1dp"
android:layout_height="match_parent"/>
<com.simplemobiletools.gallery.pro.views.InstantItemSwitch
android:id="@+id/instant_next_item"
android:layout_width="@dimen/instant_change_bar_width"
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"/>

View File

@ -5,6 +5,5 @@
<dimen name="sd_card_icon_size">30dp</dimen>
<dimen name="selection_check_size">38dp</dimen>
<dimen name="tmb_shadow_height">70dp</dimen>
<dimen name="instant_change_bar_width">100dp</dimen>
<dimen name="lock_padding">80dp</dimen>
</resources>

View File

@ -9,7 +9,6 @@
<dimen name="tmb_shadow_height">70dp</dimen>
<dimen name="media_side_slider_width">60dp</dimen>
<dimen name="video_player_play_pause_size">60dp</dimen>
<dimen name="instant_change_bar_width">50dp</dimen>
<dimen name="list_view_folder_thumbnail_size">72dp</dimen>
<dimen name="bottom_actions_height">64dp</dimen>
<dimen name="bottom_actions_height_double">128dp</dimen>