Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
72
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. holder.view.timeView.text = "$hourStr:$minuteStr $ampm"
  22. val days:String? = array.days
  23. val daysArr: List<String>? = days?.split(", ")
  24.  
  25.  
  26. val view = holder.view
  27. for (day in daysArr!!)
  28. {
  29. view.findViewById<EditText>(getId(view.context, day)).setTextColor(Color.BLUE)
  30. }
  31.  
  32. fun getId(context: Context, day:String):Int{
  33. return context.resources.getIdentifier(day, "id", context.packageName )
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement