Search in sources :

Example 11 with QSIconView

use of com.android.systemui.qs.QSIconView in project android_frameworks_base by crdroidandroid.

the class BatteryTile method createTileView.

@Override
public QSIconView createTileView(Context context) {
    QSIconView view = new QSIconView(context);
    // The BatteryMeterDrawable wants to use the clear xfermode,
    // put it on its own layer to not make it clear the background with it.
    view.getIconView().setLayerType(View.LAYER_TYPE_HARDWARE, null);
    return view;
}
Also used : QSIconView(com.android.systemui.qs.QSIconView)

Aggregations

QSIconView (com.android.systemui.qs.QSIconView)11 Context (android.content.Context)5 ViewHolder (android.support.v7.widget.RecyclerView.ViewHolder)5 LayoutInflater (android.view.LayoutInflater)5 FrameLayout (android.widget.FrameLayout)5 Holder (com.android.systemui.qs.customize.TileAdapter.Holder)5