Android TextView在我的API19设备上显示错误样式
这是在我的设备Sony Xperia ZAndroid TextView在我的API19设备上显示错误样式,android,textview,android-theme,Android,Textview,Android Theme,这是在我的设备Sony Xperia ZAPI 19 然而,这应该是API 19的结果 我的TextView发生了什么事???请帮忙 更新清单 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.app.sml" android:versionCo
API 19
然而,这应该是API 19的结果
我的TextView
发生了什么事???请帮忙
更新清单
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.app.sml"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="14"
android:targetSdkVersion="19"/>
<application
android:label="@string/app_name"
android:icon="@drawable/ic_launcher">
<activity
android:name="MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
您没有为应用程序声明主题,因此使用了默认的设备主题。 如果你想使用全息主题(显然你是这样做的),你应该明确声明它。只需在应用程序(或特定活动)下添加此属性:
整个全息主题系列(theme.Holo、theme.Holo.Light、theme.Holo.Light.DarkActionBar)可用于sdk级别>=14的任何设备。只需选择一个您想要的。我认为这是由于不同的sdk版本造成的。
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo"
...>