开发者

Designing UI for android phone

开发者 https://www.devze.com 2023-04-12 17:42 出处:网络
I am developing an android app. My client has got Motorola Atrix. I designed the ui in eclipse based on screen size 3.7in WVGA (Nexus One). Which works fine in almost all devices like HTC desire, gala

I am developing an android app. My client has got Motorola Atrix. I designed the ui in eclipse based on screen size 3.7in WVGA (Nexus One). Which works fine in almost all devices like HTC desire, galaxys2... but on Motorola Atrix (540 x 960 pixels) its showing some blank space on bottom.

How can I target an UI for that device?

I have already read in android developer tutorials but didnt get an idea.

Here is the current layout

<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">
</Rela开发者_运维百科tiveLayout>

how can I do this properly? Thanks


I solved the issue by adding option android:fillViewport="true" in scrollview properties. Thanks all.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号