Я хочу сделать макет игры матча в Android.У меня проблема с тем, чтобы сделать мой макет совместимым со всеми разрешениями экрана.То, что я хочу, это значок изображения команды хозяев слева, растягиваемое имя изображения команды хозяев, текст оценки команды хозяев, разделитель, текст оценки команды гостей, название изображения команды, которую можно растянуть, значок изображения команды гостей направо.Счет должен быть посередине.Я просто не могу понять это правильно.перед этой попыткой я попытался разделить основной макет на 3 макета: макет домашней команды, макет счета и компоновка на выезде - безуспешно, чтобы получить ожидаемый результат.
Кто-нибудь может помочь?
Вот мой кусок кода:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@color/GamesBGColor" >
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:orientation="horizontal" >
<ImageView
android:id="@+id/homeTeamIcon"
android:layout_width="50dip"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/holonlogo" />
<ImageView
android:id="@+id/homeTeamText"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/holontext"
android:layout_width="115dip"
android:layout_marginLeft="3dip" />
<TextView
android:id="@+id/homeTeamScore"
android:layout_width="25dip"
android:layout_height="wrap_content"
android:text="123"
android:textColor = "@color/purple"
android:layout_gravity="center"
android:textStyle="bold"
android:layout_marginLeft="5dip" />
<TextView
android:id="@+id/seperator"
android:layout_width="10dip"
android:layout_height="wrap_content"
android:text="-"
android:layout_gravity="center"
android:layout_marginLeft="7dip" />
<TextView
android:id="@+id/awayTeamScore"
android:layout_width="25dip"
android:layout_height="wrap_content"
android:text="122"
android:textColor = "@color/red"
android:layout_gravity="center"
android:textStyle="bold"
android:layout_marginLeft="7dip" />
<ImageView
android:id="@+id/awayTeamText"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/jerusalemtext"
android:layout_width="115dip"
android:layout_marginLeft="3dip"/>
<ImageView
android:id="@+id/awayTeamIcon"
android:layout_width="50dip"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/jerusalemlogo" />
</LinearLayout>
</LinearLayout>