Комментарии:
I realized that the standard font size is incompatible with specific phones (like mine). To change the font size of the tabs, I have figured that we can use the following:
-
case 0:
SpannableString Chats = new SpannableString("Chats");
Chats.setSpan(new AbsoluteSizeSpan(11, true), 0, 5, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
return Chats;
case 1:
SpannableString Groups = new SpannableString("Groups");
Groups.setSpan(new AbsoluteSizeSpan(11, true), 0, 6, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
return Groups;
case 2:
SpannableString Contacts = new SpannableString("Contacts");
Contacts.setSpan(new AbsoluteSizeSpan(11, true), 0, 8, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
return Contacts;
case 3:
SpannableString Requests = new SpannableString("Requests");
Requests.setSpan(new AbsoluteSizeSpan(11, true), 0, 8, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
return Requests;
-
P.S. Sincerely hope that everyone benefits from this.
thank you , you make my day everyday
ОтветитьSir i want documentation.
ОтветитьWhats the point of watching his tutorial when he dosent help when there is error or problem
Ответитьdear my .RequestsFragment RED! help me please
ОтветитьCan you accept the follow on Instagram?
ОтветитьContinue the Group Chat Activity haha as soon as possible thanks Sir :) Your so great
Ответитьplz can you give us code sours
ОтветитьSir please continue social network app..iam waiting.. Sir please..
Ответить