add an Editor horizontal recyclerview that will hold the filter previews
This commit is contained in:
parent
baec75dc62
commit
85e105819c
|
@ -234,11 +234,11 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
||||||
}
|
}
|
||||||
|
|
||||||
currentPrimaryActionButton?.applyColorFilter(config.primaryColor)
|
currentPrimaryActionButton?.applyColorFilter(config.primaryColor)
|
||||||
if (currPrimaryAction == PRIMARY_ACTION_CROP_ROTATE) {
|
bottom_editor_filter_actions.beVisibleIf(currPrimaryAction == PRIMARY_ACTION_FILTER)
|
||||||
bottom_editor_edit_actions.beVisible()
|
bottom_editor_crop_rotate_actions.beVisibleIf(currPrimaryAction == PRIMARY_ACTION_CROP_ROTATE)
|
||||||
} else {
|
|
||||||
|
if (currPrimaryAction != PRIMARY_ACTION_CROP_ROTATE) {
|
||||||
bottom_aspect_ratios.beGone()
|
bottom_aspect_ratios.beGone()
|
||||||
bottom_editor_edit_actions.beGone()
|
|
||||||
currCropRotateAction = CROP_ROTATE_NONE
|
currCropRotateAction = CROP_ROTATE_NONE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,11 +19,19 @@
|
||||||
layout="@layout/bottom_actions_aspect_ratio"
|
layout="@layout/bottom_actions_aspect_ratio"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_above="@+id/bottom_editor_edit_actions"
|
android:layout_above="@+id/bottom_editor_crop_rotate_actions"
|
||||||
android:visibility="gone"/>
|
android:visibility="gone"/>
|
||||||
|
|
||||||
<include
|
<include
|
||||||
android:id="@+id/bottom_editor_edit_actions"
|
android:id="@+id/bottom_editor_filter_actions"
|
||||||
|
layout="@layout/bottom_editor_actions_filter"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_above="@+id/bottom_editor_primary_actions"
|
||||||
|
android:visibility="gone"/>
|
||||||
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/bottom_editor_crop_rotate_actions"
|
||||||
layout="@layout/bottom_editor_crop_rotate_actions"
|
layout="@layout/bottom_editor_crop_rotate_actions"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<RelativeLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:id="@+id/bottom_actions_filter_wrapper"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/bottom_actions_height"
|
||||||
|
android:paddingTop="@dimen/medium_margin">
|
||||||
|
|
||||||
|
<com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
|
android:id="@+id/bottom_actions_filter_list"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/bottom_actions_height"
|
||||||
|
android:orientation="horizontal"/>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
Loading…
Reference in New Issue