Форматирование Android между версиями ОС - PullRequest
0 голосов
/ 19 января 2012

На нашем предприятии есть смесь планшетов для работы с тем же приложением, которое мы создали внутри.Некоторые на Gingerbread, другие на Honeycomb.Я заметил, что одно и то же приложение выглядит очень по-разному между ними.А именно, на Gingerbread все намного больше, чем на Honeycomb.Есть ли какой-нибудь способ отформатировать действие, чтобы оно выглядело одинаково в зависимости от ОС?Ниже приведен образец одного из моих axml.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ImageView
android:id="@+id/logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dip"
android:layout_margin="5dip"
android:background="@drawable/CPLogo"/>
<TextView
android:id="@+id/storeLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/logo"
android:layout_marginTop="10dip"
android:layout_marginBottom="3dip"
android:text="Store Number (Ex: 7001)"/>
<EditText
android:id="@+id/store"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_below="@id/storeLabel"
android:layout_margin="3dip"
android:numeric="integer"/>
<Button  
android:id="@+id/login"
android:layout_width="wrap_content" 
android:layout_height="wrap_content"
android:layout_below="@id/store"
android:layout_centerHorizontal="true"
android:text="Login"/>
</LinearLayout>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...