K
K
Kirill2018-07-21 00:52:00
Android
Kirill, 2018-07-21 00:52:00

How can I set the position of an icon in a tabLayout?

Icons are set on top of the text by default, how can I move the icon to the side?

tabLayout.getTabAt(0).setIcon(R.drawable.ic_content_paste_black_24dp);
tabLayout.getTabAt(1).setIcon(R.drawable.ic_content_paste_black_24dp);
tabLayout.getTabAt(2).setIcon(R.drawable.ic_content_paste_black_24dp);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question