From 2d77e072fed129b34e473c7f77246a2b064fab7d Mon Sep 17 00:00:00 2001 From: Maurice Lam Date: Thu, 28 May 2015 19:36:19 -0700 Subject: [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 --- library/main/src/com/android/setupwizardlib/view/NavigationBar.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'library/main/src/com/android/setupwizardlib/view') 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) { -- cgit v1.2.3