0ceb8d53e39ebb5bc103863787afb39ec5c41ad8 |
|
18-Mar-2017 |
Maurice Lam <yukl@google.com> |
Add ability to require scroll to GlifLayout Generalize RequireScrollHelper and turn it into a mixin to allow GlifLayout to use require scrolling. This is only applicable to GLIF with sticky footer, since inline content button requires scrolling by definition. Also added Robolectric test support for full-support, by moving full-support/test's contents into full-support/test/instrumentation and put the new Robolectric tests in full-support/test/robotest. Bug: 36387078 Test: ./gradlew connectedAndroidTest test Change-Id: Ib07ec0ddf07affa30c46e786f4e9be7853a243c4
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
48c121912f865be865e564a4d0a899988a100d37 |
|
07-Mar-2017 |
Maurice Lam <yukl@google.com> |
Add suwFooter attribute to GlifLayout Add the suwFooter attribute so custom footer layouts can be easily added, in conjunction with <aapt:attr> tag. Test: ./gradlew connectedAndroidTest test Bug: 36009807 Change-Id: Id7d937486451e34bdc30775a0f5f3dfcde47598f
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
39056e5dc4b068745c2d9be69e5cd0c008bdc117 |
|
03-Mar-2017 |
Maurice Lam <yukl@google.com> |
Make status bar white on GLIF pixel theme Add attributes suwBackgroundBaseColor and suwBackgroundPatterned to GlifLayout, which allows the GLIF Pixel theme to display a solid off-white status bar background instead of the pattern in regular GLIF. Test: ./gradlew connectedAndroidTest test Bug: 35446596 Change-Id: Icbf3608882367ce00188fd124df5d2ba0de00864
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
fca3ee628d9d5c1c1109f3df6e02cdd31c57c000 |
|
22-Feb-2017 |
Maurice Lam <yukl@google.com> |
Fix GLIF pattern for versions < L For versions < L, setGlifPatternColor should still change the background drawable, since they are visible on tablets. Replaced the v21 specific attrs with attribute references in the themes, removing the need for a separate version attrs.xml. Moved GlifLayoutTest that doesn't require test XMLs to Robolectric, so make SDK version testing easier. Robolectric on gradle doesn't seem to have a good way to include test XMLs, so tests for XML inflation are kept as instrumentation tests. Test: ./gradlew connectedAndroidTest test Change-Id: I36b3765848e462ee920c563a6fa335a0e67dd471
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
db0a8d653fb37519e10134470201f8e30bdb2c75 |
|
21-Feb-2017 |
Maurice Lam <yukl@google.com> |
Merge "Implement ButtonFooterMixin"
|
8721e6e37afdda2d3aba487334f96e270a57ad19 |
|
10-Feb-2017 |
Maurice Lam <yukl@google.com> |
Implement ButtonFooterMixin The ButtonFooterMixin allows creating GLIF-compatible sticky footer with buttons. The mixin assumes that buttons on the start side (left for LTR) are borderless buttons and buttons on the end side (right for LTR) are accent colored raised buttons. Bug: 35448201 Test: ./gradlew connectedAndroidTest test Change-Id: I26fc1a19290308f8d39466652308366e9677afbd
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
e2a8d27c2a43cf0b48b80e5b05f893222c541e04 |
|
17-Feb-2017 |
Maurice Lam <yukl@google.com> |
Add theme fallback - Add FallbackThemeWrapper, which behaves like ContextThemeWrapper, except that the base context's theme attributes takes precedence over the wrapper context's. - Use the FallbackThemeWrapper in TemplateLayout (SetupWizardLayout and GlifLayout), so that inflating them with the wrong theme will not crash, but rather look wrong. This allows SuwLib to add required attributes without risking crashing clients that for some reason doesn't use the right themes. Test: ./gradlew connectedAndroidTest Change-Id: I694ad7279ce733659f6aa5d72e2087a09d3f1e22
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
7514f1cee29b3feb4822ce16945c1c312057d24f |
|
19-Dec-2016 |
Maurice Lam <yukl@google.com> |
Implement Mixins for Templates Implement Mixin functionalities, which defines part of a template layout, making it reusable in different layouts. For example, the HeaderMixin allows setting and getting the header text via the mixin, which allows for clients which uses multiple different layuots to simplify their code via something like layout.getMixin(HeaderMixin.class).setText("Foobar"); Bug: 34163318 Test: ./gradlew connectedAndroidTest Change-Id: I4348c8bb5b8e640b49c2be0c79c70aa85cf0ebc0
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
63cdc5ccb7f1f61d0e752e38d7e57c690658a0ac |
|
23-Nov-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Turn on fatal lint Fix (or suppress) lint warnings and make it fatal again in the build process. Additionally, warnings are treated as errors now. If there are warnings that are not applicable, add @SuppressLint or tools:ignore to suppress the warning, so code reviewers can be aware of the lint issue too. Test: ./gradlew lint Change-Id: I63c83ff1b95a0817dc2ac777adce0fa9f9ebd45a
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
a6d30093e9308a88fc875b484cf16cda385c2f98 |
|
04-Nov-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Replace colorPrimary with custom attribute Replace android:colorPrimary with suwColorPrimary because the former is only available on API 21 or above. Test: ./gradlew connectedAndroidTest Bug: 32405650 Change-Id: I57bb2b87771a5169004fca310b6284de88fb2f14
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
bc89919a0287256bf8255e8013c1c7c2ccf49f58 |
|
25-Oct-2016 |
Ajay Nadathur <ajayns@google.com> |
[SetupWizard] GLIF determinate progress bar should have blue background Test: Manually tested and verified blue background present. Also added unit test bug: 32148755 Change-Id: I0e2e9e346ed6952bdcbae6e7bcc3eeab552ab262
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
d66273847cb8cb69513db37e26e6ab0ee0590cc3 |
|
22-Jun-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Null check if progress bar is not in template Bug: 28848765 Change-Id: If447167cb0bb3d112d797389d0f8d790b02e3557
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
b6fb8bb15f4c6b08eb7f875c21df1005a8679594 |
|
10-Jun-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Allow peeking progress bar Add GlifLayout.peekProgressBar that will get the progress bar from the view if it is already installed. Bug: 28848765 Change-Id: Ica686f843013007a7abe6b1d67e26de14b95ec75
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
84979a6b2874d09762404c3c8a902f4aad016d01 |
|
26-Apr-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Support GLIF preference Bug: 26427729 Change-Id: Ie95b0031bacef316ccff9bc9f1a4b048016a9353
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
3aee7b9de403e669e24ce68da1b390ab74288364 |
|
25-Mar-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Catch RuntimeException during template inflation On platform versions < M, RuntimeException is thrown when an attribute is not found. This is changed to InflateException since M. Catch the more generic RuntimeException so we will show the more helpful error message on previous versions as well. Bug: 27153117 Change-Id: I6367f2f2c6adfaab0c3dc1297249d08225c99d9c
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
99586481628659cd2982a0248bc0d09a6ec4590e |
|
18-Mar-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Improve wrong theme error message Improve the error message in SetupWizardLayout and GlifLayout to mention the correct themes when there is an InflateException. Bug: 27153117 Change-Id: I0b76713b820fd26fd2c8808819887e360c3e87a3
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
ac40f3676511e1c7c09a948f5cb8481e5ea12d57 |
|
21-Jan-2016 |
Maurice Lam <yukl@google.com> |
[SetupWizard] Add GlifLayout.setPrimaryColor Bug: 26458108 Change-Id: Ia7be66fcf1efd60e65a759006f72b3a0589d0401
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
0a51b2852ce9940075774191dce7b81ce91eb4a1 |
|
11-Dec-2015 |
Maurice Lam <yukl@google.com> |
[SuwLib] Add progress bars to GLIF layouts Change-Id: I5a32cabcc1d89cfb978fbceb3d3f4811bccaea92
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
c3eebe9f664af4b77e5948a14bf266b25dc25cc8 |
|
14-Nov-2015 |
Maurice Lam <yukl@google.com> |
[SuwLib] Implement pattern drawable background - Implement the pattern background for GLIF using a custom drawable. The drawable draws the paths manually as specified in the SVG, for backwards compatibility. - Use a FrameLayout subclass to draw the custom status bar background in the case of phone layouts, and set draw the background directly for tablet / clamshell layouts. Bug: 25650709 Change-Id: I527bb47efa143ec43c1030b57087fd2414d7045b
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
b01f3ef075d501d1f61e6f61794a5cadd3ff2026 |
|
21-Nov-2015 |
Maurice Lam <yukl@google.com> |
[SuwLib] Implement GlifRecyclerLayout Bug: 25726515 Change-Id: Ibb60af51928bb5fc828761c55430cc8d31fe5c98
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|
fce4cf6161b2a1644ad21034f0afe4087d659ab4 |
|
19-Nov-2015 |
Maurice Lam <yukl@google.com> |
[SetupWizard] Implement GlifLayout Bug: 25726515 Change-Id: Ib4ba64e648e52a9859fb6509a9ce41c692a20aa2
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifLayout.java
|