新增了图书馆类,正在逐步完善。

This commit is contained in:
qinjiaming_branch 2016-08-19 18:49:16 +08:00
parent b2a42a4873
commit 2e6fdc68eb
51 changed files with 311 additions and 191 deletions

View File

@ -3,8 +3,8 @@
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

View File

@ -110,100 +110,101 @@ public final class R {
public static final int welcome_background=0x7f020051;
}
public static final class id {
public static final int action_settings=0x7f0900a0;
public static final int btn_about=0x7f090042;
public static final int btn_add_good=0x7f09006b;
public static final int btn_add_news=0x7f09006c;
public static final int btn_add_shop=0x7f09006a;
public static final int btn_buy_good=0x7f090079;
public static final int btn_commit=0x7f09009f;
public static final int btn_contact=0x7f090043;
public static final int btn_dlg_ok=0x7f090075;
public static final int action_settings=0x7f0900a1;
public static final int btn_about=0x7f090043;
public static final int btn_add_good=0x7f09006c;
public static final int btn_add_news=0x7f09006d;
public static final int btn_add_shop=0x7f09006b;
public static final int btn_buy_good=0x7f09007a;
public static final int btn_commit=0x7f0900a0;
public static final int btn_contact=0x7f090044;
public static final int btn_dlg_ok=0x7f090076;
public static final int btn_feedback_submit=0x7f090011;
public static final int btn_hide_ads=0x7f090018;
public static final int btn_login=0x7f090021;
public static final int btn_look_goods=0x7f090068;
public static final int btn_look_news=0x7f090069;
public static final int btn_look_shops=0x7f090067;
public static final int btn_look_users=0x7f090066;
public static final int btn_order_count_less=0x7f09004b;
public static final int btn_order_count_more=0x7f09004d;
public static final int btn_order_submit=0x7f090052;
public static final int btn_qq=0x7f090025;
public static final int btn_reg_now=0x7f09005b;
public static final int btn_register=0x7f090024;
public static final int btn_set_time=0x7f09004f;
public static final int btn_share=0x7f090044;
public static final int cancel=0x7f0900a2;
public static final int cb_rem_psd=0x7f090023;
public static final int datepicker=0x7f090073;
public static final int btn_login=0x7f090022;
public static final int btn_look_goods=0x7f090069;
public static final int btn_look_news=0x7f09006a;
public static final int btn_look_shops=0x7f090068;
public static final int btn_look_users=0x7f090067;
public static final int btn_order_count_less=0x7f09004c;
public static final int btn_order_count_more=0x7f09004e;
public static final int btn_order_submit=0x7f090053;
public static final int btn_qq=0x7f090026;
public static final int btn_reg_now=0x7f09005c;
public static final int btn_register=0x7f090025;
public static final int btn_set_time=0x7f090050;
public static final int btn_share=0x7f090045;
public static final int cancel=0x7f0900a3;
public static final int cb_rem_psd=0x7f090024;
public static final int datepicker=0x7f090074;
public static final int et_award_new=0x7f090002;
public static final int et_award_old=0x7f090003;
public static final int et_comfirm_psd=0x7f090056;
public static final int et_commit=0x7f09009e;
public static final int et_comfirm_psd=0x7f090057;
public static final int et_commit=0x7f09009f;
public static final int et_feedback_content=0x7f090010;
public static final int et_mineinfo_cademy=0x7f090036;
public static final int et_mineinfo_dornum=0x7f090038;
public static final int et_mineinfo_dorpart=0x7f090037;
public static final int et_mineinfo_phone=0x7f090039;
public static final int et_mineinfo_qq=0x7f09003a;
public static final int et_mineinfo_school=0x7f090035;
public static final int et_mineinfo_username=0x7f090034;
public static final int et_order_phone=0x7f090050;
public static final int et_order_words=0x7f090051;
public static final int et_password=0x7f09001f;
public static final int et_phone=0x7f090059;
public static final int et_username=0x7f09001c;
public static final int et_mineinfo_cademy=0x7f090037;
public static final int et_mineinfo_dornum=0x7f090039;
public static final int et_mineinfo_dorpart=0x7f090038;
public static final int et_mineinfo_phone=0x7f09003a;
public static final int et_mineinfo_qq=0x7f09003b;
public static final int et_mineinfo_school=0x7f090036;
public static final int et_mineinfo_username=0x7f090035;
public static final int et_order_phone=0x7f090051;
public static final int et_order_words=0x7f090052;
public static final int et_password=0x7f090020;
public static final int et_phone=0x7f09005a;
public static final int et_username=0x7f09001d;
public static final int fl_image_ads=0x7f090016;
public static final int gv_classroom=0x7f09000f;
public static final int gv_food_class=0x7f09005e;
public static final int gv_gift_class=0x7f09005d;
public static final int gv_out_class=0x7f09005f;
public static final int gv_school_class=0x7f09005c;
public static final int header_shop_all=0x7f090060;
public static final int imageview=0x7f090092;
public static final int img_call=0x7f090099;
public static final int img_chooseImage=0x7f090091;
public static final int gv_food_class=0x7f09005f;
public static final int gv_gift_class=0x7f09005e;
public static final int gv_library=0x7f09001a;
public static final int gv_out_class=0x7f090060;
public static final int gv_school_class=0x7f09005d;
public static final int header_shop_all=0x7f090061;
public static final int imageview=0x7f090093;
public static final int img_call=0x7f09009a;
public static final int img_chooseImage=0x7f090092;
public static final int img_date=0x7f090013;
public static final int img_item=0x7f090081;
public static final int img_search=0x7f09007e;
public static final int img_shop=0x7f09008a;
public static final int img_item=0x7f090082;
public static final int img_search=0x7f09007f;
public static final int img_shop=0x7f09008b;
public static final int img_welcome=0x7f090001;
public static final int listScrollView=0x7f090012;
public static final int ll_commit_parent_view=0x7f09009d;
public static final int ll_commit_son_view=0x7f090070;
public static final int ll_row1=0x7f09001a;
public static final int ll_row2=0x7f09001d;
public static final int ll_row3=0x7f090020;
public static final int ll_row4=0x7f090057;
public static final int ll_row6=0x7f09005a;
public static final int ll_commit_parent_view=0x7f09009e;
public static final int ll_commit_son_view=0x7f090071;
public static final int ll_row1=0x7f09001b;
public static final int ll_row2=0x7f09001e;
public static final int ll_row3=0x7f090021;
public static final int ll_row4=0x7f090058;
public static final int ll_row6=0x7f09005b;
public static final int lv_bxt_news=0x7f090004;
public static final int lv_goods_list=0x7f090094;
public static final int lv_mine_about=0x7f09002c;
public static final int lv_mine_order=0x7f09002b;
public static final int lv_mine_soft=0x7f090064;
public static final int lv_mine_user=0x7f09002a;
public static final int lv_goods_list=0x7f090095;
public static final int lv_mine_about=0x7f09002d;
public static final int lv_mine_order=0x7f09002c;
public static final int lv_mine_soft=0x7f090065;
public static final int lv_mine_user=0x7f09002b;
public static final int lv_news=0x7f090019;
public static final int lv_order_info=0x7f090053;
public static final int lv_shop_all=0x7f090061;
public static final int modify=0x7f0900a1;
public static final int new_login_btn=0x7f090026;
public static final int pagertab=0x7f090063;
public static final int ratingBar1=0x7f090096;
public static final int rb_rate=0x7f090090;
public static final int relaGrid=0x7f09007a;
public static final int rl_last=0x7f090022;
public static final int rl_splash=0x7f090065;
public static final int lv_order_info=0x7f090054;
public static final int lv_shop_all=0x7f090062;
public static final int modify=0x7f0900a2;
public static final int new_login_btn=0x7f090027;
public static final int pagertab=0x7f090064;
public static final int ratingBar1=0x7f090097;
public static final int rb_rate=0x7f090091;
public static final int relaGrid=0x7f09007b;
public static final int rl_last=0x7f090023;
public static final int rl_splash=0x7f090066;
public static final int rl_welcome=0x7f090000;
public static final int sp_bxt_header=0x7f09007c;
public static final int textView1=0x7f09007f;
public static final int textview=0x7f090093;
public static final int timepicker=0x7f090074;
public static final int tp_dlg_time=0x7f090076;
public static final int tv_bowl=0x7f09003c;
public static final int sp_bxt_header=0x7f09007d;
public static final int textView1=0x7f090080;
public static final int textview=0x7f090094;
public static final int timepicker=0x7f090075;
public static final int tp_dlg_time=0x7f090077;
public static final int tv_bowl=0x7f09003d;
public static final int tv_bxt_news_holder1=0x7f09000a;
public static final int tv_bxt_news_holder2=0x7f09000b;
public static final int tv_bxt_news_item_title=0x7f09006f;
public static final int tv_bxt_news_item_title=0x7f090070;
public static final int tv_bxt_news_loc=0x7f090009;
public static final int tv_bxt_news_point=0x7f09000c;
public static final int tv_bxt_news_speaker=0x7f090007;
@ -211,67 +212,67 @@ public final class R {
public static final int tv_bxt_news_time=0x7f090008;
public static final int tv_bxt_news_title=0x7f090005;
public static final int tv_bxt_news_topic=0x7f090006;
public static final int tv_cademy=0x7f09003f;
public static final int tv_chooseText=0x7f09007b;
public static final int tv_comfirm_psd=0x7f090055;
public static final int tv_commit_content=0x7f090072;
public static final int tv_commit_title=0x7f09009c;
public static final int tv_commit_user=0x7f090071;
public static final int tv_cademy=0x7f090040;
public static final int tv_chooseText=0x7f09007c;
public static final int tv_comfirm_psd=0x7f090056;
public static final int tv_commit_content=0x7f090073;
public static final int tv_commit_title=0x7f09009d;
public static final int tv_commit_user=0x7f090072;
public static final int tv_day=0x7f090015;
public static final int tv_dorNum=0x7f090041;
public static final int tv_dorPart=0x7f090040;
public static final int tv_edit=0x7f09007d;
public static final int tv_good_name=0x7f090077;
public static final int tv_good_price=0x7f090078;
public static final int tv_item_content=0x7f090083;
public static final int tv_item_name=0x7f090082;
public static final int tv_me=0x7f09003b;
public static final int tv_mineinfo_cademy=0x7f09002f;
public static final int tv_mineinfo_dornum=0x7f090031;
public static final int tv_mineinfo_dorpart=0x7f090030;
public static final int tv_mineinfo_phone=0x7f090032;
public static final int tv_mineinfo_qq=0x7f090033;
public static final int tv_mineinfo_school=0x7f09002e;
public static final int tv_mineinfo_username=0x7f09002d;
public static final int tv_news_author=0x7f090046;
public static final int tv_news_content=0x7f090048;
public static final int tv_news_date=0x7f090085;
public static final int tv_news_time=0x7f090047;
public static final int tv_news_title=0x7f090045;
public static final int tv_news_type=0x7f090084;
public static final int tv_order_count=0x7f09004c;
public static final int tv_order_good=0x7f09004a;
public static final int tv_order_info_good_name=0x7f090086;
public static final int tv_order_info_price=0x7f090088;
public static final int tv_order_info_shop_name=0x7f090087;
public static final int tv_order_info_state=0x7f090089;
public static final int tv_order_shop=0x7f090049;
public static final int tv_order_time=0x7f09004e;
public static final int tv_password=0x7f09001e;
public static final int tv_phone=0x7f090058;
public static final int tv_reg_title=0x7f090054;
public static final int tv_res=0x7f09006e;
public static final int tv_room=0x7f090080;
public static final int tv_school=0x7f09003e;
public static final int tv_shop_discount=0x7f09008d;
public static final int tv_shop_introduce=0x7f09009a;
public static final int tv_shop_loc=0x7f09008f;
public static final int tv_shop_location=0x7f090097;
public static final int tv_shop_name=0x7f09008b;
public static final int tv_shop_paper=0x7f09008c;
public static final int tv_shop_phone=0x7f090098;
public static final int tv_shop_promotion=0x7f09009b;
public static final int tv_shop_title=0x7f090095;
public static final int tv_shop_type=0x7f09008e;
public static final int tv_title=0x7f09006d;
public static final int tv_username=0x7f09001b;
public static final int tv_dorNum=0x7f090042;
public static final int tv_dorPart=0x7f090041;
public static final int tv_edit=0x7f09007e;
public static final int tv_good_name=0x7f090078;
public static final int tv_good_price=0x7f090079;
public static final int tv_item_content=0x7f090084;
public static final int tv_item_name=0x7f090083;
public static final int tv_me=0x7f09003c;
public static final int tv_mineinfo_cademy=0x7f090030;
public static final int tv_mineinfo_dornum=0x7f090032;
public static final int tv_mineinfo_dorpart=0x7f090031;
public static final int tv_mineinfo_phone=0x7f090033;
public static final int tv_mineinfo_qq=0x7f090034;
public static final int tv_mineinfo_school=0x7f09002f;
public static final int tv_mineinfo_username=0x7f09002e;
public static final int tv_news_author=0x7f090047;
public static final int tv_news_content=0x7f090049;
public static final int tv_news_date=0x7f090086;
public static final int tv_news_time=0x7f090048;
public static final int tv_news_title=0x7f090046;
public static final int tv_news_type=0x7f090085;
public static final int tv_order_count=0x7f09004d;
public static final int tv_order_good=0x7f09004b;
public static final int tv_order_info_good_name=0x7f090087;
public static final int tv_order_info_price=0x7f090089;
public static final int tv_order_info_shop_name=0x7f090088;
public static final int tv_order_info_state=0x7f09008a;
public static final int tv_order_shop=0x7f09004a;
public static final int tv_order_time=0x7f09004f;
public static final int tv_password=0x7f09001f;
public static final int tv_phone=0x7f090059;
public static final int tv_reg_title=0x7f090055;
public static final int tv_res=0x7f09006f;
public static final int tv_room=0x7f090081;
public static final int tv_school=0x7f09003f;
public static final int tv_shop_discount=0x7f09008e;
public static final int tv_shop_introduce=0x7f09009b;
public static final int tv_shop_loc=0x7f090090;
public static final int tv_shop_location=0x7f090098;
public static final int tv_shop_name=0x7f09008c;
public static final int tv_shop_paper=0x7f09008d;
public static final int tv_shop_phone=0x7f090099;
public static final int tv_shop_promotion=0x7f09009c;
public static final int tv_shop_title=0x7f090096;
public static final int tv_shop_type=0x7f09008f;
public static final int tv_title=0x7f09006e;
public static final int tv_username=0x7f09001c;
public static final int tv_week=0x7f090014;
public static final int tv_xiaocai=0x7f09003d;
public static final int user_callback=0x7f090029;
public static final int user_logo=0x7f090028;
public static final int user_nickname=0x7f090027;
public static final int tv_xiaocai=0x7f09003e;
public static final int user_callback=0x7f09002a;
public static final int user_logo=0x7f090029;
public static final int user_nickname=0x7f090028;
public static final int view_pager=0x7f090017;
public static final int viewpager=0x7f090062;
public static final int viewpager=0x7f090063;
public static final int wv_wsq=0x7f09000e;
}
public static final class layout {
@ -284,55 +285,56 @@ public final class R {
public static final int activity_classroom=0x7f030006;
public static final int activity_feedback=0x7f030007;
public static final int activity_home=0x7f030008;
public static final int activity_login=0x7f030009;
public static final int activity_mine=0x7f03000a;
public static final int activity_mine_info=0x7f03000b;
public static final int activity_mine_info_edit=0x7f03000c;
public static final int activity_mine_old=0x7f03000d;
public static final int activity_news=0x7f03000e;
public static final int activity_order=0x7f03000f;
public static final int activity_order_info=0x7f030010;
public static final int activity_reg=0x7f030011;
public static final int activity_shop=0x7f030012;
public static final int activity_shop_all=0x7f030013;
public static final int activity_shop_item=0x7f030014;
public static final int activity_soft=0x7f030015;
public static final int activity_splash=0x7f030016;
public static final int activity_test=0x7f030017;
public static final int activity_userinfo=0x7f030018;
public static final int bxt_list_item=0x7f030019;
public static final int commit=0x7f03001a;
public static final int common_datetime=0x7f03001b;
public static final int dlg_order_settime=0x7f03001c;
public static final int goods_list_item=0x7f03001d;
public static final int gv_item_classroom=0x7f03001e;
public static final int header_award=0x7f03001f;
public static final int header_bxt=0x7f030020;
public static final int header_bxt_news=0x7f030021;
public static final int header_feedback=0x7f030022;
public static final int header_home=0x7f030023;
public static final int header_mine=0x7f030024;
public static final int header_mine_info=0x7f030025;
public static final int header_mine_info_edit=0x7f030026;
public static final int header_news=0x7f030027;
public static final int header_order=0x7f030028;
public static final int header_order_info=0x7f030029;
public static final int header_shop=0x7f03002a;
public static final int header_shop_all=0x7f03002b;
public static final int header_soft=0x7f03002c;
public static final int layout_libraryreservation=0x7f03002d;
public static final int layout_reservation=0x7f03002e;
public static final int mine_list_item=0x7f03002f;
public static final int mine_soft_list_item=0x7f030030;
public static final int news_list_item=0x7f030031;
public static final int order_info_list_item=0x7f030032;
public static final int popmenu=0x7f030033;
public static final int scom_list_item=0x7f030034;
public static final int shop_all_list_item=0x7f030035;
public static final int shop_grid_item=0x7f030036;
public static final int tab_widget_item=0x7f030037;
public static final int viewpager_menu=0x7f030038;
public static final int viewpager_shopinfo=0x7f030039;
public static final int activity_library=0x7f030009;
public static final int activity_login=0x7f03000a;
public static final int activity_mine=0x7f03000b;
public static final int activity_mine_info=0x7f03000c;
public static final int activity_mine_info_edit=0x7f03000d;
public static final int activity_mine_old=0x7f03000e;
public static final int activity_news=0x7f03000f;
public static final int activity_order=0x7f030010;
public static final int activity_order_info=0x7f030011;
public static final int activity_reg=0x7f030012;
public static final int activity_shop=0x7f030013;
public static final int activity_shop_all=0x7f030014;
public static final int activity_shop_item=0x7f030015;
public static final int activity_soft=0x7f030016;
public static final int activity_splash=0x7f030017;
public static final int activity_test=0x7f030018;
public static final int activity_userinfo=0x7f030019;
public static final int bxt_list_item=0x7f03001a;
public static final int commit=0x7f03001b;
public static final int common_datetime=0x7f03001c;
public static final int dlg_order_settime=0x7f03001d;
public static final int goods_list_item=0x7f03001e;
public static final int gv_item_classroom=0x7f03001f;
public static final int header_award=0x7f030020;
public static final int header_bxt=0x7f030021;
public static final int header_bxt_news=0x7f030022;
public static final int header_feedback=0x7f030023;
public static final int header_home=0x7f030024;
public static final int header_mine=0x7f030025;
public static final int header_mine_info=0x7f030026;
public static final int header_mine_info_edit=0x7f030027;
public static final int header_news=0x7f030028;
public static final int header_order=0x7f030029;
public static final int header_order_info=0x7f03002a;
public static final int header_shop=0x7f03002b;
public static final int header_shop_all=0x7f03002c;
public static final int header_soft=0x7f03002d;
public static final int layout_libraryreservation=0x7f03002e;
public static final int layout_reservation=0x7f03002f;
public static final int mine_list_item=0x7f030030;
public static final int mine_soft_list_item=0x7f030031;
public static final int news_list_item=0x7f030032;
public static final int order_info_list_item=0x7f030033;
public static final int popmenu=0x7f030034;
public static final int scom_list_item=0x7f030035;
public static final int shop_all_list_item=0x7f030036;
public static final int shop_grid_item=0x7f030037;
public static final int tab_widget_item=0x7f030038;
public static final int viewpager_menu=0x7f030039;
public static final int viewpager_shopinfo=0x7f03003a;
}
public static final class menu {
public static final int main=0x7f080000;

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<include layout="@layout/header_bxt" />
<GridView
android:id="@+id/gv_library"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:horizontalSpacing="15dp"
android:numColumns="auto_fit"
android:padding="15dp"
android:verticalSpacing="15dp" >
</GridView>
</LinearLayout>

View File

@ -0,0 +1,92 @@
package com.stone.shop.view;
import java.util.ArrayList;
import java.util.List;
import cn.bmob.v3.BmobQuery;
import cn.bmob.v3.listener.FindListener;
import com.stone.shop.R;
import com.stone.shop.adapter.BXTListAdapter;
import com.stone.shop.adapter.ClassroomAdapter;
import com.stone.shop.model.Classroom;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.GridView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
public class LibraryActivity extends Activity implements OnItemClickListener {
private static final String TAG = "BXTActivity";
private GridView lvBXTNews;
private ClassroomAdapter mBxtListAdapter;
private List<Classroom> mBXTNewsList;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_library);
initView();
initData();
}
private void initView() {
lvBXTNews = (GridView) findViewById(R.id.gv_library);
mBXTNewsList = new ArrayList<Classroom>();
mBxtListAdapter = new ClassroomAdapter(this, mBXTNewsList);
lvBXTNews.setAdapter(mBxtListAdapter);
lvBXTNews.setOnItemClickListener(this);
TextView tv_title = (TextView) findViewById(R.id.tv_title);
tv_title.setText("研修室");
}
private void initData() {
BmobQuery<Classroom> query = new BmobQuery<Classroom>();
query.findObjects(this, new FindListener<Classroom>() {
@Override
public void onSuccess(List<Classroom> newsList) {
// toast("查询商品成功, 共" + newsList.size());
if (newsList.size() == 0)
toast("亲, 暂时还木有研修室哦");
else {
mBXTNewsList = newsList;
mBxtListAdapter.refresh(newsList);
mBxtListAdapter.notifyDataSetChanged();
}
}
@Override
public void onError(int arg0, String arg1) {
toast("查询失败");
}
});
}
private void toast(String toast) {
Toast.makeText(this, toast, Toast.LENGTH_SHORT).show();
}
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Intent intent = new Intent(LibraryActivity.this, LibraryReservationActivity.class);
Classroom classroom = mBXTNewsList.get(position);
intent.putExtra("roomId", classroom.getObjectId());
intent.putExtra("roomName", classroom.getName());
startActivity(intent);
}
}

View File

@ -79,12 +79,19 @@ public class ShopActivity extends Activity implements OnItemClickListener{
case R.id.gv_school_class:
//教学类的做特别处理
if(position==0) {
Intent toBXTActivity = new Intent(ShopActivity.this, ClassroomActivity.class);
Intent toBXTActivity = new Intent(ShopActivity.this,ClassroomActivity.class);
startActivity(toBXTActivity);
} else {
toShopAllActivity( GridAdapter.mSchoolTexts[position], "1"+(position+1) );
}
else {
Intent toBXTActivity = new Intent(ShopActivity.this, LibraryActivity.class);
startActivity(toBXTActivity);
}
/*
if(position==1) {
Intent toBXTActivity = new Intent(ShopActivity.this,ClassroomActivity.class);
startActivity(toBXTActivity);
}
*/
break;
//点击 吃饭小菜 中的子项
case R.id.gv_food_class: