diff options
author | Russell Brenner <russellbrenner@google.com> | 2015-05-21 10:19:27 -0700 |
---|---|---|
committer | Russell Brenner <russellbrenner@google.com> | 2015-05-21 10:19:27 -0700 |
commit | caf3ce9f8da61e59a7b7dacbce2e1f8e23d3231e (patch) | |
tree | acf2c2facf26cf80c5e24838bb610a59f547078c | |
parent | bde9f28af53f6826c06e2afd8db5995f7f5ecff0 (diff) | |
download | setupwizard-caf3ce9f8da61e59a7b7dacbce2e1f8e23d3231e.tar.gz |
Add getHeaderText
Utility routine to return the current header.
Change-Id: I53a5d80a0b65f4388c429503bada9271a3286695
-rw-r--r-- | library/main/src/com/android/setupwizardlib/SetupWizardLayout.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/main/src/com/android/setupwizardlib/SetupWizardLayout.java b/library/main/src/com/android/setupwizardlib/SetupWizardLayout.java index 9ec844e..a628d9e 100644 --- a/library/main/src/com/android/setupwizardlib/SetupWizardLayout.java +++ b/library/main/src/com/android/setupwizardlib/SetupWizardLayout.java @@ -236,6 +236,11 @@ public class SetupWizardLayout extends FrameLayout { } } + public CharSequence getHeaderText() { + final TextView titleView = (TextView) findViewById(R.id.suw_layout_title); + return titleView != null ? titleView.getText() : null; + } + /** * Set the illustration of the layout. The drawable will be applied as is, and the bounds will * be set as implemented in {@link com.android.setupwizardlib.view.Illustration}. To create |