I\'m trying to create a tab layout which has two tabs. When I run the app on small mobile the tab layout looks fine but when I run the sam
tab layout
tabs
You can create a tab layout where each tab has a custom View and add that tab in the tablayout with whatever size of your choice
View customView = LayoutInflater.from(getContext()).inflate(R.layout.tab_text, null); addTab(newTab().setCustomView(customView))