Loading res/layout/alarm_clock.xml +3 −2 Original line number Diff line number Diff line Loading @@ -69,10 +69,11 @@ android:layout_marginBottom="@dimen/footer_button_layout_margin" > <ImageButton android:id="@+id/menu_button" android:contentDescription="@string/button_menu" style="?android:attr/actionOverflowButtonStyle" android:layout_gravity="end|center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" /> android:layout_height="wrap_content" android:accessibilityTraversalAfter="@+id/fab" android:contentDescription="@string/button_menu" /> </FrameLayout> </FrameLayout> res/layout/clock_fragment.xml +3 −2 Original line number Diff line number Diff line Loading @@ -31,10 +31,11 @@ android:layout_marginBottom="@dimen/footer_button_layout_margin" > <ImageButton android:id="@+id/menu_button" android:contentDescription="@string/button_menu" style="?android:attr/actionOverflowButtonStyle" android:layout_gravity="end|center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" /> android:layout_height="wrap_content" android:accessibilityTraversalAfter="@+id/fab" android:contentDescription="@string/button_menu" /> </FrameLayout> </FrameLayout> src/com/android/deskclock/DeskClock.java +3 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,9 @@ public class DeskClock extends BaseActivity implements mViewPager = (ViewPager) findViewById(R.id.desk_clock_pager); // Keep all four tabs to minimize jank. mViewPager.setOffscreenPageLimit(3); // Set Accessibility Delegate to null so ViewPager doesn't intercept movements and // prevent the fab from being selected. mViewPager.setAccessibilityDelegate(null); mTabsAdapter = new TabsAdapter(this, mViewPager); createTabs(mSelectedTab); } Loading Loading
res/layout/alarm_clock.xml +3 −2 Original line number Diff line number Diff line Loading @@ -69,10 +69,11 @@ android:layout_marginBottom="@dimen/footer_button_layout_margin" > <ImageButton android:id="@+id/menu_button" android:contentDescription="@string/button_menu" style="?android:attr/actionOverflowButtonStyle" android:layout_gravity="end|center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" /> android:layout_height="wrap_content" android:accessibilityTraversalAfter="@+id/fab" android:contentDescription="@string/button_menu" /> </FrameLayout> </FrameLayout>
res/layout/clock_fragment.xml +3 −2 Original line number Diff line number Diff line Loading @@ -31,10 +31,11 @@ android:layout_marginBottom="@dimen/footer_button_layout_margin" > <ImageButton android:id="@+id/menu_button" android:contentDescription="@string/button_menu" style="?android:attr/actionOverflowButtonStyle" android:layout_gravity="end|center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" /> android:layout_height="wrap_content" android:accessibilityTraversalAfter="@+id/fab" android:contentDescription="@string/button_menu" /> </FrameLayout> </FrameLayout>
src/com/android/deskclock/DeskClock.java +3 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,9 @@ public class DeskClock extends BaseActivity implements mViewPager = (ViewPager) findViewById(R.id.desk_clock_pager); // Keep all four tabs to minimize jank. mViewPager.setOffscreenPageLimit(3); // Set Accessibility Delegate to null so ViewPager doesn't intercept movements and // prevent the fab from being selected. mViewPager.setAccessibilityDelegate(null); mTabsAdapter = new TabsAdapter(this, mViewPager); createTabs(mSelectedTab); } Loading