diff --git a/res/layout-land/choose_lock_pattern.xml b/res/layout-land/choose_lock_pattern.xml index 89e3d57a726..b4d5fceb938 100644 --- a/res/layout-land/choose_lock_pattern.xml +++ b/res/layout-land/choose_lock_pattern.xml @@ -41,37 +41,46 @@ android:layout_marginBottom="@dimen/suw_content_frame_padding_bottom" android:orientation="vertical"> - + android:layout_marginStart="0dp" + android:layout_marginEnd="0dp" + android:src="@drawable/ic_lock"/> - + - + android:orientation="vertical"> - + - - + + + + + + mChosenPattern = null; private boolean mHideDrawer = false; + // ScrollView that contains title and header, only exist in land mode + private ScrollView mTitleHeaderScrollView; + /** * The patten used during the help screen to show how to draw a pattern. */ @@ -237,6 +241,15 @@ public class ChooseLockPattern extends SettingsActivity { mFooterText.setText(""); mFooterLeftButton.setEnabled(false); mFooterRightButton.setEnabled(false); + + if (mTitleHeaderScrollView != null) { + mTitleHeaderScrollView.post(new Runnable() { + @Override + public void run() { + mTitleHeaderScrollView.fullScroll(ScrollView.FOCUS_DOWN); + } + }); + } } }; @@ -415,6 +428,9 @@ public class ChooseLockPattern extends SettingsActivity { mFooterLeftButton = (TextView) view.findViewById(R.id.footerLeftButton); mFooterRightButton = (TextView) view.findViewById(R.id.footerRightButton); + mTitleHeaderScrollView = (ScrollView) view.findViewById(R.id + .scroll_layout_title_header); + mFooterLeftButton.setOnClickListener(this); mFooterRightButton.setOnClickListener(this);