【发布时间】:2015-04-05 18:29:50
【问题描述】:
我正在为我的对话框创建布局。 在 Android Studio 中,布局在普通的 Android 4.0+ 设计中显示 EditText 和微调器(参见图 2)
但是当我在运行 Android 5.0 的移动设备上部署此应用程序时,edittext 和 spinner 设计看起来就像在 Android Gingerbread (2.3) 中一样。
我不知道是什么问题,以及为什么这个设计会搞砸。
这是我的 AndroidManifest 代码
<activity
android:name="com.random.DialogAmountEdit"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Translucent.NoTitleBar"></activity>
这是我的 styles.xml 代码
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
【问题讨论】:
-
你能告诉我们你的
AndroidManifest.xml和styles.xml吗?这可能是样式/主题问题。 -
我已经编辑了上面的代码,你可以看看
标签: android android-edittext spinner