Это мой .xml-файл, и я просто хочу установить все изображения в горизонтальном порядке в на каждом экране ... Я пробовал, но это не происходит .. помочь мне для этогоЯ хочу установить нижний колонтитул с меню, и я хочу установить значки поровну по экрану
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="center"
tools:context="com.example.sachin.attendence.MainActivity">
во-первых я установить относительное расположение и все ImageView в меню
<ImageView
android:id="@+id/imageViewFooter2"
android:layout_width="60dp"
android:layout_weight="1"
android:layout_height="60dp"
android:layout_marginLeft="100dp"
android:background="@drawable/ic_launcher"
android:layout_alignParentBottom="true"
/>
<ImageView
android:id="@+id/imageViewFooter3"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_weight="1"
android:background="@drawable/att"
android:layout_marginLeft="150dp"
android:layout_alignParentBottom="true"
/>
<ImageView
android:id="@+id/imageViewFooter4"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_weight="1"
android:scaleType="fitXY"
android:layout_marginLeft="250dp"
android:background="@drawable/omlogo"
android:layout_alignParentBottom="true"
/>
<View
android:layout_width="match_parent"
android:layout_height="01dp"
android:background="#cec5ce"
android:layout_above="@id/imageViewFooter3"
android:id="@+id/view">
</View>
</RelativeLayout>
это был мой файл .xml
Только весовые коэффициенты работа в ** LinearLayouts **. Или вы можете использовать ** PercentRelativeLayouts **, вместо этого (это RelativeLayouts, но могут использовать проценты). –