Commit 2831318d authored by Maurice Lam's avatar Maurice Lam
Browse files

Fix ButtonItem theme in appcompat

Inflate the button from XML rather than calling the constructor
directly, so that AppCompatActivity can use the injected layout
inflater to tint the button drawables.

- Migrated existing ButtonItemTest to robolectric
- Added new ButtonItemDrawingTest as instrumentation test to test
  the drawing behavior. Created DrawingTestHelper and
  DrawingTestActivity to help in testing draw behaviors in normal and
  AppCompat contexts.

Bug: 35325693
Test: ./gradlew connectedAndroidTest
Change-Id: Ic2215f5510c246a861ab109e3dffee49f9cf9b3c
parent 74acd46e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment