如何在 android 中将屏幕分辨率设置为 1440 X 2880 和 1440 X 2560?
How to set screen resolution for 1440 X 2880 and 1440 X 2560 in android?
我在 android 中有一个设计,图像在 1440 X 2880 屏幕和 1440 X 2560 屏幕上显示不同。如何正确地做到这一点?特别适用于 1440 X 2880 屏幕。我已经创建了 hdpi、mdpi、xhdpi、xxhdpi、xxxhdpi 图像,但我仍然没有得到结果。
<?xml version="1.0enter code here" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/view_toolbar_logo"
android:id="@+id/relToolbar">
</include>
<RelativeLayout
android:layout_width="match_parent"
android:layout_below="@+id/relToolbar"
android:layout_marginRight="@dimen/_12sdp"
android:layout_marginLeft="@dimen/_12sdp"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/test"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/im1"
android:background="@drawable/ranking"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/im1"
android:layout_marginTop="@dimen/_10sdp"
android:background="@drawable/coin"/>
</RelativeLayout>
图像是在 adobe Xd 工具的帮助下从 .psd 转换为 .png 我需要像第一张快照一样设计图像
我在 android 中有一个设计,图像在 1440 X 2880 屏幕和 1440 X 2560 屏幕上显示不同。如何正确地做到这一点?特别适用于 1440 X 2880 屏幕。我已经创建了 hdpi、mdpi、xhdpi、xxhdpi、xxxhdpi 图像,但我仍然没有得到结果。
<?xml version="1.0enter code here" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/view_toolbar_logo"
android:id="@+id/relToolbar">
</include>
<RelativeLayout
android:layout_width="match_parent"
android:layout_below="@+id/relToolbar"
android:layout_marginRight="@dimen/_12sdp"
android:layout_marginLeft="@dimen/_12sdp"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/test"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/im1"
android:background="@drawable/ranking"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/im1"
android:layout_marginTop="@dimen/_10sdp"
android:background="@drawable/coin"/>
</RelativeLayout>
图像是在 adobe Xd 工具的帮助下从 .psd 转换为 .png 我需要像第一张快照一样设计图像