Android:设置背景图和标题

在MainActivity.onCreate(Bundle savedInstanceState){}设置背景图和标题。

1         setTitle("wyl的diary");//标题,即左上角的
2         getWindow().setBackgroundDrawableResource(R.drawable.diarybg);//设置页面背景图
原文地址:https://www.cnblogs.com/Sunnor/p/4810721.html