At the bottom of the screen, the menu bar / toolbar in android

enter image description here

Does anyone know how to do this?

+4
source share
2 answers

Use LinearLayout with alignParentBottom = "true"

Something like that:

<RelativeLayout android:id="@+id/mainLyt" android:layout_width="fill_parent" android:layout_height="fill_parent"> <!-- Some layout things --> <ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_above="@+id/bottomBar"> <!-- some scrolling content --> </ScrollView> <LinearLayout android:id="@+id/bottomBar" android:layout_height="wrap_content" android:layout_width="fill_parent" android:orientation="horizontal" android:layout_alignParentBottom="true"> <!-- Some Buttons --> </LinearLayout> </RelativeLayout> 

I did not try to compile, you may have to correct some typos, but this is the main idea with which you can achieve what you are trying to do.

+5
source

use the following lines after onCreat.

  super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.home_screen); 
-1
source

All Articles