Skip to content

Commit 55a25fa

Browse files
committed
Reducing height of scroll fade in Recents on phone
Bug: 5149089 Change-Id: I163d3e9b888501999e812cff00d015bed36ca0d6
1 parent fbdff47 commit 55a25fa

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

packages/SystemUI/res/layout-land/status_bar_recent_item.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
android:layout_height="wrap_content"
6767
android:textSize="@dimen/status_bar_recents_app_label_text_size"
6868
android:fadingEdge="horizontal"
69-
android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
69+
android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length"
7070
android:scrollHorizontally="true"
7171
android:layout_alignLeft="@id/app_thumbnail"
7272
android:layout_below="@id/app_thumbnail"
@@ -82,7 +82,7 @@
8282
android:layout_height="wrap_content"
8383
android:textSize="@dimen/status_bar_recents_app_description_text_size"
8484
android:fadingEdge="horizontal"
85-
android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
85+
android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length"
8686
android:scrollHorizontally="true"
8787
android:layout_alignLeft="@id/app_thumbnail"
8888
android:layout_below="@id/app_label"

packages/SystemUI/res/layout-land/status_bar_recent_panel.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
android:stackFromBottom="true"
4242
android:fadingEdge="horizontal"
4343
android:scrollbars="none"
44-
android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
44+
android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length"
4545
android:layout_gravity="bottom|left"
4646
android:orientation="horizontal"
4747
android:clipToPadding="false"

packages/SystemUI/res/layout-port/status_bar_recent_item.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
android:layout_height="wrap_content"
3636
android:textSize="@dimen/status_bar_recents_app_label_text_size"
3737
android:fadingEdge="horizontal"
38-
android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
38+
android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length"
3939
android:scrollHorizontally="true"
4040
android:layout_alignParentLeft="true"
4141
android:layout_alignTop="@id/app_icon"
@@ -89,7 +89,7 @@
8989
android:layout_height="wrap_content"
9090
android:textSize="@dimen/status_bar_recents_app_description_text_size"
9191
android:fadingEdge="horizontal"
92-
android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
92+
android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length"
9393
android:scrollHorizontally="true"
9494
android:layout_alignParentLeft="true"
9595
android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin"

packages/SystemUI/res/layout-port/status_bar_recent_panel.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
android:stackFromBottom="true"
4141
android:fadingEdge="vertical"
4242
android:scrollbars="none"
43-
android:fadingEdgeLength="@*android:dimen/status_bar_height"
43+
android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length"
4444
android:layout_gravity="bottom|left"
4545
android:clipToPadding="false"
4646
android:clipChildren="false">

packages/SystemUI/res/layout-sw600dp/status_bar_recent_item.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
android:layout_height="wrap_content"
2929
android:textSize="@dimen/status_bar_recents_app_label_text_size"
3030
android:fadingEdge="horizontal"
31-
android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
31+
android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length"
3232
android:scrollHorizontally="true"
3333
android:layout_alignParentLeft="true"
3434
android:layout_alignParentTop="true"
@@ -86,7 +86,7 @@
8686
android:layout_height="wrap_content"
8787
android:textSize="@dimen/status_bar_recents_app_description_text_size"
8888
android:fadingEdge="horizontal"
89-
android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
89+
android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length"
9090
android:scrollHorizontally="true"
9191
android:layout_alignParentLeft="true"
9292
android:layout_below="@id/recents_callout_line"

packages/SystemUI/res/values-sw600dp/dimens.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@
5353
<dimen name="status_bar_recents_app_label_width">97dip</dimen>
5454
<!-- Left margin for application label -->
5555
<dimen name="status_bar_recents_app_label_left_margin">16dip</dimen>
56-
<!-- Size of fading edge for scroll effect -->
57-
<dimen name="status_bar_recents_fading_edge_length">20dip</dimen>
56+
<!-- Size of fading edge for text -->
57+
<dimen name="status_bar_recents_text_fading_edge_length">20dip</dimen>
58+
<!-- Size of fading edge for scrolling -->
59+
<dimen name="status_bar_recents_scroll_fading_edge_length">10dip</dimen>
5860
<!-- Margin between recents container and glow on the right -->
5961
<dimen name="status_bar_recents_right_glow_margin">100dip</dimen>
6062

packages/SystemUI/res/values/dimens.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@
3333
<dimen name="status_bar_recents_app_label_text_size">14dip</dimen>
3434
<!-- Size of application description text -->
3535
<dimen name="status_bar_recents_app_description_text_size">14dip</dimen>
36-
<!-- Size of fading edge for scroll effect -->
37-
<dimen name="status_bar_recents_fading_edge_length">20dip</dimen>
36+
<!-- Size of fading edge for text -->
37+
<dimen name="status_bar_recents_text_fading_edge_length">20dip</dimen>
38+
<!-- Size of fading edge for scrolling -->
39+
<dimen name="status_bar_recents_scroll_fading_edge_length">10dip</dimen>
3840
<!-- Margin between recents container and glow on the right -->
3941
<dimen name="status_bar_recents_right_glow_margin">100dip</dimen>
4042
<!-- Amount to offset bottom of notification peek window from top of status bar. -->

packages/SystemUI/src/com/android/systemui/recent/RecentsScrollViewPerformanceHelper.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,11 @@ public class RecentsScrollViewPerformanceHelper {
3737
public static final boolean OPTIMIZE_SW_RENDERED_RECENTS = true;
3838
public static final boolean USE_DARK_FADE_IN_HW_ACCELERATED_MODE = true;
3939
private View mScrollView;
40-
private LinearLayout mLinearLayout;
4140
private RecentsCallback mCallback;
4241

43-
private boolean mShowBackground = false;
4442
private int mFadingEdgeLength;
45-
private Drawable.ConstantState mBackgroundDrawable;
4643
private Context mContext;
4744
private boolean mIsVertical;
48-
private boolean mFirstTime = true;
4945
private boolean mSoftwareRendered = false;
5046
private boolean mAttachedToWindow = false;
5147

0 commit comments

Comments
 (0)