私はres/values/
フォルダにstyle.xml
を以下ましません:スタイルは、エミュレータに表示されますが、私のデバイス上で
<?xml version="1.0" encoding="utf-8"?>
<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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
style="@style/AppTheme" // here I've used It.
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.kaushal28.wakeupplease.MainActivity">
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="wrap_content">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Start"
android:id="@+id/startAlarm" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/stop"
android:text="Stop"/>
</LinearLayout>
</RelativeLayout>
:
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:colorBackground">#000000</item>
</style>
と私はstyle="@style/AppTheme"
を使用していた私の主な活動は、次のレイアウト
私はAndroid搭載のデバイスを持っています。4.2.2 Jelly Beanとエミュレータには最新のMarsh mellowがあります。私はこの違いが原因だと思う。私はこのプロジェクトのために最低限のSDKバージョン15を持っています。
でtargetSDKVersion
を15に変更しようとしました。しかし、それは私の問題を解決することができませんでした。
私が背景に黒い色を期待してい表示されるべきである何
。
カスタマイズされていないものは何ですか?スクリーンショットを共有することは可能ですか? – W0rmH0le
大丈夫待って....... –
@GuilhermePスクリーンショットを参照 –