1つの問題で私を助けてください。最小 SDK バージョンを 3 (Android 1.5) から 4 (1.6) 以上に変更すると、dp および sp 単位を使用しても、すべてのボタンとテキストビューが複数の画面で同じサイズになります。これはなぜでしょうか?
簡単な例 (main.xml):
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Button
android:id="@+id/button"
android:layout_width="300dp"
android:layout_height="300dp"
android:text="OK"
android:layout_centerInParent="true"
/>
</LinearLayout>
Google Nexus 7 のスクリーンショット: http://s019.radikal.ru/i601/1312/fd/e769f6e3a690.png
Sony Ericsson Xperia Play のスクリーンショット: http://s019.radikal.ru/i600/1312/9d/6b3f580e7503.png