创建支持不同屏幕尺寸的相同UI? [英] Creating Same UI Supporting Different Screen Sizes?

查看:146
本文介绍了创建支持不同屏幕尺寸的相同UI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在android studio中遇到设计问题。
我想创建在每个设备上应该看起来相同的UI,但现在我无法正确地做到这一点。我正在使用约束布局,这些是屏幕截图:

I am Currently having designing problems in android studio. I want to create UI which should looks same on every device but now i can't do that properly. i am using constraint layout and these are the screenshots :

对于Android屏幕尺寸4.7用户界面如下图所示:

For Android Screen Size 4.7 UI looks like below screenshot :

和Android屏幕7.0尺寸用户界面如下所示:

and For Android Screen 7.0 Size UI looks like this screenshot :

因为图像显示屏幕尺寸为7的圆形图像非常小且 edittext 太糟糕了。

as the images shows the circular image on screen size 7 is pretty small and edittext is too looking worst.

我如何支持两种或更多屏幕尺寸,同时保持屏幕尺寸为4.7的视图。

How can i support both or more screen sizes while keeping the view like screen size 4.7.

推荐答案

使用 SDP - 可扩展的单位库来支持不同的屏幕。

Use SDP - a scalable size unit library for supporting different screens.

一个提供新大小单位的android SDK - sdp(可扩展的dp)。此尺寸单位随屏幕尺寸而变化。它可以帮助Android开发人员支持多个屏幕。
这是 LINK

An android SDK that provides a new size unit - sdp (scalable dp). This size unit scales with the screen size. It can help Android developers with supporting multiple screens. Here is the LINK

这篇关于创建支持不同屏幕尺寸的相同UI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆