我们应该如何在android中设置支持不同屏幕尺寸的xml布局。 我尝试使用换行内容并匹配父,但它无法正常工作。请指导我这个。 提前致谢。
答案 0 :(得分:0)
关于支持多个屏幕的评论是一个很好的起点!默认情况下,您的xml支持不同的屏幕尺寸。
Although the system performs scaling and resizing to make your application work on different screens, you should make the effort to optimize your application for different screen sizes and densities. In doing so, you maximize the user experience for all devices and your users believe that your application was actually designed for their devices—rather than simply stretched to fit the screen on their devices.
然而,就像它说你需要优化它。这是指每个屏幕尺寸/方向的图像或完全不同的xml。这对你有帮助吗?
如果您需要更具针对您情况的内容,则需要提供更多信息。