Loading packages/SystemUI/res/layout-xlarge/ticker_compat.xml +7 −1 Original line number Diff line number Diff line Loading @@ -20,9 +20,15 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" android:background="#ff000000" android:background="#ff1d1d1d" > <ImageView android:id="@+id/icon" android:layout_width="64dp" android:layout_height="match_parent" android:scaleType="center" /> <TextView android:id="@+id/text" android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker" android:layout_width="match_parent" Loading packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletTicker.java +9 −2 Original line number Diff line number Diff line Loading @@ -16,9 +16,12 @@ package com.android.systemui.statusbar.tablet; import java.util.Arrays; import android.app.Notification; import android.content.Context; import android.graphics.Bitmap; import android.graphics.drawable.Drawable; import android.os.Handler; import android.os.Message; import android.util.Slog; Loading @@ -31,11 +34,11 @@ import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.android.internal.statusbar.StatusBarIcon; import com.android.internal.statusbar.StatusBarNotification; import com.android.systemui.R; import java.util.Arrays; import com.android.systemui.statusbar.StatusBarIconView; public class TabletTicker extends Handler { private static final String TAG = "StatusBar.TabletTicker"; Loading Loading @@ -167,6 +170,10 @@ public class TabletTicker extends Handler { group.addView(expanded, lp); } else if (n.tickerText != null) { group = (ViewGroup)inflater.inflate(R.layout.ticker_compat, mParent, false); final Drawable icon = StatusBarIconView.getIcon(mContext, new StatusBarIcon(notification.pkg, n.icon, n.iconLevel, 0)); ImageView iv = (ImageView)group.findViewById(R.id.icon); iv.setImageDrawable(icon); TextView tv = (TextView)group.findViewById(R.id.text); tv.setText(n.tickerText); } else { Loading Loading
packages/SystemUI/res/layout-xlarge/ticker_compat.xml +7 −1 Original line number Diff line number Diff line Loading @@ -20,9 +20,15 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" android:background="#ff000000" android:background="#ff1d1d1d" > <ImageView android:id="@+id/icon" android:layout_width="64dp" android:layout_height="match_parent" android:scaleType="center" /> <TextView android:id="@+id/text" android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker" android:layout_width="match_parent" Loading
packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletTicker.java +9 −2 Original line number Diff line number Diff line Loading @@ -16,9 +16,12 @@ package com.android.systemui.statusbar.tablet; import java.util.Arrays; import android.app.Notification; import android.content.Context; import android.graphics.Bitmap; import android.graphics.drawable.Drawable; import android.os.Handler; import android.os.Message; import android.util.Slog; Loading @@ -31,11 +34,11 @@ import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.android.internal.statusbar.StatusBarIcon; import com.android.internal.statusbar.StatusBarNotification; import com.android.systemui.R; import java.util.Arrays; import com.android.systemui.statusbar.StatusBarIconView; public class TabletTicker extends Handler { private static final String TAG = "StatusBar.TabletTicker"; Loading Loading @@ -167,6 +170,10 @@ public class TabletTicker extends Handler { group.addView(expanded, lp); } else if (n.tickerText != null) { group = (ViewGroup)inflater.inflate(R.layout.ticker_compat, mParent, false); final Drawable icon = StatusBarIconView.getIcon(mContext, new StatusBarIcon(notification.pkg, n.icon, n.iconLevel, 0)); ImageView iv = (ImageView)group.findViewById(R.id.icon); iv.setImageDrawable(icon); TextView tv = (TextView)group.findViewById(R.id.text); tv.setText(n.tickerText); } else { Loading