mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-06-05 21:49:21 +02:00
add click effect to items
This commit is contained in:
@@ -16,7 +16,7 @@ import com.simplemobiletools.applauncher.extensions.hide
|
|||||||
import com.simplemobiletools.applauncher.extensions.show
|
import com.simplemobiletools.applauncher.extensions.show
|
||||||
import com.simplemobiletools.applauncher.extensions.toast
|
import com.simplemobiletools.applauncher.extensions.toast
|
||||||
import com.simplemobiletools.applauncher.models.AppLauncher
|
import com.simplemobiletools.applauncher.models.AppLauncher
|
||||||
import kotlinx.android.synthetic.main.app_launcher_dialog_item.view.*
|
import kotlinx.android.synthetic.main.app_launcher_item.view.*
|
||||||
import kotlinx.android.synthetic.main.edit_launcher.view.*
|
import kotlinx.android.synthetic.main.edit_launcher.view.*
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@ import com.simplemobiletools.applauncher.R
|
|||||||
import com.simplemobiletools.applauncher.extensions.hide
|
import com.simplemobiletools.applauncher.extensions.hide
|
||||||
import com.simplemobiletools.applauncher.extensions.show
|
import com.simplemobiletools.applauncher.extensions.show
|
||||||
import com.simplemobiletools.applauncher.models.AppLauncher
|
import com.simplemobiletools.applauncher.models.AppLauncher
|
||||||
import kotlinx.android.synthetic.main.app_launcher_dialog_item.view.*
|
import kotlinx.android.synthetic.main.app_launcher_item.view.*
|
||||||
|
|
||||||
class RecyclerDialogAdapter(val cxt: Context, val launchers: List<AppLauncher>) : RecyclerView.Adapter<RecyclerDialogAdapter.ViewHolder>() {
|
class RecyclerDialogAdapter(val cxt: Context, val launchers: List<AppLauncher>) : RecyclerView.Adapter<RecyclerDialogAdapter.ViewHolder>() {
|
||||||
|
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/selectableItemBackground"
|
||||||
android:paddingBottom="@dimen/launcher_padding_small"
|
android:paddingBottom="@dimen/launcher_padding_small"
|
||||||
android:paddingLeft="@dimen/launcher_padding_small"
|
android:paddingLeft="@dimen/launcher_padding_small"
|
||||||
android:paddingRight="@dimen/launcher_padding_small"
|
android:paddingRight="@dimen/launcher_padding_small"
|
||||||
|
Reference in New Issue
Block a user