For my actionBar, I want to create a layout as shown here:
Here are 2 activations for which I want to make one menu.
Those. it should have a back button, a caption in the middle and a reload button
Actually here is an unfinished layout:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/custom_menu" android:layout_width="wrap_content" android:layout_height="wrap_content" android:color="#808080" android:orientation="horizontal" > <!-- текст по середине--> <TextView android:id="@+id/action_bar_title" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Type here:"> </TextView> <item android:id="@+id/reload_button" android:color="#ffffff" android:background="@drawable/custom_item" android:icon="@android:drawable/ic_menu_rotate"> </item>
I have a few questions:
1) Do I still need to specify the "back" button here or can it be connected via code? If necessary, where to get the icon itself? Is it in drawable?
2) Am I doing everything right here? 3) It would be nice to see examples somewhere on the net, how people make their layout under actionBar
4) Is it possible to somehow move the actionBar title in the middle? Assign him the thickness?