I'm trying to custom App Theme using Material Design Light.DarkActionBar theme, but the text color in actionBar is black. I tried change color using textColorPrimary to white, but when I did that, all text in my app was change to white.
Here is my values/styles:
<resources>
<!-- Inherit from the light Material Theme -->
<style name="MissaoCaronaTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimaryDark">@color/amareloSecundario</item>
<!-- cor da barra -->
<item name="colorPrimary">@color/amareloPrimario</item>
<!-- Cor dos controles -->
<item name="colorAccent">@color/amareloPrimario</item>
</style>
</resources>
Here is my values-v21/styles:
<resources>
<style name="MissaoCaronaTheme" parent="@android:style/Theme.Material.Light.DarkActionBar">
<item name="android:colorPrimaryDark">@color/amareloSecundario</item>
<!-- cor da barra -->
<item name="android:colorPrimary">@color/amareloPrimario</item>
<!-- Cor dos controles -->
<item name="android:colorAccent">@color/amareloPrimario</item>
</style>
</resources>
Here is my androidmanifest:
<application android:label="@string/ApplicationName" android:theme="@style/MissaoCaronaTheme"></application>
Here is my layout file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="40dp"
local:MvxBind="Text Hello" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="40dp"
local:MvxBind="Text Hello" />
</LinearLayout>
Here is my activity:
[Activity(Label = "Usuário")]
public class UsuarioEditView : MvxActivity<UsuarioViewModel>
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
SetContentView(Resource.Layout.UsuarioEditView);
}
}