Answer the question
In order to leave comments, you need to log in
In android studio: button style output to physical. device is different from the style on the preview?
I'm experimenting with overriding different widget styles and can't solve this problem:
<resources>
<style parent="Theme.AppCompat" name="AppTheme">
<item name="colorPrimary">@color/red</item>
<item name="colorPrimaryDark">@color/dark_red</item>
<item name="colorAccent">@color/gray</item>
<item name="android:buttonStyle">@style/BeatBoxButton</item>
<item name="android:colorBackground">@color/soothing_blue</item>
</style>
<style parent="android:style/Widget.Holo.Button" name="BeatBoxButton" >
<item name="android:background">@color/dark_blue</item>
<item name="android:textStyle">italic</item>
</style>
</resources>
<Button
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/list_item_sound_button"
android:layout_width="match_parent"
android:layout_height="120dp"
tools:text="Sound name">
</Button>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question