Android疑惑录
文章平均质量分 79
咖小哩
青春是用来奋斗的
展开
-
Android那些疑惑(1)-Application中setTheme为什么不生效
Application中setTheme为什么不生效 Android开发者们都知道在AndroidManifest.xml中可以通过Application的theme标签来设置全局的theme,后续的Activity都可以继承这个主题。不过在自定义Application中通过代码动态去setTheme是不会生效的。为什么不会生效呢,我们可以通过以下来解决这个问题。Activity是怎...原创 2018-05-17 17:02:29 · 1635 阅读 · 0 评论 -
Android那些疑惑(2)-LayoutInflater中inflate方法参数的意义
LayoutInflater Instantiates a layout XML file into its corresponding objects. It is never used directly. Instead, use {@link android.app.Activity#getLayoutInflater()} or {@link Context#getSystemSe...原创 2018-06-05 16:22:21 · 590 阅读 · 1 评论