この質問が以前にここで行われたことは知っていますが、指定された解決策を試しましたが、デバイスのように正確なスタイルでプレビューの外観が得られません。
デバイスのデバッグとして Android バージョン 4.2.2 で Samsung Galaxy S3 mini を使用しています。完全に変更されていませんが、テーマを変更してもデバイスが同じように見える理由がわかりません (活動はもちろん)
アクティビティのコードは、新しい空白のアクティビティと同じです
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
<TextView android:text="@string/hello_world" android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
プレビューはこんな感じ
しかし、デバイスは次のようになります
PS:私はアンドロイドを学んでいるので、答えに混乱するかもしれません