【发布时间】:2015-05-21 00:30:26
【问题描述】:
我知道这个问题是在here 之前提出的,但我已经尝试了给出的解决方案,但我没有得到与设备完全相同的预览外观。
我在 android 版本 4.2.2 上使用三星 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:我正在学习android,所以我可能会对答案感到困惑
【问题讨论】:
标签: android android-studio android-titlebar