Src :编写的源文件。
Gen:默认生成的java文件,不要修改
Android:jar文件
Assets:可以放置文件,可放置任何文◆件
Res:可以放置文件,其中的文件会□□在R.java中生成对应ID的信息
下面的drawable分别是图片大◥小文件夹,不同版本的分□□□辨率放置不同●的图片
Layout是控件位置和□□□□属性,布局文件:
Manifest package,应用程序的包▼名
AndroidManifest.xml
Application 应用程序配置,android:icon配置图标可以□□应用R.java中的资源,android:label配置标签。
1, 每个Activity都是一个类,需要集成Activity。
protected void onCreate(Bundle savedInstanceState)
2, 需要复写onCreate方法,当Activity先进次运行的☆时候会调用其□□□□方法。
3, 每个Activity都需要在manifest中进行配置
4, 在layout中的activity中设置文本的□□布局。如:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
android:id="@+id/mytext" 取得生成的ID在R.java中
扫一扫
关注k8凯发一触即发
全国咨询热线
135-9299-6491