Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void MarkAsIconContainer(View v, Typeface typeface)
- {
- if (v instanceof ViewGroup)
- {
- ViewGroup vg = (ViewGroup) v;
- for (int i = 0; i < vg.getChildCount(); i++)
- {
- View child = vg.getChildAt(i);
- MarkAsIconContainer(child, typeface);
- }
- } else if (v instanceof TextView)
- {
- ((TextView) v).setTypeface(typeface);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement