Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public static void MarkAsIconContainer(View v, Typeface typeface)
  2. {
  3. if (v instanceof ViewGroup)
  4. {
  5. ViewGroup vg = (ViewGroup) v;
  6. for (int i = 0; i < vg.getChildCount(); i++)
  7. {
  8. View child = vg.getChildAt(i);
  9. MarkAsIconContainer(child, typeface);
  10. }
  11. } else if (v instanceof TextView)
  12. {
  13. ((TextView) v).setTypeface(typeface);
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement