lets use the same instant medium changer width at images
This commit is contained in:
parent
7abdd059eb
commit
60b3023564
4 changed files with 4 additions and 7 deletions
|
@ -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) {
|
||||
|
|
|
@ -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"/>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue