-1

間違った画像

http://i.stack.imgur.com/EEIBW.png

これは、各画像を同じ高さと幅で表示する必要があるためですが、「送信ボックス」画像は右のものよりも小さいです。ここで何が問題なのですか?smae コードは mdpi と hdpi で正常に動作します

<TableLayout  
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:stretchColumns="1"
        android:background="@color/Grey">

        <TableRow>
            <FrameLayout 
                android:id="@+id/inboxLargeButton"
                android:layout_height="wrap_content"
                android:layout_width="0dp"
                android:layout_weight="1">

                <View android:layout_width="wrap_content" 
                    android:layout_height="wrap_content" 
                    android:background="@drawable/inbox_normal" 
                    android:id="@+id/buttonWeddingDayCheatSheet"
                    android:layout_gravity="bottom"
                    android:adjustViewBounds="true"
                    >
                </View>
                <TextView  
                    android:layout_width="fill_parent"  
                    android:layout_height="wrap_content"  
                    android:text="2631"  
                    android:layout_gravity="bottom"  
                    android:gravity="center"  
                    android:textColor="#fff"  
                    android:textSize="50dp" />
            </FrameLayout>

            <FrameLayout 
                android:id="@+id/outboxLargeButton"
                android:layout_height="wrap_content"
                android:layout_width="0dp"
                android:layout_weight="1">

                <View android:layout_width="wrap_content" 
                    android:layout_height="wrap_content" 
                    android:background="@drawable/ourbox_normal" 
                    android:id="@+id/buttonWddingDayCheatSheet"
                    android:layout_gravity="bottom"
                    android:adjustViewBounds="true"
                    >
                </View>
                <TextView  
                    android:layout_width="fill_parent"  
                    android:layout_height="wrap_content"  
                    android:text="0432"  
                    android:layout_gravity="bottom"  
                    android:gravity="center"  
                    android:textColor="#fff"  
                    android:textSize="50dp" />
            </FrameLayout>
        </TableRow>

</TableLayout>  
4

2 に答える 2

0

すべてが正しく見えます。プロジェクトをクリーンアップして、もう一度実行してみてください。

それでもうまくいかない場合は、高さを に設定し、高さを固定のView高さに設定してみてください。match_parentFrameLayout

于 2013-07-19T19:38:49.610 に答える