Привет Я использую пользовательский вид для ActionBar
. В том, что у меня есть followiong проблемы ... пожалуйста, может ли один помочь мнеКак выровнять пользовательские элементы вида
AS поворачивать экран все элементы двигаться к левой стороне, но я хочу, чтобы они выровнять equal.For настраиваемое представление я использую Linear Компоновка ..
Ниже мой код для пользовательского вида ..
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center">
<ImageView
android:id="@+id/imageViewmail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_msg"
android:gravity="center"
android:layout_marginLeft="40sp"
android:contentDescription="@string/app_name"/>
<ImageView
android:id="@+id/imageViewnotification"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_notification1"
android:layout_marginLeft="40sp"
android:contentDescription="@string/app_name"/>
<ImageView
android:id="@+id/imageViewsettings"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_settings"
android:layout_marginLeft="40sp"
android:contentDescription="@string/app_name"/>
<ImageView
android:id="@+id/imageViewsearch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_search"
android:layout_marginLeft="40sp"
android:contentDescription="@string/app_name"/>
Я пробовал свой код, но все еще не происходит .. и помню, что я устанавливаю его на ActionBar – Akshay