use of com.android.systemui.qs.QSIconView in project platform_frameworks_base by android.
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 ResurrectionRemix.
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 crdroidandroid.
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 crdroidandroid.
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 AOSPA.
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);
}
Aggregations