一、创建工程
file——new——new project,创建工程,下一步之后选择activity,默认为main_activity,即为hello world测试程序。可以根据需要选择已经提供的一些activity类别。在创建activity时可以选择分层结构。
二、使用layout
在左边菜单中的activity中,点击选中,在中间的activity程序下方选择“text”,在右侧的preview栏中可以看到相应的app布局。如果遇到"This version of the rendering library is more recent than your version of Android Studio. "的问题,说明选择的android版本过高,可以在preview中的标签栏中选择android的版本。
”