2012-08-23 13 views
8

Nexus 7のフィードを使用しているユーザーが、自分のアプリ画面が期待通りに表示されると言いましたが、Spinnersを除き、はるかに大きな表示になります。Nexus 7スピナーが大きすぎる

<TextView 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/textview" 
    android:layout_height="36dip" 
    android:layout_width="match_parent" 
    android:textSize="24.5sp" 
    android:textColor="#768766" 
/> 

このRelativeLayoutにより製造される:

<Spinner 
    android:id="@+id/spinner_weekday1" 
    android:layout_below="@id/col1day" 
    android:layout_height="wrap_content" 
    android:prompt="@string/enterday" 
    android:layout_width="200dip" 
    android:entries="@array/weekdaylist" 
    android:layout_marginRight="60dp" 
    android:layout_marginBottom="20dip" 
    android:textSize="24.5sp" 
    android:textColor="#768766" 
/> 
0ネクサスに

通常画面 http://imgur.com/eG7b3

大スピナー7 http://imgur.com/X4Kqo

IはSpinnerTextViewレイアウトを有します

私は、他のデバイスの範囲で実行しているアプリを持っており、それはうまく見えます。このようにNexus 7でSpinnersが表示される理由は何ですか?

答えて

1

私はこれに対する解決策を見つけました。

上記のSpinnerレイアウトは、実際はres/layout-xlargeのSpinnerであり、Nexusは大きなデバイスです。解像度/レイアウト-大は、次のXMLが含ま:

それはされている必要があります
android:textSize="200sp" 

android:textSize="20sp" 

とスピナーテキストが大きく現れた理由、これは当然でした。

これは、それぞれに物理テストデバイスを持たずに複数のレイアウトサイズを管理しようとする難しさを強調していると思います。

関連する問題