summaryrefslogtreecommitdiff
path: root/library/main/src/com/android/setupwizardlib/view
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2015-05-28 19:36:19 -0700
committerMaurice Lam <yukl@google.com>2015-05-29 15:14:35 -0700
commit2d77e072fed129b34e473c7f77246a2b064fab7d (patch)
tree3fcd5069ce032f599d2ef117923f1ab515332e45 /library/main/src/com/android/setupwizardlib/view
parentb5c78954c32ef124b5df7ab539d6579cb4506f50 (diff)
downloadsetupwizard-2d77e072fed129b34e473c7f77246a2b064fab7d.tar.gz
[SetupWizardLib] Add support for require scrolling
Add SetupWizardLayout.requireScrollToBottom method that will register a RequireScrollHelper on the layout. When the helper is registered and the content view can scroll, the next button will be hidden and a down-arrow button is shown, which will scroll the page down when clicked. Change-Id: Ib9ddcbeec24169cc00265fe107deb1b5099cba8d
Diffstat (limited to 'library/main/src/com/android/setupwizardlib/view')
-rw-r--r--library/main/src/com/android/setupwizardlib/view/NavigationBar.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/main/src/com/android/setupwizardlib/view/NavigationBar.java b/library/main/src/com/android/setupwizardlib/view/NavigationBar.java
index bc06976..d2bef6c 100644
--- a/library/main/src/com/android/setupwizardlib/view/NavigationBar.java
+++ b/library/main/src/com/android/setupwizardlib/view/NavigationBar.java
@@ -68,6 +68,7 @@ public class NavigationBar extends LinearLayout implements View.OnClickListener
private Button mNextButton;
private Button mBackButton;
+ private Button mMoreButton;
private NavigationBarListener mListener;
public NavigationBar(Context context) {
@@ -92,6 +93,7 @@ public class NavigationBar extends LinearLayout implements View.OnClickListener
View.inflate(getContext(), R.layout.suw_navbar_view, this);
mNextButton = (Button) findViewById(R.id.suw_navbar_next);
mBackButton = (Button) findViewById(R.id.suw_navbar_back);
+ mMoreButton = (Button) findViewById(R.id.suw_navbar_more);
}
public Button getBackButton() {
@@ -102,6 +104,10 @@ public class NavigationBar extends LinearLayout implements View.OnClickListener
return mNextButton;
}
+ public Button getMoreButton() {
+ return mMoreButton;
+ }
+
public void setNavigationBarListener(NavigationBarListener listener) {
mListener = listener;
if (mListener != null) {