第三方包中、使用以下方式获取资源文件/控件:
int btnId = getResources().getIdentifier("button", "id",context.getPackageName());
Button btn = (Button) view.findViewById(btnId );
android 使用第三方包后图片资源混乱
最新推荐文章于 2022-11-27 13:17:50 发布
第三方包中、使用以下方式获取资源文件/控件:
int btnId = getResources().getIdentifier("button", "id",context.getPackageName());
Button btn = (Button) view.findViewById(btnId );