ContextThemeWrapper contextThcemeWrapper = new ContextThemeWrapper(getContext(),R.style.menu); TextView textView = new TextView(contextThcemeWrapper); //修改 contextThcemeWrapper.setTheme(R.style.test1);
代码设置style
最新推荐文章于 2022-08-19 15:14:39 发布
ContextThemeWrapper contextThcemeWrapper = new ContextThemeWrapper(getContext(),R.style.menu); TextView textView = new TextView(contextThcemeWrapper); //修改 contextThcemeWrapper.setTheme(R.style.test1);