Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Tabs in bottom of screen

I have been looking for about a day for a way to get my android application have tabs in the bottom of the screen.

On the Android Developer website in the Styles and Themes section, they seem to have the exact example of what I am trying to do, however they did not find it necessary to provide a decent example of this:

enter image description here

All the tips/solutions I find on the web are failing. I always seem to get the following butt-ugly layout where the tabs are very misplaced in the top of the screen next to the application name :-(

enter image description here

Does anyone have a clue how to accomplish this ?

Thank you so much in advance for any tips !

like image 620
Wesley Avatar asked Sep 22 '13 14:09

Wesley


People also ask

How to make Google tabs bottom?

To enable new bottom tab switcher toolbar, tap on the “Default” drop-down box given below “Conditional Tab Strip” preference and select “Enabled Immediate” option from the list. 5. Chrome will ask you to restart the browser. Click on “Relaunch Now” button to relaunch Google Chrome.

How do I keep the button on the bottom of my screen Android?

Make the Parent of the LinearLayout containing the button as relative and set the property of linear layout containing two buttons as android:layout_alignParentBottom="true". You can also set the gravity of the Linear Layout to Bottom. Save this answer.

What is tabs in Android?

Tabs are created using newTab() method of TabLayout class. The title and icon of Tabs are set through setText(int) and setIcon(int) methods of TabListener interface respectively. Tabs of layout are attached over TabLayout using the method addTab(Tab) method.


2 Answers

I think these examples will be useful to you: Android Bottom tab bar example AND THIS

like image 161
NagarjunaReddy Avatar answered Oct 01 '22 02:10

NagarjunaReddy


Here is the two link of github that has implemented tab at bottom.

enter image description here

https://github.com/AdilSoomro/Iphone-Tab-in-Android

enter image description here

https://github.com/AdilSoomro/Raised-Center-Tab-in-Android

like image 20
Md. Monsur Hossain Tonmoy Avatar answered Oct 01 '22 02:10

Md. Monsur Hossain Tonmoy