Activity常用方法

   setContentView(R.layout.xxx);//设置指定文件
   findViewById(R.id.xxx);获取指定控件
   getString(R.string.xxx);获取strings.xml指定key文件

原文地址:https://www.cnblogs.com/shenmi/p/6868530.html