Loading build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '5.4.3' propVersionName = '5.4.7' kotlin_version = '1.3.10' } Loading commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewAdapter.kt +2 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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) { Loading commons/src/main/res/layout/actionbar_title.xml +2 −0 Original line number Diff line number Diff line Loading @@ -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"/> Loading
build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '5.4.3' propVersionName = '5.4.7' kotlin_version = '1.3.10' } Loading
commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewAdapter.kt +2 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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) { Loading
commons/src/main/res/layout/actionbar_title.xml +2 −0 Original line number Diff line number Diff line Loading @@ -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"/>