Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- View v = LayoutInflater.from(this).inflate(R.layout.tab_item_horizontal,null);
- tabLayout.getTabAt(0).setCustomView(v);
- TextView text_tab_item = (TextView)v.findViewById(R.id.text_tab_item);
- ImageView img_tabtxt = (ImageView)v.findViewById(R.id.img_tabtxt);
- img_tabtxt.setImageResource(R.drawable.request_tab_white);
- text_tab_item.setText("Members");
- text_tab_item.setTextColor(getResources().getColor(R.color.white_color));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement