Loading quickstep/res/layout/overview_clear_all_button.xml +2 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <TextView xmlns:launcher="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/clear_all_button" android:layout_width="wrap_content" Loading @@ -10,5 +11,6 @@ android:text="@string/recents_clear_all" android:textColor="?attr/workspaceTextColor" android:background="?android:attr/selectableItemBackground" launcher:layout_ignoreInsets="true" android:textSize="14sp" /> No newline at end of file quickstep/src/com/android/quickstep/views/RecentsViewContainer.java +3 −8 Original line number Diff line number Diff line package com.android.quickstep.views; import static com.android.quickstep.views.RecentsView.DEBUG_SHOW_CLEAR_ALL_BUTTON; import android.content.Context; import android.graphics.Rect; import android.util.AttributeSet; Loading Loading @@ -49,10 +47,8 @@ public class RecentsViewContainer extends InsettableFrameLayout { } @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); if (!changed || !DEBUG_SHOW_CLEAR_ALL_BUTTON) return; protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); mRecentsView.getTaskSize(mTempRect); Loading @@ -60,8 +56,7 @@ public class RecentsViewContainer extends InsettableFrameLayout { (mClearAllButton.getMeasuredWidth() - getResources().getDimension( R.dimen.clear_all_container_width)) / 2); mClearAllButton.setTranslationY( mTempRect.top + (mTempRect.height() - mClearAllButton.getMeasuredHeight()) / 2 - mClearAllButton.getTop()); mTempRect.top + (mTempRect.height() - mClearAllButton.getMeasuredHeight()) / 2); } @Override Loading Loading
quickstep/res/layout/overview_clear_all_button.xml +2 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <TextView xmlns:launcher="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/clear_all_button" android:layout_width="wrap_content" Loading @@ -10,5 +11,6 @@ android:text="@string/recents_clear_all" android:textColor="?attr/workspaceTextColor" android:background="?android:attr/selectableItemBackground" launcher:layout_ignoreInsets="true" android:textSize="14sp" /> No newline at end of file
quickstep/src/com/android/quickstep/views/RecentsViewContainer.java +3 −8 Original line number Diff line number Diff line package com.android.quickstep.views; import static com.android.quickstep.views.RecentsView.DEBUG_SHOW_CLEAR_ALL_BUTTON; import android.content.Context; import android.graphics.Rect; import android.util.AttributeSet; Loading Loading @@ -49,10 +47,8 @@ public class RecentsViewContainer extends InsettableFrameLayout { } @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); if (!changed || !DEBUG_SHOW_CLEAR_ALL_BUTTON) return; protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); mRecentsView.getTaskSize(mTempRect); Loading @@ -60,8 +56,7 @@ public class RecentsViewContainer extends InsettableFrameLayout { (mClearAllButton.getMeasuredWidth() - getResources().getDimension( R.dimen.clear_all_container_width)) / 2); mClearAllButton.setTranslationY( mTempRect.top + (mTempRect.height() - mClearAllButton.getMeasuredHeight()) / 2 - mClearAllButton.getTop()); mTempRect.top + (mTempRect.height() - mClearAllButton.getMeasuredHeight()) / 2); } @Override Loading