Linearlayout中使用小分辨率设备的布局问题

时间:2016-10-19 05:05:25

标签: android android-layout android-linearlayout

你好朋友我想制作布局线性布局查看更多信息点击下面的高分辨率图片

所以我创建像这样的布局文件

 [{"Tag": "Social Media"}, {"Tag": "Adobe Creative"}]
 [{"Tag": "Interactive"}]
 [{"Tag": "Web 2.0"}, {"Tag": "Adobe Creative"},{"Tag": "Suite"}]

当我运行上面的代码时,我得到像这样的小分辨率设备输出

Small resolution

我得到像这样的高分辨率设备输出

High Resolution

任何想法如何解决小分辨率设备输出?你的所有建议都是适合的

1 个答案:

答案 0 :(得分:0)

I think your XML code is right, but you need to change your `home_gray_bg_left_corner`.

Try this drawable:

    <?xml version="1.0" encoding="utf-8"?>
    <shape xmlns:android="http://schemas.android.com/apk/res/android"
        android:shape="rectangle">
        <solid android:color="@color/colorPrimary" />
        <padding
            android:bottom="@dimen/spacing_5dp"
            android:left="@dimen/spacing_5dp"
            android:right="@dimen/spacing_5dp"
            android:top="@dimen/spacing_5dp" />
        <corners android:radius="@dimen/spacing_30dp" />
        <stroke
            android:width="2px"
            android:color="@color/color_gray" />
    </shape>