Дизайн Android для всех размеров и разрешений экрана

Привет, я работаю над приложением с таким дизайном. Приложив много усилий, я разработал это. Но это все еще не то же самое, что и данный дизайн, и на других экранах я получил это. Это код в xml файле. Любая помощь будет оценена.

<?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="fill_parent"
    android:background="@mipmap/dashboard_bg"
    android:orientation="vertical" >

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:orientation="horizontal" >

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@null"
            android:src="@mipmap/logo" />

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@null"
            android:src="@mipmap/logo" />
    </LinearLayout>

    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal"
        android:text="Welcome text of app" />

    <RelativeLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:gravity="bottom" >

        <ImageView
            android:id="@+id/imageView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_centerHorizontal="true"
            android:contentDescription="@null"
            android:src="@mipmap/seperator" />

        <ImageView
            android:id="@+id/imageView2"
            android:layout_width="wrap_content"
            android:layout_above="@+id/imageView1"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:contentDescription="@null"
            android:src="@mipmap/regional_managers" />

        <ImageView
            android:id="@+id/imageView4"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/imageView3"
            android:layout_toEndOf="@+id/imageView1"
            android:layout_toRightOf="@+id/imageView1"
            android:contentDescription="@null"
            android:src="@mipmap/regions" />

        <ImageView
            android:id="@+id/imageView5"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignRight="@+id/imageView3"
           android:layout_alignEnd="@+id/imageView3"
            android:layout_below="@+id/imageView4"
            android:contentDescription="@null"
            android:src="@mipmap/graphs" />

        <ImageView
            android:id="@+id/imageView3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:layout_alignTop="@+id/imageView1"
            android:layout_toLeftOf="@+id/imageView1"
            android:layout_toStartOf="@+id/imageView1"
            android:contentDescription="@null"
            android:src="@mipmap/nationwide" />

    </RelativeLayout>

</LinearLayout>

Также пробовал ссылки из таких, как размер изображения (drawable-hdpi/ldpi/mdpi/xhdpi ) и Настройка папки для рисования для разных разрешений но не может получить желаемых результатов. Любая помощь будет оценена.


comment
Я бы рекомендовал вам использовать относительный макет в процентах (developer.android.com/ reference/android/support/percent/), чтобы размещать элементы на экране независимо от их размера. Но лучшим вариантом было бы принять парадигмы Android, а как насчет панели навигации для ваших параметров навигации, а не плавающих кнопок?   -  person Francesc    schedule 12.03.2016
comment
Вы пытались поместить изображения в папки drawable-xxxhdpi/xxhdpi/hdpi/mdpi?   -  person Shadab Ansari    schedule 12.03.2016
comment
@Francesc Я бы хотел использовать парадигмы Android. но плавающие кнопки - это требования пользователя.   -  person MajorGeek    schedule 12.03.2016
comment
@ShadabAnsari да, я сделал по стандарту ldpi | мдпи | твдпи | hdpi | xhdpi | xxhdpi | xxxhdpi 0,75 | 1 | 1,33 | 1,5 | 2 | 3 | 4   -  person MajorGeek    schedule 12.03.2016


Ответы (1)


Попробуйте что-то вроде этого:

<?xml version="1.0" encoding="utf-8"?>
<android.support.percent.PercentRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        app:layout_marginTopPercent="10%"
        app:layout_widthPercent="30%" />

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_marginLeftPercent="20%"
        app:layout_marginTopPercent="40%"
        app:layout_widthPercent="20%" />

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_marginLeftPercent="60%"
        app:layout_marginTopPercent="55%"
        app:layout_widthPercent="20%" />

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_marginLeftPercent="30%"
        app:layout_marginTopPercent="70%"
        app:layout_widthPercent="20%" />

</android.support.percent.PercentRelativeLayout>
person Francesc    schedule 11.03.2016
comment
Я не знал о процентном относительном расположении. Но после вашего комментария, ответа выше и документов Google я могу получить желаемые результаты для всех макетов, кроме Nexus 9 и 10. Спасибо за помощь. - person MajorGeek; 12.03.2016