History log of /frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/ButtonItemTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d3ffc713be68823409d5dc6d2d44bb21bde5bfd0 28-Feb-2017 Maurice Lam <yukl@google.com> Add center alignment for 2017 themes

Add "GLIF Pixel" theme that is a drop-in replacement for
SuwThemeGlif, which will center align the header and description
text.

To use GLIF Pixel theme, simply set the activity theme (using
android:theme or Activity#setTheme) to SuwThemeGlifPixel and use the
GLIF layouts normally.

Other theme attributes like status bar background will be done in a
separate CL.

Test: ./gradlew connectedAndroidTest test
Bug: 35446596
Change-Id: I3edee9cf80c1c84018ed08f47f9859e51a3936e6
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/ButtonItemTest.java
2831318df83781bb5bada256e35726612d225052 14-Feb-2017 Maurice Lam <yukl@google.com> 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
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/ButtonItemTest.java