2010-11-18 8 views
0

私のホーム画面で1つの画像を背景として設定し、レイアウトの下部にその背景画像に3つの画像ボタンを設定しました。それ(3つのイメージボタン)は、480x854スクリーンデバイスでは完璧と思われるが、240x320スクリーンサイズではデバイスのように見えない。私の使用するXMLレイアウトは:AndroidデバイスScreenSizeの問題

<?xml version="1.0" encoding="UTF-8"?> 
    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 
     android:orientation="vertical" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:background="@drawable/inscreen"> 
     <ImageView android:id="@+id/clip" 
        android:layout_height="wrap_content" 
        android:layout_width="wrap_content" 
        android:layout_alignParentBottom="true" 
        android:layout_marginBottom="95dip" 
        android:layout_gravity="bottom|center" 
        android:src="@drawable/selector"/> 
     <ImageView android:id="@+id/catagoryvid" 
        android:layout_height="wrap_content" 
        android:layout_width="wrap_content" 
        android:layout_alignParentBottom="true" 
        android:layout_marginBottom="55dip" 
        android:layout_gravity="bottom|center" 
        android:src="@drawable/selector1"/> 
     <ImageView android:id="@+id/search" 
        android:layout_height="wrap_content" 
        android:layout_width="wrap_content" 
        android:layout_alignParentBottom="true" 
        android:layout_marginBottom="15dip" 
        android:layout_gravity="bottom|center" 
        android:src="@drawable/selector2"/> 
    </FrameLayout> 

助けが必要ですか?

ありがとうございました。

+0

XMLレイアウトの詳細を追加して理解してください。 – Sandy

答えて

1

このような問題を処理するには相対レイアウトを使用する必要があります。これは、画面サイズに関係なくコントロールを相対的に配置することができます。

+0

私は試してみましたが動作していません – Piyush

+0

試してみたものをここに貼り付けておいてください。 – Sandy

+0

お返事ありがとうございます、私は私の問題を解決しました – Piyush

関連する問題