History log of /frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/TemplateLayout.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/TemplateLayout.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/TemplateLayout.java
903f83af5ba54075275b455a24c4273143fcb86a 07-Dec-2016 Maurice Lam <yukl@google.com> [SuwLib] Remove copied annotation classes

Use support-annotation instead.

Test: Existing tests pass (./gradlew connectedAndroidTest)
Change-Id: I9ef63db551e713f1ee26e7563da86b379d84c811
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/TemplateLayout.java
b38561602db3fc1b31c7ee907da41ec2c53e4764 19-Aug-2015 Maurice Lam <yukl@google.com> [SuwLib] Fix javadocs

Convert existing javadocs, which is more plain-text-ish, to javadocs
using proper HTML and javadoc tags.

Bug: 21444334
Change-Id: Iea79b3371c4e1c1c99515abd1c1492f37ad38d05
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/TemplateLayout.java
bdfc0132ff90a333de202adfbf204cdc8139e632 13-Aug-2015 Maurice Lam <yukl@google.com> [SuwLib] Refactor out TemplateLayout

Refactor TemplateLayout as a base class for SetupWizardLayout, which
is a generic layout that takes the "android:layout", inflates that as
a template and put its children in the "container".

Change-Id: Id7977787ffa6cdb5df7a4cb8172ce1fa6a52ed45
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/TemplateLayout.java