Merge "Fix robolectric tests"
This commit is contained in:
committed by
Android (Google) Code Review
commit
7ec34c1781
@@ -65,7 +65,7 @@
|
||||
android:orientation="vertical">
|
||||
<Button
|
||||
android:id="@android:id/text1"
|
||||
style="@style/SupportPrimaryButton"
|
||||
style="@style/ActionPrimaryButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="8dp"/>
|
||||
@@ -86,7 +86,7 @@
|
||||
android:orientation="vertical">
|
||||
<Button
|
||||
android:id="@android:id/text2"
|
||||
style="@style/SupportPrimaryButton"
|
||||
style="@style/ActionPrimaryButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="8dp"/>
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
</LinearLayout>
|
||||
<Button
|
||||
android:id="@android:id/text1"
|
||||
style="@style/SupportPrimaryButton"
|
||||
style="@style/ActionPrimaryButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="8dp"
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
android:textColor="?android:attr/textColorSecondary"/>
|
||||
<Button
|
||||
android:id="@android:id/text1"
|
||||
style="@style/SupportPrimaryButton"
|
||||
style="@style/ActionPrimaryButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="8dp"/>
|
||||
|
||||
@@ -338,8 +338,6 @@
|
||||
|
||||
<style name="TextAppearance.SupportSummary" parent="TextAppearance.CategoryTitle"/>
|
||||
|
||||
<style name="SupportPrimaryButton" parent="android:Widget.DeviceDefault.Button.Colored"/>
|
||||
|
||||
<style name="SupportSecondaryButton"
|
||||
parent="android:Widget.DeviceDefault.Button.Borderless.Colored">
|
||||
<item name="android:textSize">12sp</item>
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
<resources>
|
||||
<style name="Theme.Settings" parent="@android:style/Theme.DeviceDefault.Settings"/>
|
||||
<style name="Theme.Settings" parent="@android:style/Theme.DeviceDefault.Settings" />
|
||||
|
||||
<!-- Override the main app's style for ActionPrimaryButton to get around lack of new style
|
||||
support in robolectric -->
|
||||
<style name="ActionPrimaryButton" parent="android:Widget.DeviceDefault.Button" />
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user