Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. 11
  2. 22
  3. 33
  4. 44
  5. 55
  6.  
  7. 55
  8. 22
  9. 33
  10. 44
  11. 55
  12.  
  13. 44
  14. 55
  15. 33
  16. 44
  17. 55
  18.  
  19. context.resources.getIdentifier
  20.  
  21. val view = holder.view
  22. view.timeView.text = "$hourStr:$minuteStr $ampm"
  23. val days:String? = array.days
  24. val daysArr: List<String>? = days?.split(", ")
  25.  
  26.  
  27.  
  28. for (day in daysArr!!)
  29. {
  30. view.findViewById<EditText>(getId(view.context, day)).setTextColor(Color.BLUE)
  31. }
  32.  
  33. fun getId(context: Context, day:String):Int{
  34. return context.resources.getIdentifier(day, "id", context.packageName )
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement