08 2020 档案
摘要:ApplicationInfo appInfo = getApplicationInfo(); int resID = getResources().getIdentifier(substring, "mipmap", appInfo.packageName);// BitmapFactory.de
阅读全文
摘要:constraintLayout.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { switch (event.getAction
阅读全文
摘要:// ConstraintLayout.LayoutParams linearParams =(ConstraintLayout.LayoutParams) imDanci.getLayoutParams(); //// 2.设置布局的高度 后面的参数就是对应xml中的 42dp 可以根据需要进行改
阅读全文
摘要:// int w = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED); // int h = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIF
阅读全文