2017-11-29 6 views
0

私のすべてのアクティビティのテーマが暗いものに変更されたという不明な理由から、私は、Manifest.xmlのコードを変更することによって、それを聴覚障害のテーマに戻そうとしますが、成功することはありません。アクティビティのテーマを暗くから白に変更する

これはマニフェストのコードです:

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    package="com.myhalf"> 

    <uses-sdk 
     android:minSdkVersion="15" 
     android:targetSdkVersion="19" /> 

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> 
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
    <uses-permission android:name="android.permission.READ_PHONE_STATE" /> 

    <application 
     android:allowBackup="true" 
     android:hardwareAccelerated="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:roundIcon="@mipmap/ic_launcher_round" 
     android:supportsRtl="true" 
     android:theme="@android:style/Theme.Holo.Light"> 
     <activity 
      android:name=".controller.RegisterActivity" 
      android:screenOrientation="portrait" 
      android:theme="@style/Background" > 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
     <activity android:name=".controller.testingActivity" /> 
     <activity android:name=".controller.LoginActivity" /> 
     <activity android:name=".controller.LookingFor" /> 
     <activity android:name=".controller.MainActivity" /> 
     <activity android:name=".controller.MatchMakerRegistering" /> 
     <activity android:name=".controller.EditProfile"></activity> 
    </application> 

</manifest> 

、これはまだ暗い滞在活動の一つである:android:theme="@android:style/Theme.Holo.Light" ovveride

enter image description here

答えて

0

android:theme="@style/Background"あなたの活動のために。あなたのテーマはかなり同じように@android:style/DeviceDefaultのように見えます。

viewsのテーマを上書きしない場合はlayout.xmlをチェックしてください。 styles.xmlフォルダの確認は、色を変更することがあります。または、それらのいずれかを削除します。 styles.xmlに新しいスタイルを作成し、attributtesでデフォルトのスタイルを継承することができます。

関連する問題