gpt4 book ai didi

android - 为安卓手机设计用户界面

转载 作者:搜寻专家 更新时间:2023-11-01 09:11:50 25 4
gpt4 key购买 nike

我正在开发一个安卓应用。我的客户有摩托罗拉 Atrix。我根据屏幕尺寸 3.7in WVGA (Nexus One) 在 eclipse 中设计了 ui。这在几乎所有设备(如 HTC desire、galaxys2...

如何为该设备定位 UI?

我已经读过android developer t utorials但没有想到。

这是当前布局

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:background="#FFFFFF" android:layout_height="525dp">
</RelativeLayout>

我怎样才能正确地做到这一点?谢谢

最佳答案

我通过在 ScrollView 属性中添加选项 android:fillViewport="true" 解决了这个问题。谢谢大家。

关于android - 为安卓手机设计用户界面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7740811/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com