前言:
使用Android Studio开发,SQLite数据库,dialog对话框,Intent组件交互,java动态生成组件等技术。(博客最下方有所有代码。若不想复制粘贴,可下载源码)
先展示效果图,别放弃!!
①初始课程表②右上角添加课程③填写信息④显示课程⑤长按显示详情 逻辑就是这么简单,程序亦是如此!
话不多说直接开始:
- 我们把整个程序拆分,按照增量模型完成项目(先完成基础,也是核心功能)。
- 先完成核心功能模块图一,再完成图二三四增加课程模块。
- 最后完成图五非核心功能模块。
- 测试每个模块之间衔接是否有bug。(我们希望是没有的,但时常事与愿违)
实现核心功能
- 第一步:从需求、设计入手。
- 一周有七天,一天有十节课。课程表结构的activity_main.xml框架设计大致如此。
- 分析架构:
- 最外层使用线性布局设置屏幕水平方向android:orientation=“horizontal”。
- 在内层使用八个GridLayout将屏幕分为八块。其中第一块是节课,后面的为周一至日。
关键点:因为是水平排列的,所以权重和宽度相关联。把每个GridLayout的宽度设置为0dp。除第一个GridLayout权值为0.5其余设为1。目的是让第一列占比低一些。
- 每一个GridLayout都设置为竖直方向android:orientation=“vertical”。目的是每一节课都是竖着往下排列的。
关键点:同理,因为是竖直排列的,所以权重和高度有关。把每个GridLayout的高度设置为0dp。除第一个GridLayout权值为0.25其余设为1。目的是让第一行占比低一些。
- 分析有了,上activity_main.xml代码:
点击跳转到activity_main.xml
- 发现xml并没有像图一有课程框。可以直接在activity_main.xml中依次添加,但是考虑到有7×10个EditText需要弄,还需要为每个EditText设置id(这个id之后非常关键),而且在xml写死的话对后期拓展(课程数量增加、减少、重构)很不便。所以我使用java在MainActivity中动态添加课程框。
这样我们就完成了图一。
- 第二步:有了基础架构,开始实现功能。
- 把信息填写好了,如何保存?
- 此时,需要考虑的是如何映射数据关系,即当需要添加课程,该如何定位到我选择的位置?这时候上面我们动态设置的id的作用就显示出来了。上述id是从1开始往下依次增加到36(7天×5节课)。可以通过星期几和第几节课算出对应该课程 id。
- 最后,如何把填写的课程数据渲染到图一?
我们依次解决上述问题:
我们填写完课程信息后,把信息保存在SQLite中,重新加载MainActivity并渲染数据到课程表。
- 使用SLQLite数据库保存课程信息,SQLite数据库会存放在安卓手机内(具体介绍CSDN很多就不赘述)。
在MainActivity类同级目录创建DBHelper类(建classes_db表):
- public class DBHelper extends SQLiteOpenHelper {
- public SQLiteDatabase getWritableDatabase() {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>return super.getWritableDatabase();
- }
- public DBHelper(@Nullable Context context,
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> @Nullable String name,
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> @Nullable SQLiteDatabase.CursorFactory factory,
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> int version) {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>super(context, name, factory, version);
- }
- @Override
- public void onCreate(SQLiteDatabase sqLiteDatabase) {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>sqLiteDatabase.execSQL("create table classes_db" +
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>"(c_id Integer not null primary key autoincrement," +
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>" c_name varchar(50) not null," +
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>" c_time varchar(50) not null," +
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>" c_day varchar(50) not null," +
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>" c_teacher varchar(50) not null)");
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 创建ContentValue设置参数
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>ContentValues contentValues = new ContentValues();
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//课程名字
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_name", "0");
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//第几节课
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_time", "0");
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//星期几
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_day", "0");
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//任课教师
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_teacher", "0");
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//插入id 1-36 个课程数据,以便添加课程
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>for (int i = 1; i < 37; i++) {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> contentValues.put("c_id", i);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> sqLiteDatabase.insert("classes_db", "", contentValues);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}
- }
- @Override
- public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {
- }
- }
复制代码
- 注意要在AndroidManifest.xml注册activity(不懂在哪粘贴不要紧,最后有全部代码):
这时候就有一个classes_db表,有id分别为1-36记录存放对应课程数据。(这个id对应上述EditText的id)
- 添加课程dialog对话框(图二)用于把数据存放到上述classes_db表中:
在activity_main.xml同级目录下创建activity_set.xml:
这里就不赘述基础了0.0
在MainActivity类同级目录创建DialogModal类,处理课程数据,保存在数据库,并跳回MainActivity:
- public class DialogModal extends Activity {
- Button close_activity;
- Button save_activity;
- Spinner selected_time;
- Spinner selected_day;
- EditText subject;
- EditText teacher;
- //数据库名,表名
- public final String DB_NAME = "classes_db.db";
- public final String TABLE_NAME = "classes_db";
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>super.onCreate(savedInstanceState);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>requestWindowFeature(Window.FEATURE_NO_TITLE);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>setContentView(R.layout.activity_set);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//当点击dialog之外完成此activity
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>setFinishOnTouchOutside (true);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//关闭按钮操作
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>close_activity=(Button) findViewById(R.id.close_activity);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>close_activity.setOnClickListener(new View.OnClickListener() {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> @Override
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> public void onClick(View view) {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>DialogModal.this.finish();
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>});
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//保存按钮操作
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>save_activity = findViewById(R.id.save_activity);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>save_activity.setOnClickListener(new View.OnClickListener() {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> @Override
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> public void onClick(View view) {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Intent intent = new Intent();
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>selected_day = findViewById(R.id.selected_day);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>String day = selected_day.getSelectedItem().toString();
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>if (day.equals("--请选择--")) {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> save_activity.setError("");
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> return;
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>selected_time = findViewById(R.id.selected_time);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>String time = selected_time.getSelectedItem().toString();
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>if (time.equals("--请选择--")) {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> save_activity.setError("");
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> return;
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>subject = findViewById(R.id.subject);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>String text = subject.getText().toString();
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>if ("".equals(text)) {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> save_activity.setError("");
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> return;
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>teacher = findViewById(R.id.teacher);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>String teacher = subject.getText().toString();
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>if ("".equals(teacher)) {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> save_activity.setError("");
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> return;
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//创建一个数据库对象,为了更新数据
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>DBHelper dbHelper = new DBHelper(DialogModal.this, DB_NAME, null, 1);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//把数据存在contentValues中
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>ContentValues contentValues = new ContentValues();
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//combineId()方法目的是通过星期几和第几节课算出对应该课程id
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_id", combineId(day, time));
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_name", text);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_time", time);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_day", day);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_teacher", teacher);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//更新数据库记录
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>update(dbHelper, contentValues);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//清空栈内所有activity
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>intent.setFlags(intent.FLAG_ACTIVITY_CLEAR_TASK);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//启动MainActivity
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>intent.setClass(DialogModal.this, MainActivity.class);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>startActivity(intent);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>});
- }
- public String combineId(String day, String time) {
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//星期几转换成int类型
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>int day1 = utils.getDay(day);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//如1-2节课只取1
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>int time1 = Integer.parseInt(time.substring(0, 1));
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>return String.valueOf((day1 - 1) * 5 + ((time1 - 1)/2 + 1));
- }
- public void update(DBHelper dbHelper, ContentValues contentValues){
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>String []a = {contentValues.get("c_id").toString()};
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 通过DBHelper类获取一个读写的SQLiteDatabase对象
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>SQLiteDatabase db=dbHelper.getWritableDatabase();
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 修改数据
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数1:tablename
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数2:修改的值
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数3:修改的条件(SQL where语句)
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数4:表示whereClause语句中的表达式的占位符参数列表,这些字符串会替换where条件中?
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>db.update(TABLE_NAME,contentValues,"c_id=?", a);
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 释放连接
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>db.close();
- }
- }
复制代码
现在问题又来了,如何从图一过渡到图二?
在res文件夹下创建menu文件夹,创建menu.xml:
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>
复制代码 在MainActivity类中重写onCreateOptionsMenu方法:(Intent就是为了activity跳转)
这样+号就出现了,就可以连接图一图二了!
更新MainActivity,先看onCreate方法增加的调用。
- public class MainActivity extends AppCompatActivity implements View.OnTouchListener { public final String DB_NAME = "classes_db.db"; public final String TABLE_NAME = "classes_db"; @Override protected void onCreate(Bundle savedInstanceState) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>super.onCreate(savedInstanceState);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>setContentView(R.layout.activity_main);//<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>getSupportActionBar().hide();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//拿到数据库对象,为了读取数据<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>DBHelper dbHelper = new DBHelper(MainActivity.this, DB_NAME, null, 1);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//动态渲染课程框<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>framework();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//将数据库课程渲染到课程框<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>applyDraw(dbHelper); } public void applyDraw(DBHelper dbHelper) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//从数据库拿到课程数据保存在链表<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>List classes = query(dbHelper);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>for (Classes aClass : classes) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> //第几节课<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> int i = Integer.parseInt(aClass.getC_time().charAt(0) + "");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> //星期几<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> int j = utils.getDay(aClass.getC_day());<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> //获取此课程对应TextView的id<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> TextView Class = findViewById((j - 1) * 5 + ((i - 1)/2 + 1));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> //判断如果课程星期==当前星期,如此课程信息和当前都是星期二就把背景颜色更换。<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> Date date = new Date();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEEE");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> if (aClass.getC_day().equals(simpleDateFormat.format(date).toString())) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Class.setBackgroundColor(Color.rgb(28, 217, 204));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> //课程表信息映射出来<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> Class.setText(aClass.getC_name());<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> //触碰此课程框触发<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> Class.setOnTouchListener(this);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>} } @SuppressLint("Range") public List query(DBHelper dbHelper) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>List classes = new ArrayList();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 通过DBHelper类获取一个读写的SQLiteDatabase对象<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>SQLiteDatabase db = dbHelper.getWritableDatabase();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数1:table_name<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数2:columns 要查询出来的列名。相当于 select *** from table语句中的 ***部分<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数3:selection 查询条件字句,在条件子句允许使用占位符“?”表示条件值<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数4:selectionArgs :对应于 selection参数 占位符的值<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数5:groupby 相当于 select *** from table where && group by ... 语句中 ... 的部分<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数6:having 相当于 select *** from table where && group by ...having %%% 语句中 %%% 的部分<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数7:orderBy :相当于 select ***from ?? where&& group by ...having %%% order by@@语句中的@@ 部分,如: personid desc(按person 降序)<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Cursor cursor = db.query(TABLE_NAME, null, null, null, null, null, null);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 将游标移到开头<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>cursor.moveToFirst();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>while (!cursor.isAfterLast()) { // 游标只要不是在最后一行之后,就一直循环<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> if (!cursor.getString(cursor.getColumnIndex("c_day")).equals("0")) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Classes Class = new Classes();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Class.setC_id(Integer.parseInt(cursor.getString(cursor.getColumnIndex("c_id"))));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Class.setC_name(cursor.getString(cursor.getColumnIndex("c_name")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Class.setC_time(cursor.getString(cursor.getColumnIndex("c_time")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Class.setC_day(cursor.getString(cursor.getColumnIndex("c_day")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>classes.add(Class);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> // 将游标移到下一行<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> cursor.moveToNext();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>db.close();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>return classes; } @Override public boolean onCreateOptionsMenu(Menu menu) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>getMenuInflater().inflate(R.menu.menu, menu);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>MenuItem menuItem=menu.findItem(R.id.action_menu);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>menuItem.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> @Override<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> public boolean onMenuItemClick(MenuItem menuItem) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Intent intent = new Intent();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>intent.setClass(MainActivity.this, DialogModal.class);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>startActivity(intent);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>return true;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>});<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>return super.onCreateOptionsMenu(menu); }}
复制代码 至此,核心功能就完成了!
实现非功能需求
在MainActivity类中重写此方法(注意我们已经在applyDraw方法最后一行中注册了课程框的onTouch监听):
- @SuppressLint("Range") @Override public boolean onTouch(View view, MotionEvent motionEvent) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>switch (motionEvent.getAction()){<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> case MotionEvent.ACTION_DOWN: {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>TextView textView = (TextView) view;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>DBHelper dbHelper = new DBHelper(MainActivity.this, DB_NAME, null, 1);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>SQLiteDatabase db = dbHelper.getWritableDatabase();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数1:table_name<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数2:columns 要查询出来的列名。相当于 select *** from table语句中的 ***部分<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数3:selection 查询条件字句,在条件子句允许使用占位符“?”表示条件值<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数4:selectionArgs :对应于 selection参数 占位符的值<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数5:groupby 相当于 select *** from table where && group by ... 语句中 ... 的部分<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数6:having 相当于 select *** from table where && group by ...having %%% 语句中 %%% 的部分<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数7:orderBy :相当于 select ***from ?? where&& group by ...having %%% order by@@语句中的@@ 部分,如: personid desc(按person 降序)//<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Cursor cursor = db.query(TABLE_NAME, null, "c_id=?", new String[]{String.valueOf(textView.getId())}, null, null, null);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Cursor cursor = db.query(TABLE_NAME, null, "c_id=?", new String[]{String.valueOf(textView.getId())}, null, null, null);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 将游标移到开头<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>cursor.moveToFirst();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>if (!cursor.isAfterLast()) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> Classes Class = new Classes();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> System.out.println(textView.getId());<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> System.out.println(cursor.getString(cursor.getColumnIndex("c_name")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> Intent intent = new Intent();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> intent.putExtra("name", cursor.getString(cursor.getColumnIndex("c_name")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> intent.putExtra("time", cursor.getString(cursor.getColumnIndex("c_time")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> intent.putExtra("day", cursor.getString(cursor.getColumnIndex("c_day")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> intent.putExtra("teacher", cursor.getString(cursor.getColumnIndex("c_teacher")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> intent.setClass(MainActivity.this, Detail.class);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> startActivity(intent);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> return true;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> case MotionEvent.ACTION_UP:<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> case MotionEvent.ACTION_CANCEL: {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Intent intent = new Intent(this, MainActivity.class);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>startActivity(intent);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>break;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>return false; }
复制代码 上所有代码:
根据项目结构从上到下排序
Classes类:
DBHelper类:
- public class DBHelper extends SQLiteOpenHelper { public SQLiteDatabase getWritableDatabase() {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>return super.getWritableDatabase(); } public DBHelper(@Nullable Context context,<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> @Nullable String name,<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> @Nullable SQLiteDatabase.CursorFactory factory,<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> int version) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>super(context, name, factory, version); } @Override public void onCreate(SQLiteDatabase sqLiteDatabase) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>sqLiteDatabase.execSQL("create table classes_db" +<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>"(c_id Integer not null primary key autoincrement," +<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>" c_name varchar(50) not null," +<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>" c_time varchar(50) not null," +<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>" c_day varchar(50) not null," +<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>" c_teacher varchar(50) not null)");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 创建ContentValue设置参数<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>ContentValues contentValues = new ContentValues();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//课程名字<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_name", "0");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//第几节课<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_time", "0");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//星期几<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_day", "0");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//任课教师<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_teacher", "0");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//插入id 1-36 个课程数据,以便添加课程<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>for (int i = 1; i < 37; i++) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> contentValues.put("c_id", i);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> sqLiteDatabase.insert("classes_db", "", contentValues);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>} } @Override public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) { }}
复制代码 Detail类:
DialogModal类:
- public class DialogModal extends Activity { Button close_activity; Button save_activity; Spinner selected_time; Spinner selected_day; EditText subject; EditText teacher; //数据库名,表名 public final String DB_NAME = "classes_db.db"; public final String TABLE_NAME = "classes_db"; @Override protected void onCreate(Bundle savedInstanceState) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>super.onCreate(savedInstanceState);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>requestWindowFeature(Window.FEATURE_NO_TITLE);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>setContentView(R.layout.activity_set);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//当点击dialog之外完成此activity<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>setFinishOnTouchOutside (true);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//关闭按钮操作<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>close_activity=(Button) findViewById(R.id.close_activity);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>close_activity.setOnClickListener(new View.OnClickListener() {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> @Override<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> public void onClick(View view) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>DialogModal.this.finish();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>});<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//保存按钮操作<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>save_activity = findViewById(R.id.save_activity);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>save_activity.setOnClickListener(new View.OnClickListener() {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> @Override<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> public void onClick(View view) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Intent intent = new Intent();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>selected_day = findViewById(R.id.selected_day);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>String day = selected_day.getSelectedItem().toString();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>if (day.equals("--请选择--")) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> save_activity.setError("");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> return;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>selected_time = findViewById(R.id.selected_time);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>String time = selected_time.getSelectedItem().toString();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>if (time.equals("--请选择--")) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> save_activity.setError("");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> return;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>subject = findViewById(R.id.subject);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>String text = subject.getText().toString();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>if ("".equals(text)) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> save_activity.setError("");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> return;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>teacher = findViewById(R.id.teacher);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>String teacher = subject.getText().toString();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>if ("".equals(teacher)) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> save_activity.setError("");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> return;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//创建一个数据库对象<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>DBHelper dbHelper = new DBHelper(DialogModal.this, DB_NAME, null, 1);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//把数据存在contentValues中<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>ContentValues contentValues = new ContentValues();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//combineId()方法目的是通过星期几和第几节课算出对应该课程id<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_id", combineId(day, time));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_name", text);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_time", time);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_day", day);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>contentValues.put("c_teacher", teacher);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//更新数据库记录<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>update(dbHelper, contentValues);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//清空栈内所有activity<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>intent.setFlags(intent.FLAG_ACTIVITY_CLEAR_TASK);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//启动MainActivity<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>intent.setClass(DialogModal.this, MainActivity.class);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>startActivity(intent);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}); } public String combineId(String day, String time) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//星期几转换成int类型<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>int day1 = utils.getDay(day);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//如1-2节课只取1<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>int time1 = Integer.parseInt(time.substring(0, 1));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>return String.valueOf((day1 - 1) * 5 + ((time1 - 1)/2 + 1)); } public void update(DBHelper dbHelper, ContentValues contentValues){<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>String []a = {contentValues.get("c_id").toString()};<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 通过DBHelper类获取一个读写的SQLiteDatabase对象<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>SQLiteDatabase db=dbHelper.getWritableDatabase();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 修改数据<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数1:tablename<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数2:修改的值<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数3:修改的条件(SQL where语句)<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数4:表示whereClause语句中的表达式的占位符参数列表,这些字符串会替换where条件中?<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>db.update(TABLE_NAME,contentValues,"c_id=?", a);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 释放连接<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>db.close(); }}
复制代码 MainActivity类:
- public class MainActivity extends AppCompatActivity implements View.OnTouchListener { public final String DB_NAME = "classes_db.db"; public final String TABLE_NAME = "classes_db"; @Override protected void onCreate(Bundle savedInstanceState) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>super.onCreate(savedInstanceState);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>setContentView(R.layout.activity_main);//<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>getSupportActionBar().hide();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//拿到数据库对象,为了读取数据<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>DBHelper dbHelper = new DBHelper(MainActivity.this, DB_NAME, null, 1);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//动态渲染课程框<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>framework();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//将数据库课程渲染到课程框<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>applyDraw(dbHelper); } public GridLayout LayoutColumn(int i) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>GridLayout gridLayout = findViewById(R.id.d1);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>switch (i) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> case 1: {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>gridLayout = findViewById(R.id.d1);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>break;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> case 2: {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>gridLayout = findViewById(R.id.d2);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>break;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> case 3: {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>gridLayout = findViewById(R.id.d3);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>break;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> case 4: {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>gridLayout = findViewById(R.id.d4);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>break;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> case 5: {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>gridLayout = findViewById(R.id.d5);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>break;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> case 6: {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>gridLayout = findViewById(R.id.d6);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>break;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> case 7: {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>gridLayout = findViewById(R.id.d7);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>break;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>return gridLayout; } public void framework() {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>GridLayout gridLayout;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>int id = 1;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>for (int i = 1; i < 8; i++) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> gridLayout = LayoutColumn(i);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> for (int j = 1; j < 10; j +=2) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>TextView textView1 = new TextView(this);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>textView1.setId(id++);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>textView1.setText("");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>textView1.setMaxLines(5);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>textView1.setEllipsize(TextUtils.TruncateAt.END);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>textView1.setBackgroundColor(Color.parseColor("#F0FFFF"));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>textView1.setGravity(Gravity.CENTER);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>GridLayout.LayoutParams params1 = new GridLayout.LayoutParams();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>params1.rowSpec = GridLayout.spec( j, 2,1);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>params1.setMargins(5,10,5,10);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>params1.width = GridLayout.LayoutParams.MATCH_PARENT;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>params1.height = 0;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>gridLayout.addView(textView1, params1);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>} } public void applyDraw(DBHelper dbHelper) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>//从数据库拿到课程数据保存在链表<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>List classes = query(dbHelper);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>for (Classes aClass : classes) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> //第几节课<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> int i = Integer.parseInt(aClass.getC_time().charAt(0) + "");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> //星期几<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> int j = utils.getDay(aClass.getC_day());<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> //获取此课程对应TextView的id<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> TextView Class = findViewById((j - 1) * 5 + ((i - 1)/2 + 1));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> //判断如果课程星期==当前星期,如此课程信息和当前都是星期二就把背景颜色更换。<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> Date date = new Date();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEEE");<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> if (aClass.getC_day().equals(simpleDateFormat.format(date).toString())) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Class.setBackgroundColor(Color.rgb(28, 217, 204));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> //课程表信息映射出来<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> Class.setText(aClass.getC_name());<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> //触碰此课程框触发<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> Class.setOnTouchListener(this);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>} } @SuppressLint("Range") public List query(DBHelper dbHelper) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>List classes = new ArrayList();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 通过DBHelper类获取一个读写的SQLiteDatabase对象<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>SQLiteDatabase db = dbHelper.getWritableDatabase();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数1:table_name<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数2:columns 要查询出来的列名。相当于 select *** from table语句中的 ***部分<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数3:selection 查询条件字句,在条件子句允许使用占位符“?”表示条件值<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数4:selectionArgs :对应于 selection参数 占位符的值<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数5:groupby 相当于 select *** from table where && group by ... 语句中 ... 的部分<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数6:having 相当于 select *** from table where && group by ...having %%% 语句中 %%% 的部分<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数7:orderBy :相当于 select ***from ?? where&& group by ...having %%% order by@@语句中的@@ 部分,如: personid desc(按person 降序)<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Cursor cursor = db.query(TABLE_NAME, null, null, null, null, null, null);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 将游标移到开头<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>cursor.moveToFirst();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>while (!cursor.isAfterLast()) { // 游标只要不是在最后一行之后,就一直循环<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> if (!cursor.getString(cursor.getColumnIndex("c_day")).equals("0")) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Classes Class = new Classes();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Class.setC_id(Integer.parseInt(cursor.getString(cursor.getColumnIndex("c_id"))));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Class.setC_name(cursor.getString(cursor.getColumnIndex("c_name")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Class.setC_time(cursor.getString(cursor.getColumnIndex("c_time")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Class.setC_day(cursor.getString(cursor.getColumnIndex("c_day")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>classes.add(Class);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> // 将游标移到下一行<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> cursor.moveToNext();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>db.close();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>return classes; } @Override public boolean onCreateOptionsMenu(Menu menu) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>getMenuInflater().inflate(R.menu.menu, menu);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>MenuItem menuItem=menu.findItem(R.id.action_menu);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>menuItem.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> @Override<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> public boolean onMenuItemClick(MenuItem menuItem) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Intent intent = new Intent();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>intent.setClass(MainActivity.this, DialogModal.class);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>startActivity(intent);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>return true;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>});<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>return super.onCreateOptionsMenu(menu); } @SuppressLint("Range") @Override public boolean onTouch(View view, MotionEvent motionEvent) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>switch (motionEvent.getAction()){<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> case MotionEvent.ACTION_DOWN: {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>TextView textView = (TextView) view;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>DBHelper dbHelper = new DBHelper(MainActivity.this, DB_NAME, null, 1);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>SQLiteDatabase db = dbHelper.getWritableDatabase();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数1:table_name<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数2:columns 要查询出来的列名。相当于 select *** from table语句中的 ***部分<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数3:selection 查询条件字句,在条件子句允许使用占位符“?”表示条件值<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数4:selectionArgs :对应于 selection参数 占位符的值<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数5:groupby 相当于 select *** from table where && group by ... 语句中 ... 的部分<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数6:having 相当于 select *** from table where && group by ...having %%% 语句中 %%% 的部分<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 参数7:orderBy :相当于 select ***from ?? where&& group by ...having %%% order by@@语句中的@@ 部分,如: personid desc(按person 降序)//<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Cursor cursor = db.query(TABLE_NAME, null, "c_id=?", new String[]{String.valueOf(textView.getId())}, null, null, null);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Cursor cursor = db.query(TABLE_NAME, null, "c_id=?", new String[]{String.valueOf(textView.getId())}, null, null, null);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>// 将游标移到开头<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>cursor.moveToFirst();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>if (!cursor.isAfterLast()) {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> Classes Class = new Classes();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> System.out.println(textView.getId());<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> System.out.println(cursor.getString(cursor.getColumnIndex("c_name")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> Intent intent = new Intent();<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> intent.putExtra("name", cursor.getString(cursor.getColumnIndex("c_name")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> intent.putExtra("time", cursor.getString(cursor.getColumnIndex("c_time")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> intent.putExtra("day", cursor.getString(cursor.getColumnIndex("c_day")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> intent.putExtra("teacher", cursor.getString(cursor.getColumnIndex("c_teacher")));<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> intent.setClass(MainActivity.this, Detail.class);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> startActivity(intent);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> return true;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> case MotionEvent.ACTION_UP:<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> case MotionEvent.ACTION_CANCEL: {<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>Intent intent = new Intent(this, MainActivity.class);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>startActivity(intent);<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu><menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>break;<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu> }<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>}<menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>return false; }}
复制代码 utils类:
activity_main.xml:
返回
activity_press.xml
activity_set.xml
menu.xml
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:id="@+id/action_menu"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:title="添加课程"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>android:icon="@android:drawable/ic_input_add"
- <menu
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_menu"
- android:title="添加课程"
- android:icon="@android:drawable/ic_input_add"
- app:showAsAction="ifRoom">
- </item>
- </menu>app:showAsAction="ifRoom">
- </item>
- </menu>
复制代码 strings.xml:
styles.xml
AndroidManifest.xml
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作! |