GeoQuiz组成
-
GeoQuiz组成
- 第一版组成
QuizActivity.java
(主java文件)Question.java
(题库java)activity_quiz.xml
(主窗口布局文件)- 本APP主界面
- 最外层为FramLayout
- 然后TextView
android:clickable
——》可选值true或false 该文本框是否可点击android:id
——》此组件的id值,供调用
- 本APP主界面
strings.xml
(窗口显示的文本值)-
<string name="app_name">GeoQuiz</string>
- 可以写APP名称
- 储存问题题库
-
AndroidManifest.xml
(安卓应用的入口文件)xmlns:android
——》定义安卓命名空间,默认提供,一般不需要自己额外编写package
——》指定本应用java主程序的包名versionCode
——》给设备程序识别版本用 interger值代表app更新次数application
属性——》必须allowBackup
——》允许备份android:icon
——》图标android:lable
——》APP名android:supportsRtl
——》你的application是否愿意支持从左至右(Rtl:right to left)可选值 true或false
Activity
属性——》android:name
——》主java文件名intent—filter
——》action android:name
——》常见值android.intent.action.MAIN
意为 决定此程序是否作为程序入口category android:name
——》常见值android.intent.category.LAUNCHER
决定程序是否出现在程序列表中
-
-
https://leanote.com/note/59b1fab5c14f46597b000000