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;
}
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);
}
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;
}
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;
}
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;
}
Aggregations