Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02561340 authored by tibbi's avatar tibbi
Browse files

add some visual effects to pressing selected items counter at recycler views

parent d6a06c81
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ buildscript {
        propMinSdkVersion = 21
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '5.4.3'
        propVersionName = '5.4.7'
        kotlin_version = '1.3.10'
    }

+2 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.appcompat.app.ActionBar
import androidx.appcompat.view.ActionMode
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.RecyclerView
@@ -61,6 +62,7 @@ abstract class MyRecyclerViewAdapter(val activity: BaseSimpleActivity, val recyc
                isSelectable = true
                actMode = actionMode
                actBarTextView = layoutInflater.inflate(R.layout.actionbar_title, null) as TextView
                actBarTextView!!.layoutParams = ActionBar.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.MATCH_PARENT)
                actMode!!.customView = actBarTextView
                actBarTextView!!.setOnClickListener {
                    if (getSelectableItemCount() == selectedKeys.size) {
+2 −0
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@
    android:id="@+id/actionbar_title"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="?attr/selectableItemBackground"
    android:gravity="center_vertical|start"
    android:paddingRight="@dimen/activity_margin"
    android:textColor="@android:color/white"
    android:textSize="@dimen/actionbar_text_size"/>