Created
February 6, 2023 10:41
-
-
Save ademirqueiroga/5ce13fd3d45cdfff7ea6d51b115a588d to your computer and use it in GitHub Desktop.
MyListAction.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyListAction(context: Context) : MultiAction(R.id.tv_my_list_action) { | |
init { | |
val drawables = arrayOf( | |
context.getDrawable(R.drawable.playback_controls_my_list_add), | |
context.getDrawable(R.drawable.playback_controls_my_list_remove), | |
) | |
setDrawables(drawables) | |
val labels = arrayOf( | |
context.getString(R.string.playback_controls_my_list_add), | |
context.getString(R.string.playback_controls_my_list_remove), | |
) | |
setLabels(labels) | |
} | |
companion object { | |
const val INDEX_ADD = 0 | |
const val INDEX_REMOVE = 1 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment