OSDN Git Service

statusbar: fix overlapping backgrounds when expanded
authorKhasMek <Boushh@gmail.com>
Tue, 29 Dec 2015 17:15:15 +0000 (10:15 -0700)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Sun, 9 Oct 2016 11:52:35 +0000 (04:52 -0700)
  Previous to this patch time, date, and weather all
  had double backgrounds causing a really unpleasant
  animation when pressed or long pressed. This removes
  the overlap and fixes the aesthetics.

Change-Id: If664c1892212bfaf4d53b00729f0c5613272b66c
Signed-off-by: KhasMek <Boushh@gmail.com>
packages/SystemUI/res/layout/status_bar_expanded_header.xml

index efa2735..4bb518e 100644 (file)
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_marginBottom="@dimen/clock_collapsed_bottom_margin"
-        android:background="@drawable/ripple_drawable"
         android:layout_alignParentBottom="true">
         <com.android.systemui.statusbar.policy.DateView android:id="@+id/date_collapsed"
             android:layout_width="wrap_content"
             android:layout_marginStart="16dp"
             android:singleLine="true"
             android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date"
+            android:background="@drawable/ripple_drawable"
             android:layout_below="@id/clock"
             systemui:datePattern="@string/abbrev_wday_month_day_no_year_alarm"
             />
             android:layout_marginStart="16dp"
             android:singleLine="true"
             android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date"
+            android:background="@drawable/ripple_drawable"
             android:layout_below="@id/clock"
             systemui:datePattern="eeeeMMMMd"
             />