Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 11
- 22
- 33
- 44
- 55
- 55
- 22
- 33
- 44
- 55
- 44
- 55
- 33
- 44
- 55
- context.resources.getIdentifier
- holder.view.timeView.text = "$hourStr:$minuteStr $ampm"
- val days:String? = array.days
- val daysArr: List<String>? = days?.split(", ")
- val view = holder.view
- for (day in daysArr!!)
- {
- view.findViewById<EditText>(getId(view.context, day)).setTextColor(Color.BLUE)
- }
- fun getId(context: Context, day:String):Int{
- return context.resources.getIdentifier(day, "id", context.packageName )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement