Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class AvatarView extends ImageView {
- public AvatarView(Context context) {
- super(context);
- }
- public AvatarView(Context context, AttributeSet attrs) {
- super(context, attrs);
- }
- public AvatarView(Context context, AttributeSet attrs, int defStyle) {
- super(context, attrs, defStyle);
- }
- @Override
- protected void onDraw(Canvas canvas) {
- super.onDraw(canvas);
- canvas.drawBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.battle_run_char), 0, 70, null);
- canvas.drawBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.red_cartoon_hat), 70, 0, null);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement