• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 package com.android.server.status;
3 
4 import android.content.Context;
5 import android.util.AttributeSet;
6 import android.widget.TextSwitcher;
7 
8 
9 public class TickerView extends TextSwitcher
10 {
11     Ticker mTicker;
12 
TickerView(Context context, AttributeSet attrs)13     public TickerView(Context context, AttributeSet attrs) {
14         super(context, attrs);
15     }
16 
17     @Override
onSizeChanged(int w, int h, int oldw, int oldh)18     protected void onSizeChanged(int w, int h, int oldw, int oldh) {
19         super.onSizeChanged(w, h, oldw, oldh);
20         mTicker.reflowText();
21     }
22 }
23 
24