Android基础——项目的目录结构
来源:互联网 发布:淘宝卖家恶意不发货 编辑:程序博客网 时间:2024/06/01 09:57
<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">一个简单的项目目录</span>
assets是资产目录,存放一个文件的,这些文件会被打包到应用程序的 apk(安装包)
bin目录是编译程序,把编译的结果放到该目录下
gen自动生成的目录
project.properties 代表编译的版本
libs支持的jar包
res 资源目录
drawable 存放应用程序的图标 会自动生成一个id 在R文件里
apk存放在工程目录的bin文件夹中
修改编译环境
方法一:
方法二:(常用的方法)
res文件
清单文件说明:
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mc.helloword"包名 android:versionCode="1" android:versionName="1.0" >版本号 <uses-sdk android:minSdkVersion="8"指定最低兼容版本 android:targetSdkVersion="17" />指定最高兼容版本 <application<span style="white-space:pre"></span>应用节点 android:allowBackup="true" android:icon="@drawable/ic_launcher"应用的图标指定 <span style="white-space:pre"></span><span style="color:#ff0000;">访问R文件中的@drawable/ic_launcher</span> android:label="@string/app_name"应用的名称 android:theme="@style/AppTheme" > <activity android:name="com.mc.helloword.MainActivity" android:label="@string/app_name" > <intent-filter>在桌面上产生图标 <action android:name="android.intent.action.MAIN" /> 程序的入口 <category android:name="android.intent.category.LAUNCHER" /> 程序启动 </intent-filter> </activity> </application>
0 0
- Android基础——项目的目录结构
- android学习——android项目的的目录结构
- android学习——android项目的的目录结构
- Android基础之Android项目目录结构
- Android学习——HelloWorld项目的目录结构
- Android项目的目录结构
- Android项目的目录结构
- Android项目的目录结构
- Android项目的目录结构
- Android项目的目录结构
- Android项目的目录结构
- android项目的目录结构
- Android项目的目录结构
- Android项目的目录结构
- Android项目的目录结构
- Android 项目的目录结构
- Android项目的目录结构
- Android项目的目录结构
- OC-集合对象NSSet基本使用和方法介绍
- (算计设计技巧与分析)Permutations2
- MFC加载图片 使用CImage类
- 关于统计语言模型N-gram的理解及sirlm的使用
- Support for specifying both a day-of-week AND a day-of-month parameter is not implemented
- Android基础——项目的目录结构
- J版的Openstack的DVR搭建流程(RDO)
- sql servser按条件分类统计
- 黑马程序员——Java基础 GUI
- Ubuntu下NS3安装步骤
- 题目1056:最大公约数
- UITableViewCell的选中时的颜色设置
- Android Layout Tricks #3: Optimize with stubs
- BP 算法的一种直观的解释