RelativeLayout relativeLayout = (RelativeLayout) LayoutInflater.from(mContext.get()).inflate(R.layout.widget_week_cal_item, null);
int width = getItemWidth();
int height = getPx(20);
relativeLayout.layout(0, 0, width, height);
int measuredWidth = View.MeasureSpec.makeMeasureSpec(width, View.MeasureSpec.EXACTLY);
int measuredHeight = View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.EXACTLY);
relativeLayout.measure(measuredWidth, measuredHeight);
relativeLayout.layout(0, 0, relativeLayout.getMeasuredWidth(), relativeLayout.getMeasuredHeight());
TextView tvDate = relativeLayout.findViewById(R.id.tv_date);
tvDate.setText(formatDate(calendarDayData.getDate(), "d"));
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
relativeLayout.draw(canvas);
system.img,userdata.img,ramdisk.img,recovery.img,cache.img,boot.img关系解析
Customized Android firmware
Introduction and use of Android ramdisk. IMG system. IMG userdata. img
[GUIDE][Linux/Win] How to unpack system_1.img+system_2.img+…+system_*.img | 2019