3514ad526af3d95f61383ec374ea4c384ba9b540 |
17-Mar-2018 |
Maurice Lam <yukl@google.com> |
Add methods to set GLIF icon content description Test: ./gradlew connectedAndroidTest Bug: 74435529 Change-Id: I22e3abe8dce0663a7d1e7ee3050d327abeec4ad2 (cherry picked from commit c38af2fb55868523e5ddcceb6331947501f43adf)
conMixin.java
|
97d3a11d5e6a2bf9ec3f50de7b77ef94333110d3 |
14-Feb-2018 |
Maurice Lam <yukl@google.com> |
Add setIcon(int) to IconMixin This allows vector drawable compat to be used on pre-L. Test: ./gradlew connectedAndroidTest Change-Id: I405f28eae11e68532165f89b1c1a226972ee06a3
conMixin.java
|
58195c5316855122593366bd867ed51a91bd5c11 |
03-Nov-2017 |
Maurice Lam <yukl@google.com> |
Hide icon view if icon is null To remove the extra margin when the icon is not used. Test: ./gradlew connectedAndroidTest Bug: 68826871 Change-Id: Ic23307a28b2829fdbe029c61f912f04bab90ca13
conMixin.java
|
5e98278ebfad7aa858fbfcc4dd53db7442f9bc15 |
28-Jun-2017 |
Maurice Lam <yukl@google.com> |
Add ButtonBarLayout Add custom (linear) layout which will stack the buttons vertically when there is not enough horizontal space. Test: Manual Bug: 62488121 Change-Id: I8d5cc72d07514627e800382267f8850531fce3d2
uttonFooterMixin.java
|
6011b35deae30839cd454e0ec5866487e90860f5 |
26-Apr-2017 |
Maurice Lam <yukl@google.com> |
Allow setting DividerInsetEnd - Added XML attribute suwDividerInsetEnd, and replaced suwDividerInset with suwDividerInsetStart. - Modified the themes so that the divider insets are set automatically. If the activity uses GLIF (v1) or material, and the list does not have icons, it should set app:suwDividerInsetStart="?attr/suwDividerInsetStartNoIcon" in the Glif[Recycler/List]Layout Test: ./gradlew connectedAndroidTest test Bug: 37677772 Change-Id: Ia4cb9954dd7e3c59cbc72db8937989557689061b
istMixin.java
|
339cbc0f38d81adda4d2f9bf44a5514e2f027031 |
27-Mar-2017 |
Maurice Lam <yukl@google.com> |
Don't set null tint color on Lollipop There is a bug in Lollipop framework where setting a null progress tint will cause NPE when drawn. Test: ./gradlew connectedAndroidTest Change-Id: I0ba0aa8847f6ab2b0608f55c96814d383de67277
rogressBarMixin.java
|
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
istViewScrollHandlingDelegate.java
equireScrollMixin.java
crollViewScrollHandlingDelegate.java
|
9ac3d54040b4dae6addc224fd8a69bf62ee84a83 |
06-Mar-2017 |
Maurice Lam <yukl@google.com> |
Fix warnings in SuwLib Fix various issues flagged by compiler and ErrorProne, including raw types, unchecked casts, missing overrides and others. Test: Existing tests pass. `./gradlew connectedAndroidTest test` Change-Id: I4008504430760b436d6dc6c52a9dfb169dcfa49b
ixin.java
|
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
uttonFooterMixin.java
|
d349adb3941c88ae27ec451acd19641ba03205df |
26-Jan-2017 |
Maurice Lam <yukl@google.com> |
Add ListMixin Add ListMixin to allow common interface to a TemplateLayout containing lists. Test: ./gradlew connectedAndroidTest Change-Id: I6ebd2c5a83b14db534cf66e5de7fe12584441537
istMixin.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
oloredHeaderMixin.java
eaderMixin.java
conMixin.java
ixin.java
avigationBarMixin.java
rogressBarMixin.java
|