Search in sources :

Example 6 with QSIconView

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

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)

Example 7 with QSIconView

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

the class TileAdapter method onCreateViewHolder.

@Override
public Holder onCreateViewHolder(ViewGroup parent, int viewType) {
    final Context context = parent.getContext();
    LayoutInflater inflater = LayoutInflater.from(context);
    if (viewType == TYPE_DIVIDER) {
        return new Holder(inflater.inflate(R.layout.qs_customize_tile_divider, parent, false));
    }
    if (viewType == TYPE_EDIT) {
        return new Holder(inflater.inflate(R.layout.qs_customize_divider, parent, false));
    }
    FrameLayout frame = (FrameLayout) inflater.inflate(R.layout.qs_customize_tile_frame, parent, false);
    frame.addView(new CustomizeTileView(context, new QSIconView(context)));
    return new Holder(frame);
}
Also used : Context(android.content.Context) LayoutInflater(android.view.LayoutInflater) ViewHolder(android.support.v7.widget.RecyclerView.ViewHolder) Holder(com.android.systemui.qs.customize.TileAdapter.Holder) FrameLayout(android.widget.FrameLayout) QSIconView(com.android.systemui.qs.QSIconView)

Example 8 with QSIconView

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

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)

Example 9 with QSIconView

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

the class CompassTile method createTileView.

@Override
public QSIconView createTileView(Context context) {
    QSIconView iconView = super.createTileView(context);
    mImage = (ImageView) iconView.findViewById(android.R.id.icon);
    return iconView;
}
Also used : QSIconView(com.android.systemui.qs.QSIconView)

Example 10 with QSIconView

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

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