├── README.md
├── client
└── TruckTrade
│ ├── .gitignore
│ ├── .idea
│ ├── compiler.xml
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── encodings.xml
│ ├── gradle.xml
│ ├── misc.xml
│ ├── modules.xml
│ ├── runConfigurations.xml
│ └── vcs.xml
│ ├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── libs
│ │ ├── BaiduLBS_Android.jar
│ │ ├── baidumapapi_base_v4_0_0.jar
│ │ ├── baidumapapi_cloud_v4_0_0.jar
│ │ ├── baidumapapi_map_v4_0_0.jar
│ │ ├── baidumapapi_radar_v4_0_0.jar
│ │ ├── baidumapapi_search_v4_0_0.jar
│ │ └── baidumapapi_util_v4_0_0.jar
│ ├── proguard-rules.pro
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ └── china_area.xml
│ │ ├── java
│ │ └── com
│ │ │ └── xk
│ │ │ └── trucktrade
│ │ │ ├── app
│ │ │ ├── App.java
│ │ │ └── Constant.java
│ │ │ ├── bean
│ │ │ ├── TruckBean.java
│ │ │ ├── TruckSourceBean.java
│ │ │ └── UserBean.java
│ │ │ ├── im
│ │ │ ├── receive
│ │ │ │ └── MBroadCastReceive.java
│ │ │ └── service
│ │ │ │ └── ImService.java
│ │ │ ├── managers
│ │ │ └── AddressManager.java
│ │ │ ├── nohttp
│ │ │ ├── CallServer.java
│ │ │ ├── HttpListener.java
│ │ │ ├── HttpResponseListener.java
│ │ │ └── WaitDialog.java
│ │ │ ├── ui
│ │ │ ├── activity
│ │ │ │ ├── AddTruckActivity.java
│ │ │ │ ├── ChangeMyInfoActivity.java
│ │ │ │ ├── FindFriendActivity.java
│ │ │ │ ├── HomeActivity.java
│ │ │ │ ├── IntroduceActivity.java
│ │ │ │ ├── LoginActivity.java
│ │ │ │ ├── MyTrucksActivity.java
│ │ │ │ ├── NameActivity.java
│ │ │ │ ├── PublishSourceActivity.java
│ │ │ │ ├── SelectExactPositionActivity.java
│ │ │ │ └── TruckSourceSetailActivity.java
│ │ │ ├── adapter
│ │ │ │ ├── CargoInfoAdapter.java
│ │ │ │ ├── FriendAdapter.java
│ │ │ │ ├── LoginPagerAdapter.java
│ │ │ │ ├── MyTrucksAdapter.java
│ │ │ │ └── TruckInfoAdapter.java
│ │ │ ├── base
│ │ │ │ ├── BaseActivity.java
│ │ │ │ └── BaseFragment.java
│ │ │ ├── custom
│ │ │ │ ├── CircleImageView.java
│ │ │ │ ├── DividerItemDecoration.java
│ │ │ │ ├── MMarqueeTextView.java
│ │ │ │ ├── MScrollView.java
│ │ │ │ ├── MToolbar.java
│ │ │ │ ├── MaterialProgressDrawable.java
│ │ │ │ ├── OptionItem2View.java
│ │ │ │ ├── OptionItemView.java
│ │ │ │ ├── autoqueryedittext
│ │ │ │ │ ├── SearchEditText.java
│ │ │ │ │ └── SearchUtil.java
│ │ │ │ └── dropdownmenu
│ │ │ │ │ ├── DropMenuAdapter.java
│ │ │ │ │ ├── entity
│ │ │ │ │ ├── FilterType.java
│ │ │ │ │ └── FilterUrl.java
│ │ │ │ │ └── view
│ │ │ │ │ ├── betterDoubleGrid
│ │ │ │ │ ├── BetterDoubleGridView.java
│ │ │ │ │ ├── DoubleGridAdapter.java
│ │ │ │ │ └── holder
│ │ │ │ │ │ ├── ItemViewHolder.java
│ │ │ │ │ │ └── TitleViewHolder.java
│ │ │ │ │ └── doubleGrid
│ │ │ │ │ ├── DoubleGridView.java
│ │ │ │ │ └── GridViewInScrollView.java
│ │ │ └── fragment
│ │ │ │ ├── FindCargoFragment.java
│ │ │ │ ├── FindTruckFragment.java
│ │ │ │ ├── FragmentFactory.java
│ │ │ │ ├── HomeBottomTabFragment.java
│ │ │ │ ├── LoginFragment.java
│ │ │ │ ├── MeFragment.java
│ │ │ │ ├── MessageFragment.java
│ │ │ │ ├── SplashFragment.java
│ │ │ │ └── TabTopRefreshBaseFragment.java
│ │ │ └── utils
│ │ │ ├── ACache.java
│ │ │ ├── AvatarProduceUtil.java
│ │ │ ├── Base64Util.java
│ │ │ ├── FileUtil.java
│ │ │ ├── IPUtils.java
│ │ │ ├── NetUtils.java
│ │ │ ├── PersistenceUtil.java
│ │ │ ├── RelativeDateFormat.java
│ │ │ ├── SharedPreferencesUtil.java
│ │ │ ├── ViewUtils.java
│ │ │ ├── XmlUtils.java
│ │ │ └── map
│ │ │ └── MyLocationListener.java
│ │ ├── jniLibs
│ │ ├── arm64-v8a
│ │ │ ├── libBaiduMapSDK_base_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_cloud_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_map_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_radar_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_search_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_util_v4_0_0.so
│ │ │ └── liblocSDK6a.so
│ │ ├── armeabi-v7a
│ │ │ ├── libBaiduMapSDK_base_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_cloud_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_map_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_radar_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_search_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_util_v4_0_0.so
│ │ │ └── liblocSDK6a.so
│ │ ├── armeabi
│ │ │ ├── libBaiduMapSDK_base_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_cloud_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_map_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_radar_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_search_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_util_v4_0_0.so
│ │ │ └── liblocSDK6a.so
│ │ ├── x86
│ │ │ ├── libBaiduMapSDK_base_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_cloud_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_map_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_radar_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_search_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_util_v4_0_0.so
│ │ │ └── liblocSDK6a.so
│ │ └── x86_64
│ │ │ ├── libBaiduMapSDK_base_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_cloud_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_map_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_radar_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_search_v4_0_0.so
│ │ │ ├── libBaiduMapSDK_util_v4_0_0.so
│ │ │ └── liblocSDK6a.so
│ │ └── res
│ │ ├── anim
│ │ ├── anim_stay.xml
│ │ ├── default_anim_in.xml
│ │ └── default_anim_out.xml
│ │ ├── drawable
│ │ ├── btn_login.xml
│ │ ├── circle_blue.xml
│ │ ├── circle_green.xml
│ │ ├── circle_primary.xml
│ │ ├── circle_write.xml
│ │ ├── circle_write_line.xml
│ │ ├── news_article_icon_gray_line_4.xml
│ │ ├── rect_blue_stroke.xml
│ │ ├── rect_grey_stroke.xml
│ │ ├── round_rectangle_line_primary.xml
│ │ ├── round_rectangle_line_secondcolor.xml
│ │ ├── round_rectangle_line_write.xml
│ │ ├── round_rectangle_write.xml
│ │ ├── selector_double_grid.xml
│ │ ├── selector_filter_grid.xml
│ │ ├── shadow_black.xml
│ │ └── shap_frame_radius.xml
│ │ ├── layout
│ │ ├── activity_addtruck.xml
│ │ ├── activity_change_myinfo.xml
│ │ ├── activity_find_friend.xml
│ │ ├── activity_home.xml
│ │ ├── activity_introduce.xml
│ │ ├── activity_login.xml
│ │ ├── activity_main.xml
│ │ ├── activity_my_trucks.xml
│ │ ├── activity_name.xml
│ │ ├── activity_publish.xml
│ │ ├── activity_select_exact_position.xml
│ │ ├── activity_trucksource_detail.xml
│ │ ├── dialog_loading.xml
│ │ ├── fragment_findcargo.xml
│ │ ├── fragment_findtruck.xml
│ │ ├── fragment_login.xml
│ │ ├── fragment_me.xml
│ │ ├── fragment_message.xml
│ │ ├── fragment_splash.xml
│ │ ├── holder_item.xml
│ │ ├── holder_title.xml
│ │ ├── item_add_truck.xml
│ │ ├── item_cargo_info.xml
│ │ ├── item_friend.xml
│ │ ├── item_my_truck.xml
│ │ ├── item_truck_info.xml
│ │ ├── layout_avatar.xml
│ │ ├── layout_home_query.xml
│ │ ├── layout_home_tab_bottom.xml
│ │ ├── layout_optionitem.xml
│ │ ├── layout_optionitem2.xml
│ │ ├── layout_publish.xml
│ │ ├── layout_publish_cargo.xml
│ │ ├── layout_publish_truck.xml
│ │ ├── merge_filter_double_grid.xml
│ │ ├── merge_filter_third.xml
│ │ └── toolbar.xml
│ │ ├── mipmap-hdpi
│ │ ├── add.png
│ │ ├── add_gray.png
│ │ ├── approve.png
│ │ ├── authentication.png
│ │ ├── authentication_no.png
│ │ ├── bianhao.png
│ │ ├── company.png
│ │ ├── company_no.png
│ │ ├── current_position.png
│ │ ├── date_icon.png
│ │ ├── detail.png
│ │ ├── dianliang.png
│ │ ├── didian.png
│ │ ├── dingwei.png
│ │ ├── exact_start_place.png
│ │ ├── exit.png
│ │ ├── expansion.png
│ │ ├── headphone.png
│ │ ├── ic_action_done.png
│ │ ├── ic_arrow_back.png
│ │ ├── ic_arrow_forward.png
│ │ ├── ic_clear.png
│ │ ├── ic_history_settle.png
│ │ ├── ic_launcher.png
│ │ ├── ic_publish.png
│ │ ├── ic_search.png
│ │ ├── icon_call.png
│ │ ├── icon_to.png
│ │ ├── id.png
│ │ ├── introduce.png
│ │ ├── luxian.png
│ │ ├── message.png
│ │ ├── message2.png
│ │ ├── my_trucks.png
│ │ ├── ok.png
│ │ ├── person.png
│ │ ├── personal.png
│ │ ├── phonecontact.png
│ │ ├── position.png
│ │ ├── publish_cargo.png
│ │ ├── publish_truck.png
│ │ ├── realname.png
│ │ ├── realname_no.png
│ │ ├── retract.png
│ │ ├── right_jiantou.png
│ │ ├── search_friend.png
│ │ ├── search_icon.png
│ │ ├── select_no.png
│ │ ├── select_yes.png
│ │ ├── shidu.png
│ │ ├── start.png
│ │ ├── start_place.png
│ │ ├── stop_place.png
│ │ ├── tab_icon_cargo.png
│ │ ├── tab_icon_cargo_select.png
│ │ ├── tab_icon_me.png
│ │ ├── tab_icon_me_select.png
│ │ ├── tab_icon_message.png
│ │ ├── tab_icon_message_select.png
│ │ ├── tab_icon_truck.png
│ │ ├── tab_icon_truck_select.png
│ │ ├── time.png
│ │ └── trck.png
│ │ ├── mipmap-mdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxxhdpi
│ │ └── ic_launcher.png
│ │ ├── values-w820dp
│ │ └── dimens.xml
│ │ └── values
│ │ ├── array.xml
│ │ ├── attrs.xml
│ │ ├── colors.xml
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── build.gradle
│ ├── filter-lib
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── baiiu
│ │ │ └── filter
│ │ │ ├── DropDownMenu.java
│ │ │ ├── adapter
│ │ │ ├── BaseBaseAdapter.java
│ │ │ ├── MenuAdapter.java
│ │ │ └── SimpleTextAdapter.java
│ │ │ ├── interfaces
│ │ │ ├── OnFilterDoneListener.java
│ │ │ └── OnFilterItemClickListener.java
│ │ │ ├── typeview
│ │ │ ├── DoubleListView.java
│ │ │ ├── SingleGridView.java
│ │ │ └── SingleListView.java
│ │ │ ├── util
│ │ │ ├── CommonUtil.java
│ │ │ ├── SimpleAnimationListener.java
│ │ │ └── UIUtil.java
│ │ │ └── view
│ │ │ ├── FilterCheckedTextView.java
│ │ │ └── FixedTabIndicator.java
│ │ └── res
│ │ ├── anim
│ │ ├── alpha_to_one.xml
│ │ ├── alpha_to_zero.xml
│ │ ├── top_in.xml
│ │ └── top_out.xml
│ │ ├── drawable-xxhdpi
│ │ ├── common_filter_arrow_down.png
│ │ └── common_filter_arrow_up.png
│ │ ├── drawable
│ │ ├── layer_filter_checked.xml
│ │ ├── layer_filter_unchecked.xml
│ │ ├── level_filter.xml
│ │ ├── selector_filter_left.xml
│ │ └── selector_tv_filter.xml
│ │ ├── layout
│ │ ├── lv_item_filter.xml
│ │ └── merge_filter_list.xml
│ │ └── values
│ │ ├── color.xml
│ │ ├── ids.xml
│ │ └── strings.xml
│ ├── gradle.properties
│ ├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── projectFilesBackup
│ └── .idea
│ │ └── workspace.xml
│ └── settings.gradle
├── server
└── truck
│ ├── .classpath
│ ├── .mymetadata
│ ├── .project
│ ├── .settings
│ ├── .jsdtscope
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ ├── org.eclipse.wst.common.component
│ ├── org.eclipse.wst.common.project.facet.core.xml
│ ├── org.eclipse.wst.jsdt.ui.superType.container
│ └── org.eclipse.wst.jsdt.ui.superType.name
│ ├── WebRoot
│ ├── META-INF
│ │ └── MANIFEST.MF
│ ├── WEB-INF
│ │ ├── classes
│ │ │ └── com
│ │ │ │ └── truck
│ │ │ │ ├── Dao
│ │ │ │ ├── IMEIDao.class
│ │ │ │ ├── TruckDao.class
│ │ │ │ ├── TruckSourceDao.class
│ │ │ │ └── UserDao.class
│ │ │ │ ├── Servlet
│ │ │ │ ├── AutoLoginServlet.class
│ │ │ │ ├── FriendServlet.class
│ │ │ │ ├── LoginServlet.class
│ │ │ │ ├── LogoutServlet.class
│ │ │ │ ├── RigisterServlet.class
│ │ │ │ ├── TruckServlet.class
│ │ │ │ ├── TruckSourceServlet.class
│ │ │ │ ├── UpdateUserinfoServlet.class
│ │ │ │ └── UploadHeadServlet.class
│ │ │ │ ├── Util
│ │ │ │ ├── Base64Util.class
│ │ │ │ └── JDBCUtil.class
│ │ │ │ └── model
│ │ │ │ ├── Truck.class
│ │ │ │ ├── TruckSource.class
│ │ │ │ └── User.class
│ │ ├── lib
│ │ │ ├── commons-beanutils-1.7.0.jar
│ │ │ ├── commons-collections-3.2.jar
│ │ │ ├── commons-lang-2.4.jar
│ │ │ ├── commons-logging-1.1.jar
│ │ │ ├── ezmorph-1.0.4.jar
│ │ │ ├── json-lib-2.2.2-jdk15.jar
│ │ │ ├── mysql-connector-java-3.1.13-bin.jar
│ │ │ └── servlet-api.jar
│ │ └── web.xml
│ └── index.jsp
│ └── src
│ └── com
│ └── truck
│ ├── Dao
│ ├── IMEIDao.java
│ ├── TruckDao.java
│ ├── TruckSourceDao.java
│ └── UserDao.java
│ ├── Servlet
│ ├── AutoLoginServlet.java
│ ├── FriendServlet.java
│ ├── LoginServlet.java
│ ├── LogoutServlet.java
│ ├── RigisterServlet.java
│ ├── TruckServlet.java
│ ├── TruckSourceServlet.java
│ ├── UpdateUserinfoServlet.java
│ └── UploadHeadServlet.java
│ ├── Util
│ ├── Base64Util.java
│ └── JDBCUtil.java
│ └── model
│ ├── Truck.java
│ ├── TruckSource.java
│ └── User.java
└── sql
├── tb_imei.sql
├── tb_truck.sql
├── tb_truck_source.sql
├── tb_user.sql
├── tb_user_cared.sql
├── tb_user_truck.sql
└── tb_user_trucksource.sql
/README.md:
--------------------------------------------------------------------------------
1 | # TruckRent
2 | 毕业设计——货车租赁系统。包括服务端和安卓端。
3 |
4 | - 服务端用servlet+mysql实现,[点击进入](https://github.com/3440395/TruckRent/tree/master/server)
5 |
6 | - 客户端是安卓,[点击进入](https://github.com/3440395/TruckRent/tree/master/client)
7 |
8 | - sql,[点击进入](https://github.com/3440395/TruckRent/tree/master/sql)
9 |
--------------------------------------------------------------------------------
/client/TruckTrade/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 |
--------------------------------------------------------------------------------
/client/TruckTrade/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/client/TruckTrade/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/client/TruckTrade/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/client/TruckTrade/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
19 |
--------------------------------------------------------------------------------
/client/TruckTrade/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 | 1.8
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/client/TruckTrade/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/client/TruckTrade/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/client/TruckTrade/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 |
5 | //为了解决部分第三方库重复打包了META-INF的问题
6 | // packagingOptions {
7 | // exclude 'META-INF/LICENSE.txt'
8 | // exclude 'META-INF/NOTICE.txt'
9 | // }
10 | // lintOptions {
11 | // abortOnError false
12 | // }
13 |
14 | compileSdkVersion 23
15 | buildToolsVersion "23.0.3"
16 |
17 | defaultConfig {
18 | applicationId "com.xk.trucktrade"
19 | minSdkVersion 14
20 | targetSdkVersion 23
21 | versionCode 1
22 | versionName "1.0"
23 | }
24 | buildTypes {
25 | release {
26 | minifyEnabled false
27 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
28 | }
29 | }
30 | }
31 |
32 | dependencies {
33 | compile fileTree(include: ['*.jar'], dir: 'libs')
34 | // testCompile 'junit:junit:4.12'
35 | // compile 'com.android.support:appcompat-v7:23.3.0'
36 | compile 'com.android.support:cardview-v7:23.3.0'
37 | compile 'com.android.support:recyclerview-v7:23.3.0'
38 | compile 'com.android.support:design:23.3.0'
39 | compile 'com.android.support:support-v4:+'
40 | compile 'com.squareup.picasso:picasso:2.3.2'
41 | compile 'com.nineoldandroids:library:2.4.0'
42 | compile 'com.daimajia.slider:library:1.1.5@aar'
43 | compile 'com.yolanda.nohttp:nohttp:1.0.3'
44 | compile 'cn.qqtheme.framework:WheelPicker:1.1.3'
45 | compile 'cn.qqtheme.framework:FilePicker:1.1.3'
46 | compile 'cn.qqtheme.framework:ColorPicker:1.1.3'
47 | compile files('libs/baidumapapi_base_v4_0_0.jar')
48 | compile files('libs/baidumapapi_cloud_v4_0_0.jar')
49 | compile files('libs/baidumapapi_map_v4_0_0.jar')
50 | compile files('libs/baidumapapi_radar_v4_0_0.jar')
51 | compile files('libs/baidumapapi_search_v4_0_0.jar')
52 | compile files('libs/baidumapapi_util_v4_0_0.jar')
53 | compile files('libs/BaiduLBS_Android.jar')
54 | compile 'com.google.code.gson:gson:2.7'
55 | compile project(path: ':filter-lib')
56 | }
57 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/libs/BaiduLBS_Android.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/libs/BaiduLBS_Android.jar
--------------------------------------------------------------------------------
/client/TruckTrade/app/libs/baidumapapi_base_v4_0_0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/libs/baidumapapi_base_v4_0_0.jar
--------------------------------------------------------------------------------
/client/TruckTrade/app/libs/baidumapapi_cloud_v4_0_0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/libs/baidumapapi_cloud_v4_0_0.jar
--------------------------------------------------------------------------------
/client/TruckTrade/app/libs/baidumapapi_map_v4_0_0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/libs/baidumapapi_map_v4_0_0.jar
--------------------------------------------------------------------------------
/client/TruckTrade/app/libs/baidumapapi_radar_v4_0_0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/libs/baidumapapi_radar_v4_0_0.jar
--------------------------------------------------------------------------------
/client/TruckTrade/app/libs/baidumapapi_search_v4_0_0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/libs/baidumapapi_search_v4_0_0.jar
--------------------------------------------------------------------------------
/client/TruckTrade/app/libs/baidumapapi_util_v4_0_0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/libs/baidumapapi_util_v4_0_0.jar
--------------------------------------------------------------------------------
/client/TruckTrade/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in D:\soft\androidsdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 | -keep class com.hyphenate.** {*;}
19 | -dontwarn com.hyphenate.**
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/app/App.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.app;
2 |
3 | import android.Manifest;
4 | import android.app.Application;
5 | import android.content.Context;
6 | import android.content.Intent;
7 | import android.content.pm.PackageManager;
8 | import android.os.Handler;
9 | import android.support.v4.app.ActivityCompat;
10 | import android.support.v4.content.ContextCompat;
11 | import android.telephony.TelephonyManager;
12 |
13 | import com.baidu.mapapi.SDKInitializer;
14 | import com.xk.trucktrade.im.service.ImService;
15 | import com.xk.trucktrade.utils.SharedPreferencesUtil;
16 | import com.yolanda.nohttp.Logger;
17 | import com.yolanda.nohttp.NoHttp;
18 |
19 |
20 | public class App extends Application {
21 | private Thread mUiThread = Thread.currentThread();
22 | private Handler handler = new Handler();
23 |
24 | private static App mApp;
25 |
26 | public static App getInstance() {
27 | return mApp;
28 | }
29 |
30 | @Override
31 | public void onCreate() {
32 | super.onCreate();
33 | SDKInitializer.initialize(getApplicationContext());
34 |
35 |
36 | mApp = this;
37 |
38 |
39 |
40 | NoHttp.initialize(this);
41 | Logger.setTag("NoHttp");
42 | Logger.setDebug(true);// 开始NoHttp的调试模式, 这样就能看到请求过程和日志
43 |
44 | startService(new Intent(this, ImService.class));
45 | }
46 |
47 |
48 | public void mRunOnUiThread(Runnable runnable) {
49 | if (Thread.currentThread() != mUiThread) {
50 | handler.post(runnable);
51 | } else {
52 | runnable.run();
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/im/receive/MBroadCastReceive.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.im.receive;
2 |
3 | import android.content.BroadcastReceiver;
4 | import android.content.Context;
5 | import android.content.Intent;
6 |
7 | import com.xk.trucktrade.app.Constant;
8 | import com.xk.trucktrade.im.service.ImService;
9 |
10 | /**
11 | * Created by xk on 2016/8/10 20:35.
12 | */
13 | public class MBroadCastReceive extends BroadcastReceiver {
14 | private ImService imService;
15 |
16 | public MBroadCastReceive(ImService imService) {
17 | this.imService = imService;
18 | }
19 |
20 | @Override
21 | public void onReceive(Context context, Intent intent) {
22 | if (intent.getAction().equals(Constant.ACTION_SEND_MSG)) {
23 | if (imService != null) {
24 | imService.sendMsg(intent.getStringExtra("content"), intent.getStringExtra("toid"));
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/nohttp/HttpListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright © YOLANDA. All Rights Reserved
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.xk.trucktrade.nohttp;
17 |
18 |
19 | import com.yolanda.nohttp.rest.Response;
20 |
21 | /**
22 | *
接受回调结果.
23 | * Created in Nov 4, 2015 12:54:50 PM.
24 | *
25 | * @author YOLANDA;
26 | */
27 | public interface HttpListener {
28 |
29 | void onSucceed(int what, Response response);
30 |
31 | void onFailed(int what, String url, Object tag, Exception exception, int responseCode, long networkMillis);
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/nohttp/WaitDialog.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright © YOLANDA. All Rights Reserved
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.xk.trucktrade.nohttp;
17 |
18 | import android.app.ProgressDialog;
19 | import android.content.Context;
20 | import android.view.Window;
21 |
22 | /**
23 | * Created in Oct 23, 2015 1:19:04 PM.
24 | *
25 | * @author YOLANDA;
26 | */
27 | public class WaitDialog extends ProgressDialog {
28 |
29 | public WaitDialog(Context context,String dialogMsg) {
30 | super(context);
31 | requestWindowFeature(Window.FEATURE_NO_TITLE);
32 | setCanceledOnTouchOutside(false);
33 | setProgressStyle(STYLE_SPINNER);
34 | setMessage(dialogMsg);
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/activity/IntroduceActivity.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.activity;
2 |
3 | import android.os.Bundle;
4 | import android.util.Log;
5 | import android.view.View;
6 | import android.view.WindowManager;
7 | import android.widget.Button;
8 | import android.widget.EditText;
9 | import android.widget.LinearLayout;
10 | import android.widget.TextView;
11 |
12 | import com.xk.trucktrade.R;
13 | import com.xk.trucktrade.ui.base.BaseActivity;
14 | import com.xk.trucktrade.ui.custom.MToolbar;
15 | import com.xk.trucktrade.utils.ViewUtils;
16 |
17 | import java.util.Calendar;
18 |
19 | import cn.qqtheme.framework.picker.DatePicker;
20 | import cn.qqtheme.framework.picker.OptionPicker;
21 |
22 | /**
23 | * Created by xk on 2016/6/26 16:12.
24 | */
25 | public class IntroduceActivity extends BaseActivity implements View.OnClickListener {
26 | private static final int RESULT_INTRODUCE_SAVE = 0;
27 | private static final int RESULT_INTRODUCE_BACK = 1;
28 | private MToolbar toolbar;
29 | private EditText et_introduce;
30 |
31 | @Override
32 | protected void setLayout() {
33 | setContentView(R.layout.activity_introduce);
34 | }
35 |
36 | @Override
37 | protected void findViews() {
38 | toolbar = ViewUtils.findViewById(this, R.id.toolbar);
39 | et_introduce = ViewUtils.findViewById(this, R.id.et_introduce);
40 | }
41 |
42 | @Override
43 | protected void setupViews(Bundle bundle) {
44 | getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
45 | toolbar.setLeftImageButton(R.mipmap.ic_arrow_back);
46 | toolbar.setTitle("备注信息");
47 | toolbar.setRightTextView("保存");
48 | }
49 |
50 | @Override
51 | protected void setListener() {
52 | toolbar.setOnImageButtonClickListener(new MToolbar.OnImageButtonClickListener() {
53 | @Override
54 | public void onLeftClick() {
55 | setResult(RESULT_INTRODUCE_BACK);
56 | onBackPressed();
57 | }
58 |
59 | @Override
60 | public void onRightClick() {
61 | }
62 | });
63 | toolbar.setOnTextViewClickListener(new MToolbar.OnTextViewClickListener() {
64 | @Override
65 | public void onLeftClick() {
66 | }
67 |
68 | @Override
69 | public void onRightClick() {
70 | String s = et_introduce.getText().toString();
71 | getIntent().putExtra("introduce",s);
72 | setResult(RESULT_INTRODUCE_SAVE,getIntent());
73 | onBackPressed();
74 | }
75 | });
76 | }
77 |
78 | @Override
79 | protected void fetchData() {
80 |
81 | }
82 |
83 | @Override
84 | public void onClick(View v) {
85 | }
86 | }
87 |
88 |
89 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/activity/LoginActivity.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.activity;
2 |
3 | import android.os.Bundle;
4 | import android.support.design.widget.TabLayout;
5 | import android.support.v4.view.ViewPager;
6 | import android.util.Log;
7 | import android.view.View;
8 | import android.widget.ImageButton;
9 |
10 | import com.baidu.location.BDLocationListener;
11 | import com.baidu.location.LocationClient;
12 | import com.baidu.location.LocationClientOption;
13 | import com.xk.trucktrade.R;
14 | import com.xk.trucktrade.ui.adapter.LoginPagerAdapter;
15 | import com.xk.trucktrade.ui.base.BaseActivity;
16 | import com.xk.trucktrade.ui.fragment.SplashFragment;
17 | import com.xk.trucktrade.utils.ViewUtils;
18 | import com.xk.trucktrade.utils.map.MyLocationListener;
19 |
20 | import java.util.ArrayList;
21 | import java.util.List;
22 | import java.util.Objects;
23 |
24 | public class LoginActivity extends BaseActivity {
25 |
26 | private TabLayout tabLayout;
27 | private ViewPager viewPager;
28 | private LoginPagerAdapter adapter;
29 |
30 | @Override
31 | protected void setLayout() {
32 | setContentView(R.layout.activity_login);
33 | }
34 |
35 | @Override
36 | protected void findViews() {
37 | tabLayout = ViewUtils.findViewById(this, R.id.tl_login_tab_layout);
38 | viewPager = ViewUtils.findViewById(this, R.id.vp_login_pager);
39 | }
40 |
41 | @Override
42 | protected void setupViews(Bundle bundle) {
43 |
44 | getSupportFragmentManager()
45 | .beginTransaction()
46 | .addToBackStack("Splash")
47 | .add(R.id.root, new SplashFragment())
48 | .commit();
49 |
50 | tabLayout.addTab(tabLayout.newTab().setText("登录"));
51 | tabLayout.addTab(tabLayout.newTab().setText("注册"));
52 |
53 | adapter = new LoginPagerAdapter(getSupportFragmentManager());
54 | viewPager.setAdapter(adapter);
55 | }
56 |
57 | @Override
58 | protected void setListener() {
59 | viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout));
60 | tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
61 | @Override
62 | public void onTabSelected(TabLayout.Tab tab) {
63 | viewPager.setCurrentItem(tab.getPosition());
64 | }
65 |
66 | @Override
67 | public void onTabUnselected(TabLayout.Tab tab) {
68 | }
69 |
70 | @Override
71 | public void onTabReselected(TabLayout.Tab tab) {
72 | }
73 | });
74 | }
75 |
76 | @Override
77 | protected void fetchData() {
78 |
79 |
80 | }
81 |
82 | }
83 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/activity/NameActivity.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.activity;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.view.WindowManager;
6 | import android.widget.EditText;
7 |
8 | import com.xk.trucktrade.R;
9 | import com.xk.trucktrade.ui.base.BaseActivity;
10 | import com.xk.trucktrade.ui.custom.MToolbar;
11 | import com.xk.trucktrade.utils.ViewUtils;
12 |
13 | /**
14 | * Created by xk on 2016/6/26 16:12.
15 | */
16 | public class NameActivity extends BaseActivity implements View.OnClickListener {
17 | private static final int RESULT_NAME_SAVE = 2;
18 | private static final int RESULT_NAME_BACK = 3;
19 | private MToolbar toolbar;
20 | private EditText et_name;
21 |
22 | @Override
23 | protected void setLayout() {
24 | setContentView(R.layout.activity_name);
25 | }
26 |
27 | @Override
28 | protected void findViews() {
29 | toolbar = ViewUtils.findViewById(this, R.id.toolbar);
30 | et_name = ViewUtils.findViewById(this, R.id.et_name);
31 | }
32 |
33 | @Override
34 | protected void setupViews(Bundle bundle) {
35 | getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
36 | toolbar.setLeftImageButton(R.mipmap.ic_arrow_back);
37 | toolbar.setTitle("修改姓名");
38 | toolbar.setRightTextView("保存");
39 | }
40 |
41 | @Override
42 | protected void setListener() {
43 | toolbar.setOnImageButtonClickListener(new MToolbar.OnImageButtonClickListener() {
44 | @Override
45 | public void onLeftClick() {
46 | setResult(RESULT_NAME_BACK);
47 | onBackPressed();
48 | }
49 |
50 | @Override
51 | public void onRightClick() {
52 | }
53 | });
54 | toolbar.setOnTextViewClickListener(new MToolbar.OnTextViewClickListener() {
55 | @Override
56 | public void onLeftClick() {
57 | }
58 |
59 | @Override
60 | public void onRightClick() {
61 | String s = et_name.getText().toString();
62 | getIntent().putExtra("name",s);
63 | setResult(RESULT_NAME_SAVE,getIntent());
64 | onBackPressed();
65 | }
66 | });
67 | }
68 |
69 | @Override
70 | protected void fetchData() {
71 |
72 | }
73 |
74 | @Override
75 | public void onClick(View v) {
76 | }
77 | }
78 |
79 |
80 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/adapter/CargoInfoAdapter.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.adapter;
2 |
3 | import android.content.Context;
4 | import android.support.v7.widget.RecyclerView;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 |
8 | import com.xk.trucktrade.R;
9 |
10 | /**
11 | * Created by xk on 2016/6/4 21:58.
12 | */
13 | public class CargoInfoAdapter extends RecyclerView.Adapter {
14 |
15 | private Context context;
16 |
17 | public CargoInfoAdapter(Context context) {
18 | this.context = context;
19 | }
20 |
21 | @Override
22 | public MViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
23 | View v = View.inflate(context, R.layout.item_cargo_info, null);
24 | return new MViewHolder(v);
25 | }
26 |
27 | @Override
28 | public void onBindViewHolder(MViewHolder holder, final int position) {
29 | }
30 |
31 |
32 | @Override
33 | public int getItemCount() {
34 | return 30;
35 | }
36 |
37 |
38 | class MViewHolder extends RecyclerView.ViewHolder {
39 | public MViewHolder(View itemView) {
40 | super(itemView);
41 | }
42 | }
43 |
44 | private OnItemClickListener onItemClickListener;
45 |
46 | public interface OnItemClickListener {
47 | void onItemClick(int position);
48 | }
49 |
50 | public void setOnItemClickListener(OnItemClickListener onItemClickListener) {
51 | this.onItemClickListener = onItemClickListener;
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/adapter/LoginPagerAdapter.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.adapter;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.support.v4.app.FragmentManager;
6 | import android.support.v4.app.FragmentPagerAdapter;
7 | import android.util.Log;
8 |
9 |
10 | import com.xk.trucktrade.app.Constant;
11 | import com.xk.trucktrade.ui.fragment.LoginFragment;
12 |
13 | import java.util.ArrayList;
14 | import java.util.List;
15 |
16 | /**
17 | * 登录页显示登录和注册用的 Adapter
18 | */
19 | public class LoginPagerAdapter extends FragmentPagerAdapter {
20 |
21 | List fragments = new ArrayList<>(2);
22 |
23 | public LoginPagerAdapter(FragmentManager fm) {
24 | super(fm);
25 | }
26 |
27 | @Override
28 | public Fragment getItem(int position) {
29 | if (fragments.size() > position) {
30 | return fragments.get(position);
31 | } else {
32 | LoginFragment fragment = new LoginFragment();
33 | if (position == 1) {
34 | Bundle arg = new Bundle();
35 | arg.putBoolean(Constant.IS_SIGN_UP, true);
36 | fragment.setArguments(arg);
37 | }
38 | fragments.add(fragment);
39 | return fragment;
40 | }
41 | }
42 |
43 | @Override
44 | public int getCount() {
45 | return 2;
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/custom/MMarqueeTextView.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.custom;
2 |
3 | import android.content.Context;
4 | import android.graphics.Rect;
5 | import android.text.TextUtils;
6 | import android.util.AttributeSet;
7 | import android.widget.TextView;
8 |
9 | /**
10 | * Created by xk on 2016/7/28 15:35.
11 | */
12 | public class MMarqueeTextView extends TextView {
13 |
14 | public MMarqueeTextView(Context context) {
15 | super(context);
16 | createView();
17 | }
18 |
19 | public MMarqueeTextView(Context context, AttributeSet attrs) {
20 | super(context, attrs);
21 | createView();
22 | }
23 |
24 | public MMarqueeTextView(Context context, AttributeSet attrs, int defStyle) {
25 | super(context, attrs, defStyle);
26 | createView();
27 | }
28 |
29 | private void createView() {
30 | setEllipsize(TextUtils.TruncateAt.MARQUEE);
31 | setMarqueeRepeatLimit(-1);
32 | setFocusableInTouchMode(true);
33 | }
34 |
35 | @Override
36 | protected void onFocusChanged(boolean focused, int direction,
37 | Rect previouslyFocusedRect) {
38 | if (focused) {
39 | super.onFocusChanged(focused, direction, previouslyFocusedRect);
40 | }
41 | }
42 |
43 | @Override
44 | public void onWindowFocusChanged(boolean focused) {
45 | if (focused) {
46 | super.onWindowFocusChanged(focused);
47 | }
48 | }
49 |
50 | @Override
51 | public boolean isFocused() {
52 | return true;
53 | }
54 |
55 | }
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/custom/MScrollView.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.custom;
2 |
3 | import android.content.Context;
4 | import android.util.AttributeSet;
5 | import android.view.MotionEvent;
6 | import android.widget.ScrollView;
7 |
8 | /**
9 | * Created by xk on 2016/8/4 18:00.
10 | */
11 | public class MScrollView extends ScrollView {
12 | public MScrollView(Context context) {
13 | super(context);
14 | }
15 |
16 | public MScrollView(Context context, AttributeSet attrs) {
17 | super(context, attrs);
18 | }
19 |
20 | public MScrollView(Context context, AttributeSet attrs, int defStyleAttr) {
21 | super(context, attrs, defStyleAttr);
22 | }
23 |
24 | @Override
25 | public boolean onInterceptTouchEvent(MotionEvent ev) {
26 | return false;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/custom/autoqueryedittext/SearchEditText.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.custom.autoqueryedittext;
2 |
3 | import android.content.Context;
4 | import android.text.Editable;
5 | import android.text.TextWatcher;
6 | import android.util.AttributeSet;
7 | import android.widget.EditText;
8 |
9 | /**
10 | * Created by xk on 2016/8/8 2:31.
11 | */
12 | public class SearchEditText extends EditText {
13 |
14 | private SearchUtil searchUtil;
15 |
16 | public SearchEditText(Context context) {
17 | super(context);
18 | }
19 |
20 | public SearchEditText(Context context, AttributeSet attrs) {
21 | super(context, attrs);
22 | searchUtil = new SearchUtil(this,context);
23 | searchUtil.setOnSearchListener(new SearchUtil.OnSearchListener() {
24 | @Override
25 | public void onSearchSuccess(String result) {
26 | if (onSearchListener != null) {
27 | onSearchListener.onSearchFinish(result);
28 | }
29 | }
30 | });
31 |
32 | this.addTextChangedListener(new TextWatcher() {
33 | @Override
34 | public void beforeTextChanged(CharSequence s, int start, int count, int after) {
35 | if (onSearchListener != null) {
36 | onSearchListener.beforeTextChanged(s,start,count,after);
37 | }
38 | }
39 |
40 | @Override
41 | public void onTextChanged(CharSequence s, int start, int before, int count) {
42 | searchUtil.search(s.toString());
43 | if (onSearchListener != null) {
44 | onSearchListener.onTextChanged(s,start,before,count);
45 | }
46 | }
47 |
48 | @Override
49 | public void afterTextChanged(Editable s) {
50 | if (onSearchListener != null) {
51 | onSearchListener.afterTextChanged(s);
52 | }
53 | }
54 | });
55 | }
56 |
57 | public SearchEditText(Context context, AttributeSet attrs, int defStyleAttr) {
58 | super(context, attrs, defStyleAttr);
59 | //
60 | }
61 |
62 |
63 |
64 |
65 | private OnSearchListener onSearchListener;
66 |
67 | public void setOnSearchListener(OnSearchListener onSearchListener) {
68 | this.onSearchListener = onSearchListener;
69 | }
70 |
71 | public interface OnSearchListener {
72 | void onSearchFinish(String result);
73 |
74 | void beforeTextChanged(CharSequence s, int start, int count, int after);
75 |
76 | void onTextChanged(CharSequence s, int start, int before, int count);
77 |
78 | void afterTextChanged(Editable s);
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/custom/dropdownmenu/entity/FilterType.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.custom.dropdownmenu.entity;
2 |
3 | import java.util.List;
4 |
5 | /**
6 | * author: baiiu
7 | * date: on 16/2/19 18:09
8 | * description:
9 | */
10 | public class FilterType {
11 | public String desc;
12 | public List child;
13 | }
14 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/custom/dropdownmenu/entity/FilterUrl.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.custom.dropdownmenu.entity;
2 |
3 | import android.text.TextUtils;
4 |
5 | /**
6 | * 描述:
7 | */
8 | public class FilterUrl {
9 | private volatile static FilterUrl filterUrl;
10 |
11 | private FilterUrl() {
12 | }
13 |
14 | public static FilterUrl instance() {
15 | if (filterUrl == null) {
16 | synchronized (FilterUrl.class) {
17 | if (filterUrl == null) {
18 | filterUrl = new FilterUrl();
19 | }
20 | }
21 | }
22 | return filterUrl;
23 | }
24 |
25 | public String singleListPosition;
26 | public String doubleListLeft;
27 | public String doubleListRight;
28 | public String singleGridPosition;
29 | public String doubleGridTop;
30 | public String doubleGridBottom;
31 |
32 | public int position;
33 | public String positionTitle;
34 |
35 | @Override
36 | public String toString() {
37 | StringBuilder buffer = new StringBuilder();
38 |
39 | if (!TextUtils.isEmpty(singleListPosition)) {
40 | buffer.append("singleListPosition=");
41 | buffer.append(singleListPosition);
42 | buffer.append("\n");
43 | }
44 |
45 |
46 | if (!TextUtils.isEmpty(doubleListLeft)) {
47 | buffer.append("doubleListLeft=");
48 | buffer.append(doubleListLeft);
49 | buffer.append("\n");
50 | }
51 |
52 | if (!TextUtils.isEmpty(doubleListRight)) {
53 | buffer.append("doubleListRight=");
54 | buffer.append(doubleListRight);
55 | buffer.append("\n");
56 | }
57 |
58 | if (!TextUtils.isEmpty(singleGridPosition)) {
59 | buffer.append("singleGridPosition=");
60 | buffer.append(singleGridPosition);
61 | buffer.append("\n");
62 | }
63 |
64 | if (!TextUtils.isEmpty(doubleGridTop)) {
65 | buffer.append("doubleGridTop=");
66 | buffer.append(doubleGridTop);
67 | buffer.append("\n");
68 | }
69 |
70 | if (!TextUtils.isEmpty(doubleGridBottom)) {
71 | buffer.append("doubleGridBottom=");
72 | buffer.append(doubleGridBottom);
73 | buffer.append("\n");
74 | }
75 |
76 | return buffer.toString();
77 | }
78 |
79 | public void clear() {
80 | filterUrl = null;
81 | }
82 |
83 |
84 | }
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/custom/dropdownmenu/view/betterDoubleGrid/holder/ItemViewHolder.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.custom.dropdownmenu.view.betterDoubleGrid.holder;
2 |
3 | import android.content.Context;
4 | import android.support.v7.widget.RecyclerView;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 |
8 | import com.baiiu.filter.util.UIUtil;
9 | import com.baiiu.filter.view.FilterCheckedTextView;
10 | import com.xk.trucktrade.R;
11 | import com.xk.trucktrade.utils.ViewUtils;
12 |
13 |
14 | /**
15 | * auther: baiiu
16 | * time: 16/6/5 05 23:35
17 | * description:
18 | */
19 | public class ItemViewHolder extends RecyclerView.ViewHolder {
20 |
21 | private final FilterCheckedTextView textView;
22 | private View.OnClickListener mListener;
23 |
24 | public ItemViewHolder(Context mContext, ViewGroup parent, View.OnClickListener mListener) {
25 | super(UIUtil.infalte(mContext, R.layout.holder_item, parent));
26 | textView = ViewUtils.findViewById(itemView,R.id.tv_item);
27 | this.mListener = mListener;
28 | }
29 |
30 |
31 | public void bind(String s) {
32 | textView.setText(s);
33 | textView.setTag(s);
34 | textView.setOnClickListener(mListener);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/custom/dropdownmenu/view/betterDoubleGrid/holder/TitleViewHolder.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.custom.dropdownmenu.view.betterDoubleGrid.holder;
2 |
3 | import android.content.Context;
4 | import android.support.v7.widget.RecyclerView;
5 | import android.view.ViewGroup;
6 | import android.widget.TextView;
7 |
8 | import com.baiiu.filter.util.UIUtil;
9 | import com.xk.trucktrade.R;
10 |
11 | /**
12 | * auther: baiiu
13 | * time: 16/6/5 05 23:30
14 | * description:
15 | */
16 | public class TitleViewHolder extends RecyclerView.ViewHolder {
17 |
18 | public TitleViewHolder(Context mContext, ViewGroup parent) {
19 | super(UIUtil.infalte(mContext, R.layout.holder_title, parent));
20 | }
21 |
22 |
23 | public void bind(String s) {
24 | ((TextView) itemView).setText(s);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/custom/dropdownmenu/view/doubleGrid/GridViewInScrollView.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.custom.dropdownmenu.view.doubleGrid;
2 |
3 | import android.content.Context;
4 | import android.util.AttributeSet;
5 | import android.widget.GridView;
6 |
7 | /**
8 | * 描述:嵌套在ScrollView中的GridView,使得数据完全展示
9 | */
10 | public class GridViewInScrollView extends GridView {
11 |
12 | public GridViewInScrollView(Context context) {
13 | super(context);
14 | }
15 |
16 | public GridViewInScrollView(Context context, AttributeSet attrs) {
17 | super(context, attrs);
18 | }
19 |
20 | public GridViewInScrollView(Context context, AttributeSet attrs, int defStyleAttr) {
21 | super(context, attrs, defStyleAttr);
22 | }
23 |
24 | @Override
25 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
26 | if (isInEditMode()) {
27 | super.onMeasure(widthMeasureSpec, heightMeasureSpec);
28 | return;
29 | }
30 |
31 | int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
32 | super.onMeasure(widthMeasureSpec, expandSpec);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/fragment/FindCargoFragment.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.fragment;
2 |
3 | import android.util.Log;
4 | import android.view.View;
5 |
6 | import com.xk.trucktrade.R;
7 | import com.xk.trucktrade.ui.adapter.CargoInfoAdapter;
8 | import com.xk.trucktrade.ui.adapter.TruckInfoAdapter;
9 |
10 | /**
11 | * Created by xk on 2016/6/2 20:05.
12 | */
13 | public class FindCargoFragment extends TabTopRefreshBaseFragment {
14 | @Override
15 | protected void setLayoutRes() {
16 | layoutRes = R.layout.fragment_findcargo;
17 | }
18 |
19 | @Override
20 | protected void findViews(View v) {
21 | super.findViews(v);
22 | }
23 |
24 | @Override
25 | protected void setupViews(View v) {
26 | super.setupViews(v);
27 | rv_list.setAdapter(new CargoInfoAdapter(getContext()));
28 |
29 | }
30 |
31 | @Override
32 | protected void setListener(View v) {
33 | super.setListener(v);
34 |
35 | }
36 |
37 | @Override
38 | protected void fetchData(View v) {
39 | super.fetchData(v);
40 | }
41 |
42 |
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/fragment/FragmentFactory.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.fragment;
2 |
3 | import android.support.v4.app.Fragment;
4 |
5 | import java.util.HashMap;
6 | import java.util.Map;
7 |
8 | /**
9 | * Created by xk on 2016/6/2 21:00.
10 | */
11 | public class FragmentFactory {
12 | public FragmentFactory() {
13 | fragments = new HashMap();
14 | }
15 |
16 | private Map fragments;
17 |
18 | public Fragment getFragment(int position) {
19 | if (fragments.get(position) == null) {
20 | //new 并且添加到map中
21 | Fragment fragment;
22 | switch (position) {
23 | case 1:
24 | fragment = new FindTruckFragment();
25 | fragments.put(1, fragment);
26 | break;
27 | case 2:
28 | fragment = new FindCargoFragment();
29 | fragments.put(2, fragment);
30 | break;
31 | case 3:
32 | fragment = new MessageFragment();
33 | fragments.put(3, fragment);
34 | break;
35 | case 4:
36 | fragment = new MeFragment();
37 | fragments.put(4, fragment);
38 | break;
39 | }
40 | }
41 | return fragments.get(position);
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/ui/fragment/MessageFragment.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.ui.fragment;
2 |
3 | import android.view.View;
4 | import android.widget.RelativeLayout;
5 |
6 | import com.xk.trucktrade.R;
7 | import com.xk.trucktrade.ui.activity.FindFriendActivity;
8 | import com.xk.trucktrade.ui.base.BaseFragment;
9 | import com.xk.trucktrade.utils.ViewUtils;
10 |
11 | /**
12 | * Created by xk on 2016/6/2 20:05.
13 | */
14 | public class MessageFragment extends BaseFragment {
15 | private RelativeLayout rl_find_friend;
16 |
17 | @Override
18 | protected void setLayoutRes() {
19 | layoutRes = R.layout.fragment_message;
20 |
21 | }
22 |
23 | @Override
24 | protected void findViews(View v) {
25 | rl_find_friend = ViewUtils.findViewById(v, R.id.rl_find_friend);
26 | }
27 |
28 | @Override
29 | protected void setupViews(View v) {
30 |
31 |
32 | // LCChatKit.getInstance().open(AVUser.getCurrentUser().getObjectId(), new AVIMClientCallback() {
33 | // @Override
34 | // public void done(AVIMClient avimClient, AVIMException e) {
35 | // if (null == e) {
36 | // Intent intent = new Intent(getContext(), LCIMConversationActivity.class);
37 | // intent.putExtra(LCIMConstants.PEER_ID, "575a8ca56be3ff0069475d91");
38 | // startActivity(intent);
39 | // } else {
40 | // toast(e.toString());
41 | // }
42 | // }
43 | // });
44 | }
45 |
46 | @Override
47 | protected void setListener(View v) {
48 | rl_find_friend.setOnClickListener(new View.OnClickListener() {
49 | @Override
50 | public void onClick(View v) {
51 | toActivity(FindFriendActivity.class);
52 | }
53 | });
54 | }
55 |
56 | @Override
57 | protected void fetchData(View v) {
58 | // LCIMConversationItemCache.getInstance().initDB(AVOSCloud.applicationContext, AVUser.getCurrentUser().getObjectId(), new AVCallback() {
59 | // @Override
60 | // protected void internalDone0(Object o, AVException e) {
61 | //
62 | // }
63 | // });
64 |
65 |
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/utils/AvatarProduceUtil.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.utils;
2 |
3 | import android.content.Context;
4 | import android.graphics.Bitmap;
5 | import android.util.Log;
6 | import android.view.LayoutInflater;
7 | import android.view.View;
8 | import android.widget.TextView;
9 |
10 | import com.xk.trucktrade.R;
11 |
12 | import java.util.Random;
13 |
14 | /**
15 | * Created by xk on 2016/7/28 17:23.
16 | */
17 | public class AvatarProduceUtil {
18 | private int color;
19 | private Context context;
20 | private Random random;
21 | private int tag=1;
22 |
23 | public AvatarProduceUtil(Context context) {
24 | random = new Random();
25 | this.context=context;
26 | }
27 |
28 | public Bitmap getBitmapByText(String sText) {
29 | tag++;
30 | LayoutInflater factory = LayoutInflater.from(context);
31 | View view = factory.inflate(R.layout.layout_avatar, null);
32 | View root = view.findViewById(R.id.root);
33 | int i = random.nextInt(5);
34 | switch (tag%4) {
35 | case 0:
36 | color = R.color.indigo_500;
37 | break;
38 | case 1:
39 | color = R.color.red_500;
40 | break;
41 | case 2:
42 | color = R.color.blue_500;
43 | break;
44 | case 3:
45 | color = R.color.teal_500;
46 | break;
47 | }
48 | root.setBackgroundColor(context.getResources().getColor(color));
49 | //获得布局文件中的TextView
50 | TextView text = (TextView) view.findViewById(R.id.text);
51 | if (sText.length()==1) {
52 | text.setText(sText.substring(0,1));
53 | text.setTextSize(50);
54 | }else{
55 | text.setText(sText.substring(0,1));
56 | text.setTextSize(50);
57 | }
58 | //启用绘图缓存
59 | view.setDrawingCacheEnabled(true);
60 | //调用下面这个方法非常重要,如果没有调用这个方法,得到的bitmap为null
61 | view.measure(View.MeasureSpec.makeMeasureSpec(256, View.MeasureSpec.EXACTLY),
62 | View.MeasureSpec.makeMeasureSpec(256, View.MeasureSpec.EXACTLY));
63 | //这个方法也非常重要,设置布局的尺寸和位置
64 | view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight());
65 | //获得绘图缓存中的Bitmap
66 | view.buildDrawingCache();
67 | Bitmap bitmap = view.getDrawingCache();
68 | return bitmap;
69 |
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/utils/Base64Util.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.utils;
2 |
3 | public class Base64Util {
4 |
5 | private final static char[] ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
6 | .toCharArray();
7 |
8 | private static int[] toInt = new int[128];
9 |
10 | static {
11 | for (int i = 0; i < ALPHABET.length; i++) {
12 | toInt[ALPHABET[i]] = i;
13 | }
14 | }
15 |
16 | /**
17 | * Translates the specified byte array into Base64 string.
18 | *
19 | * @param buf
20 | * the byte array (not null)
21 | * @return the translated Base64 string (not null)
22 | */
23 | public static String encode(byte[] buf) {
24 | int size = buf.length;
25 | char[] ar = new char[((size + 2) / 3) * 4];
26 | int a = 0;
27 | int i = 0;
28 | while (i < size) {
29 | byte b0 = buf[i++];
30 | byte b1 = (i < size) ? buf[i++] : 0;
31 | byte b2 = (i < size) ? buf[i++] : 0;
32 |
33 | int mask = 0x3F;
34 | ar[a++] = ALPHABET[(b0 >> 2) & mask];
35 | ar[a++] = ALPHABET[((b0 << 4) | ((b1 & 0xFF) >> 4)) & mask];
36 | ar[a++] = ALPHABET[((b1 << 2) | ((b2 & 0xFF) >> 6)) & mask];
37 | ar[a++] = ALPHABET[b2 & mask];
38 | }
39 | switch (size % 3) {
40 | case 1:
41 | ar[--a] = '=';
42 | case 2:
43 | ar[--a] = '=';
44 | }
45 | return new String(ar);
46 | }
47 |
48 | /**
49 | * Translates the specified Base64 string into a byte array.
50 | *
51 | * @param s
52 | * the Base64 string (not null)
53 | * @return the byte array (not null)
54 | */
55 | public static byte[] decode(String s) {
56 | int delta = s.endsWith("==") ? 2 : s.endsWith("=") ? 1 : 0;
57 | byte[] buffer = new byte[s.length() * 3 / 4 - delta];
58 | int mask = 0xFF;
59 | int index = 0;
60 | for (int i = 0; i < s.length(); i += 4) {
61 | int c0 = toInt[s.charAt(i)];
62 | int c1 = toInt[s.charAt(i + 1)];
63 | buffer[index++] = (byte) (((c0 << 2) | (c1 >> 4)) & mask);
64 | if (index >= buffer.length) {
65 | return buffer;
66 | }
67 | int c2 = toInt[s.charAt(i + 2)];
68 | buffer[index++] = (byte) (((c1 << 4) | (c2 >> 2)) & mask);
69 | if (index >= buffer.length) {
70 | return buffer;
71 | }
72 | int c3 = toInt[s.charAt(i + 3)];
73 | buffer[index++] = (byte) (((c2 << 6) | c3) & mask);
74 | }
75 | return buffer;
76 | }
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/utils/RelativeDateFormat.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.utils;
2 |
3 | import java.text.SimpleDateFormat;
4 | import java.util.Date;
5 |
6 | /**
7 | * 获取相对时间
8 | * Copy from http://my.oschina.net/u/1177694/blog/498218
9 | */
10 | public class RelativeDateFormat {
11 |
12 | private static final long ONE_MINUTE = 60000L;
13 | private static final long ONE_HOUR = 3600000L;
14 |
15 | private static final String ONE_SECOND_AGO = "秒前";
16 | private static final String ONE_MINUTE_AGO = "分钟前";
17 | private static final String ONE_HOUR_AGO = "小时前";
18 |
19 | /**
20 | * 返回相对时间字符串, 如果超过两天,就返回用 format 格式化的字符串
21 | *
22 | * @param date 要转换的日期
23 | * @param format 超过两天使用的转换方式
24 | * @return 日期字符串
25 | */
26 | public static String format(Date date, SimpleDateFormat format) {
27 | long delta = new Date().getTime() - date.getTime();
28 | if (delta < 1L * ONE_MINUTE) {
29 | long seconds = toSeconds(delta);
30 | return (seconds <= 0 ? 1 : seconds) + ONE_SECOND_AGO;
31 | }
32 | if (delta < 45L * ONE_MINUTE) {
33 | long minutes = toMinutes(delta);
34 | return (minutes <= 0 ? 1 : minutes) + ONE_MINUTE_AGO;
35 | }
36 | if (delta < 24L * ONE_HOUR) {
37 | long hours = toHours(delta);
38 | return (hours <= 0 ? 1 : hours) + ONE_HOUR_AGO;
39 | }
40 | if (delta < 48L * ONE_HOUR) {
41 | return "昨天";
42 | }
43 | if (delta < 72L * ONE_HOUR) {
44 | return "前天";
45 | }
46 |
47 | return format.format(date);
48 |
49 | }
50 |
51 | private static long toSeconds(long date) {
52 | return date / 1000L;
53 | }
54 |
55 | private static long toMinutes(long date) {
56 | return toSeconds(date) / 60L;
57 | }
58 |
59 | private static long toHours(long date) {
60 | return toMinutes(date) / 60L;
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/java/com/xk/trucktrade/utils/SharedPreferencesUtil.java:
--------------------------------------------------------------------------------
1 | package com.xk.trucktrade.utils;
2 |
3 | import android.content.Context;
4 | import android.content.SharedPreferences;
5 |
6 | /**
7 | * Created by xk on 2016/4/25 15:03.
8 | */
9 | public class SharedPreferencesUtil {
10 | private static SharedPreferences sp;
11 | private static Context context;
12 |
13 | public static void saveString(Context context, String key, String values) {
14 | context.getSharedPreferences("config", Context.MODE_PRIVATE).edit().putString(key, values).commit();
15 | }
16 |
17 | public static String getString(Context context, String key) {
18 | String config = context.getSharedPreferences("config", Context.MODE_PRIVATE).getString(key, "");
19 | return config;
20 | }
21 |
22 | public static void saveBoolean(Context context, String key, boolean b) {
23 | context.getSharedPreferences("config", Context.MODE_PRIVATE).edit().putBoolean(key, b).commit();
24 | }
25 |
26 | public static boolean getBoolean(Context context, String key) {
27 | boolean config = context.getSharedPreferences("config", Context.MODE_PRIVATE).getBoolean(key, false);
28 | return config;
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_base_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_base_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_cloud_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_cloud_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_map_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_map_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_radar_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_radar_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_search_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_search_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_util_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_util_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/liblocSDK6a.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/arm64-v8a/liblocSDK6a.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_base_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_base_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_cloud_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_cloud_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_map_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_map_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_radar_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_radar_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_search_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_search_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_util_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_util_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/liblocSDK6a.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi-v7a/liblocSDK6a.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi/libBaiduMapSDK_base_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi/libBaiduMapSDK_base_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi/libBaiduMapSDK_cloud_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi/libBaiduMapSDK_cloud_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi/libBaiduMapSDK_map_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi/libBaiduMapSDK_map_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi/libBaiduMapSDK_radar_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi/libBaiduMapSDK_radar_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi/libBaiduMapSDK_search_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi/libBaiduMapSDK_search_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi/libBaiduMapSDK_util_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi/libBaiduMapSDK_util_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/armeabi/liblocSDK6a.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/armeabi/liblocSDK6a.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86/libBaiduMapSDK_base_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86/libBaiduMapSDK_base_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86/libBaiduMapSDK_cloud_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86/libBaiduMapSDK_cloud_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86/libBaiduMapSDK_map_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86/libBaiduMapSDK_map_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86/libBaiduMapSDK_radar_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86/libBaiduMapSDK_radar_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86/libBaiduMapSDK_search_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86/libBaiduMapSDK_search_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86/libBaiduMapSDK_util_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86/libBaiduMapSDK_util_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86/liblocSDK6a.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86/liblocSDK6a.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86_64/libBaiduMapSDK_base_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86_64/libBaiduMapSDK_base_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86_64/libBaiduMapSDK_cloud_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86_64/libBaiduMapSDK_cloud_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86_64/libBaiduMapSDK_map_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86_64/libBaiduMapSDK_map_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86_64/libBaiduMapSDK_radar_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86_64/libBaiduMapSDK_radar_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86_64/libBaiduMapSDK_search_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86_64/libBaiduMapSDK_search_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86_64/libBaiduMapSDK_util_v4_0_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86_64/libBaiduMapSDK_util_v4_0_0.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/jniLibs/x86_64/liblocSDK6a.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/jniLibs/x86_64/liblocSDK6a.so
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/anim/anim_stay.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/anim/default_anim_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
14 |
15 |
16 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/anim/default_anim_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
14 |
18 |
19 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/btn_login.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/circle_blue.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/circle_green.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/circle_primary.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/circle_write.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/circle_write_line.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/news_article_icon_gray_line_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/rect_blue_stroke.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/rect_grey_stroke.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/round_rectangle_line_primary.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/round_rectangle_line_secondcolor.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/round_rectangle_line_write.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/round_rectangle_write.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/selector_double_grid.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/selector_filter_grid.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/shadow_black.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
9 |
10 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/drawable/shap_frame_radius.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/activity_find_friend.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
12 |
13 |
20 |
21 |
32 |
33 |
39 |
40 |
44 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/activity_home.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
12 |
13 |
17 |
18 |
21 |
22 |
27 |
28 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/activity_introduce.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
18 |
19 |
20 |
25 |
26 |
30 |
31 |
36 |
37 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/activity_login.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
14 |
15 |
20 |
21 |
31 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/activity_my_trucks.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
17 |
18 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/activity_name.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
18 |
19 |
20 |
26 |
27 |
31 |
32 |
37 |
38 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/activity_select_exact_position.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
17 |
18 |
22 |
23 |
24 |
25 |
31 |
32 |
36 |
37 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/dialog_loading.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
19 |
20 |
25 |
26 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/fragment_findcargo.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
14 |
15 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/fragment_findtruck.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
12 |
13 |
17 |
21 |
25 |
26 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/fragment_message.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
23 |
24 |
34 |
35 |
36 |
39 |
46 |
47 |
52 |
53 |
59 |
60 |
61 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/fragment_splash.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
16 |
17 |
27 |
28 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/holder_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/holder_title.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/item_add_truck.xml:
--------------------------------------------------------------------------------
1 |
4 |
10 |
20 |
21 |
26 |
27 |
34 |
35 |
36 |
37 |
41 |
42 |
43 |
48 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/layout_avatar.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
15 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/layout_optionitem.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
23 |
24 |
35 |
36 |
44 |
45 |
54 |
55 |
62 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/layout_publish.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
17 |
18 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/layout_publish_cargo.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
15 |
25 |
26 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/layout_publish_truck.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
15 |
25 |
26 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/merge_filter_double_grid.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
13 |
14 |
15 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/merge_filter_third.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
13 |
14 |
15 |
21 |
22 |
23 |
35 |
36 |
37 |
44 |
45 |
46 |
58 |
59 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/layout/toolbar.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
18 |
19 |
31 |
32 |
43 |
44 |
45 |
56 |
57 |
69 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/add.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/add_gray.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/add_gray.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/approve.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/approve.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/authentication.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/authentication.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/authentication_no.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/authentication_no.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/bianhao.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/bianhao.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/company.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/company.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/company_no.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/company_no.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/current_position.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/current_position.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/date_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/date_icon.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/detail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/detail.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/dianliang.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/dianliang.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/didian.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/didian.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/dingwei.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/dingwei.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/exact_start_place.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/exact_start_place.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/exit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/exit.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/expansion.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/expansion.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/headphone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/headphone.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_action_done.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_action_done.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_arrow_back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_arrow_back.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_arrow_forward.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_arrow_forward.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_clear.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_clear.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_history_settle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_history_settle.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_publish.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_publish.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/ic_search.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/icon_call.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/icon_call.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/icon_to.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/icon_to.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/id.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/id.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/introduce.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/introduce.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/luxian.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/luxian.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/message.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/message.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/message2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/message2.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/my_trucks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/my_trucks.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/ok.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/ok.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/person.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/person.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/personal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/personal.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/phonecontact.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/phonecontact.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/position.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/position.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/publish_cargo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/publish_cargo.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/publish_truck.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/publish_truck.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/realname.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/realname.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/realname_no.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/realname_no.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/retract.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/retract.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/right_jiantou.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/right_jiantou.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/search_friend.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/search_friend.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/search_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/search_icon.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/select_no.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/select_no.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/select_yes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/select_yes.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/shidu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/shidu.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/start.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/start.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/start_place.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/start_place.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/stop_place.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/stop_place.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_cargo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_cargo.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_cargo_select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_cargo_select.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_me.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_me.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_me_select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_me_select.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_message.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_message.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_message_select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_message_select.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_truck.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_truck.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_truck_select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/tab_icon_truck_select.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/time.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/time.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-hdpi/trck.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-hdpi/trck.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/values/array.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 | @color/scheme_red
8 | @color/scheme_red_dark
9 | @color/scheme_red_light
10 | #448AFF
11 | #212121
12 | #727272
13 | #FFFFFF
14 | #B6B6B6
15 |
16 | #E3E3E3
17 | #FAFAFA
18 |
19 | @color/scheme_red
20 |
21 | #cccccc
22 |
23 |
24 |
25 | #2D4059
26 | #FFCDD2
27 | #F44336
28 | #D32F2F
29 | #F07B3F
30 | #FFD460
31 |
32 | #00B8A9
33 | #99d5d9f2
34 |
35 |
36 | #e51c23
37 | #5677fc
38 | #3f51b5
39 | #673ab7
40 | #009688
41 |
42 |
43 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 | 56dp
7 | 16dp
8 |
9 | 50dp
10 | 65dp
11 |
12 | 12sp
13 | 14sp
14 | 16sp
15 | 18sp
16 | 20sp
17 | 24sp
18 |
19 |
20 |
21 | 8dp
22 | 4dp
23 |
24 | 0dp
25 |
26 |
27 |
28 | 78dp
29 |
30 | 55dp
31 |
32 |
33 | 53dp
34 |
35 | 80dp
36 |
37 | 100dp
38 |
39 | 48dp
40 | 12dp
41 |
42 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | TruckTrade
3 |
4 |
--------------------------------------------------------------------------------
/client/TruckTrade/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
14 |
18 |
19 |
24 |
34 |
35 |
42 |
43 |
--------------------------------------------------------------------------------
/client/TruckTrade/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | //这里是 LeanCloud 的包仓库
7 | maven {
8 | url "http://mvn.leancloud.cn/nexus/content/repositories/releases"
9 | }
10 | }
11 | dependencies {
12 | classpath 'com.android.tools.build:gradle:2.2.3'
13 |
14 | // NOTE: Do not place your application dependencies here; they belong
15 | // in the individual module build.gradle files
16 | }
17 | }
18 |
19 | allprojects {
20 | repositories {
21 | jcenter()
22 | //这里是 LeanCloud 的包仓库
23 | maven {
24 | url "http://mvn.leancloud.cn/nexus/content/repositories/releases"
25 | }
26 | }
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | android {
4 | compileSdkVersion 23
5 | buildToolsVersion "23.0.3"
6 |
7 | defaultConfig {
8 | minSdkVersion 14
9 | targetSdkVersion 23
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | testCompile 'junit:junit:4.12'
23 | compile 'com.android.support:appcompat-v7:23.3.0'
24 | }
25 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/baiiu/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/java/com/baiiu/filter/adapter/BaseBaseAdapter.java:
--------------------------------------------------------------------------------
1 | package com.baiiu.filter.adapter;
2 |
3 | import android.content.Context;
4 | import android.view.View;
5 | import android.view.ViewGroup;
6 | import android.widget.BaseAdapter;
7 |
8 | import java.util.ArrayList;
9 | import java.util.List;
10 |
11 | public abstract class BaseBaseAdapter extends BaseAdapter {
12 |
13 | public List list;
14 |
15 | protected Context context;
16 |
17 | public BaseBaseAdapter(List list, Context context) {
18 | super();
19 | setList(list);
20 | this.context = context;
21 | }
22 |
23 | /**
24 | * 设置数据。
25 | * 会清空原集合所有数据,后添加。
26 | *
27 | * @param list
28 | */
29 | public void setList(List list) {
30 |
31 | if (list == null) {
32 | list = new ArrayList(0);
33 | }
34 |
35 | this.list = list;
36 |
37 | notifyDataSetChanged();
38 | }
39 |
40 | public List getList() {
41 | return list;
42 | }
43 |
44 | /**
45 | * 添加集合数据到原集合首位,下拉刷新时使用
46 | *
47 | * @param list
48 | */
49 | public void addToFirst(List list) {
50 | if (list == null)
51 | return;
52 | this.list.addAll(0, list);
53 | notifyDataSetChanged();
54 | }
55 |
56 | public void addToFirst(T t) {
57 | if (t == null)
58 | return;
59 | this.list.add(0, t);
60 | notifyDataSetChanged();
61 | }
62 |
63 | /**
64 | * 添加数据到末尾,用于上拉加载等情况。
65 | * 不清楚原集合,添加到末尾。
66 | *
67 | * @param list
68 | */
69 | public void addToLast(List list) {
70 | if (list == null)
71 | return;
72 | this.list.addAll(list);
73 | notifyDataSetChanged();
74 | }
75 |
76 | /**
77 | * 添加元素到集合末尾
78 | *
79 | * @param t
80 | */
81 | public void addToLast(T t) {
82 | if (t == null)
83 | return;
84 | this.list.add(t);
85 | notifyDataSetChanged();
86 | }
87 |
88 | @Override
89 | public int getCount() {
90 | return list.size();
91 | }
92 |
93 | @Override
94 | public T getItem(int position) {
95 | return list.get(position);
96 | }
97 |
98 | @Override
99 | public long getItemId(int position) {
100 | return position;
101 | }
102 |
103 | @Override
104 | public abstract View getView(int position, View convertView,
105 | ViewGroup parent);
106 |
107 | }
108 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/java/com/baiiu/filter/adapter/MenuAdapter.java:
--------------------------------------------------------------------------------
1 | package com.baiiu.filter.adapter;
2 |
3 | import android.view.View;
4 | import android.widget.FrameLayout;
5 |
6 | /**
7 | * author: baiiu
8 | * date: on 16/1/17 21:03
9 | * description:
10 | */
11 | public interface MenuAdapter {
12 |
13 | /**
14 | * 设置筛选条目个数
15 | */
16 | int getMenuCount();
17 |
18 | /**
19 | * 设置每个筛选器默认Title
20 | */
21 | String getMenuTitle(int position);
22 |
23 | /**
24 | * 设置每个筛选条目距离底部距离
25 | */
26 | int getBottomMargin(int position);
27 |
28 |
29 | /**
30 | * 设置每个筛选条目的View
31 | */
32 | View getView(int position, FrameLayout parentContainer);
33 | }
34 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/java/com/baiiu/filter/adapter/SimpleTextAdapter.java:
--------------------------------------------------------------------------------
1 | package com.baiiu.filter.adapter;
2 |
3 | import android.content.Context;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 |
8 | import com.baiiu.filter.R;
9 | import com.baiiu.filter.util.UIUtil;
10 | import com.baiiu.filter.view.FilterCheckedTextView;
11 |
12 | import java.util.List;
13 |
14 | /**
15 | * Created by baiiu on 15/12/23.
16 | * 菜单条目适配器
17 | */
18 | public abstract class SimpleTextAdapter extends BaseBaseAdapter {
19 |
20 | private final LayoutInflater inflater;
21 |
22 | public SimpleTextAdapter(List list, Context context) {
23 | super(list, context);
24 | inflater = LayoutInflater.from(context);
25 | }
26 |
27 | public static class FilterItemHolder {
28 | FilterCheckedTextView checkedTextView;
29 | }
30 |
31 | @Override
32 | public View getView(int position, View convertView, ViewGroup parent) {
33 | FilterItemHolder holder;
34 |
35 | if (convertView == null) {
36 | convertView = inflater.inflate(R.layout.lv_item_filter, parent, false);
37 |
38 | holder = new FilterItemHolder();
39 | holder.checkedTextView = (FilterCheckedTextView) convertView;
40 | holder.checkedTextView.setPadding(0, UIUtil.dp(context, 15), 0, UIUtil.dp(context, 15));
41 | initCheckedTextView(holder.checkedTextView);
42 |
43 | convertView.setTag(holder);
44 | } else {
45 | holder = (FilterItemHolder) convertView.getTag();
46 | }
47 |
48 | T t = list.get(position);
49 | holder.checkedTextView.setText(provideText(t));
50 |
51 | return convertView;
52 | }
53 |
54 | public abstract String provideText(T t);
55 |
56 | protected void initCheckedTextView(FilterCheckedTextView checkedTextView) {
57 | }
58 |
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/java/com/baiiu/filter/interfaces/OnFilterDoneListener.java:
--------------------------------------------------------------------------------
1 | package com.baiiu.filter.interfaces;
2 |
3 | /**
4 | * author: baiiu
5 | * date: on 16/1/21 23:30
6 | * description:
7 | */
8 | public interface OnFilterDoneListener {
9 | void onFilterDone(int position, String positionTitle, String urlValue);
10 | }
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/java/com/baiiu/filter/interfaces/OnFilterItemClickListener.java:
--------------------------------------------------------------------------------
1 | package com.baiiu.filter.interfaces;
2 |
3 | /**
4 | * author: baiiu
5 | * date: on 16/2/16 15:49
6 | * description:
7 | */
8 | public interface OnFilterItemClickListener {
9 | void onItemClick(DATA item);
10 | }
11 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/java/com/baiiu/filter/typeview/SingleListView.java:
--------------------------------------------------------------------------------
1 | package com.baiiu.filter.typeview;
2 |
3 | import android.content.Context;
4 | import android.graphics.Color;
5 | import android.graphics.drawable.ColorDrawable;
6 | import android.util.AttributeSet;
7 | import android.view.View;
8 | import android.widget.AdapterView;
9 | import android.widget.ListView;
10 |
11 | import com.baiiu.filter.adapter.BaseBaseAdapter;
12 | import com.baiiu.filter.interfaces.OnFilterItemClickListener;
13 | import com.baiiu.filter.util.CommonUtil;
14 |
15 | import java.util.List;
16 |
17 | /**
18 | * Created by baiiu on 15/12/17.
19 | * 双列ListView
20 | */
21 | public class SingleListView extends ListView implements AdapterView.OnItemClickListener {
22 |
23 | private BaseBaseAdapter mAdapter;
24 | private OnFilterItemClickListener mOnItemClickListener;
25 |
26 | public SingleListView(Context context) {
27 | this(context, null);
28 | }
29 |
30 | public SingleListView(Context context, AttributeSet attrs) {
31 | super(context, attrs);
32 | init(context);
33 | }
34 |
35 | public SingleListView(Context context, AttributeSet attrs, int defStyleAttr) {
36 | super(context, attrs, defStyleAttr);
37 | init(context);
38 | }
39 |
40 | private void init(Context context) {
41 | setChoiceMode(ListView.CHOICE_MODE_SINGLE);
42 | setDivider(null);
43 | setDividerHeight(0);
44 | setSelector(new ColorDrawable(Color.TRANSPARENT));
45 |
46 | setOnItemClickListener(this);
47 | }
48 |
49 |
50 | public SingleListView adapter(BaseBaseAdapter adapter) {
51 | this.mAdapter = adapter;
52 | setAdapter(adapter);
53 | return this;
54 | }
55 |
56 | public SingleListView onItemClick(OnFilterItemClickListener onItemClickListener) {
57 | this.mOnItemClickListener = onItemClickListener;
58 | return this;
59 | }
60 |
61 | public void setList(List list, int checkedPositoin) {
62 | mAdapter.setList(list);
63 |
64 | if (checkedPositoin != -1) {
65 | setItemChecked(checkedPositoin, true);
66 | }
67 | }
68 |
69 |
70 | @Override
71 | public void onItemClick(AdapterView> parent, View view, int position, long id) {
72 | if (CommonUtil.isFastDoubleClick()) {
73 | return;
74 | }
75 |
76 | DATA item = mAdapter.getItem(position);
77 | if (mOnItemClickListener != null) {
78 | mOnItemClickListener.onItemClick(item);
79 | }
80 | }
81 |
82 |
83 | }
84 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/java/com/baiiu/filter/util/CommonUtil.java:
--------------------------------------------------------------------------------
1 | package com.baiiu.filter.util;
2 |
3 | import android.text.TextUtils;
4 |
5 | import java.util.ArrayList;
6 | import java.util.List;
7 |
8 | /**
9 | * Created by baiiu on 15/11/25.
10 | * 简单的通用util
11 | */
12 | public class CommonUtil {
13 |
14 | public static boolean isEmpty(List list) {
15 | return list == null || list.isEmpty();
16 | }
17 |
18 | public static boolean notEmpty(List list) {
19 | return !isEmpty(list);
20 | }
21 |
22 | //全部为空
23 | public static boolean isAllEmpty(List... lists) {
24 | List booleans = new ArrayList<>();
25 |
26 | for (List list : lists) {
27 | if (isEmpty(list)) {
28 | booleans.add(Boolean.TRUE);
29 | }
30 | }
31 |
32 | return notEmpty(booleans) && booleans.contains(Boolean.FALSE);
33 | }
34 |
35 | //只有一个为空
36 | public static boolean isOneEmpty(List... lists) {
37 | for (List list : lists) {
38 | if (isEmpty(list)) {
39 | return true;
40 | }
41 | }
42 |
43 | return false;
44 | }
45 |
46 |
47 | //====================================================================
48 | //====================================================================
49 |
50 | public static boolean isEmpty(String s) {
51 | return s == null || TextUtils.isEmpty(s);
52 | }
53 |
54 | public static boolean notEmpty(String s) {
55 | return s != null && !TextUtils.isEmpty(s.trim());
56 | }
57 |
58 | public static boolean isAllEmpty(String... strings) {
59 | List booleans = new ArrayList<>();
60 |
61 | for (String s : strings) {
62 | booleans.add(CommonUtil.isEmpty(s));
63 | }
64 |
65 | return notEmpty(booleans) && booleans.contains(Boolean.FALSE);
66 | }
67 |
68 | //只有一个为空
69 | public static boolean isOneEmpty(String... strings) {
70 | for (String s : strings) {
71 | if (isEmpty(s)) {
72 | return true;
73 | }
74 | }
75 |
76 | return false;
77 | }
78 |
79 | public static long mLastClickTime;
80 |
81 | public static boolean isFastDoubleClick() {
82 | long time = System.currentTimeMillis();
83 | long timeD = time - mLastClickTime;
84 | if (0 < timeD && timeD < 500) {
85 | return true;
86 | }
87 | mLastClickTime = time;
88 | return false;
89 | }
90 |
91 | }
92 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/java/com/baiiu/filter/util/SimpleAnimationListener.java:
--------------------------------------------------------------------------------
1 | package com.baiiu.filter.util;
2 |
3 | import android.view.animation.Animation;
4 |
5 | /**
6 | * author: baiiu
7 | * date: on 15/12/17 13:48
8 | * description:
9 | */
10 | public class SimpleAnimationListener implements Animation.AnimationListener {
11 | @Override
12 | public void onAnimationStart(Animation animation) {
13 |
14 | }
15 |
16 | @Override
17 | public void onAnimationEnd(Animation animation) {
18 |
19 | }
20 |
21 | @Override
22 | public void onAnimationRepeat(Animation animation) {
23 |
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/java/com/baiiu/filter/util/UIUtil.java:
--------------------------------------------------------------------------------
1 | package com.baiiu.filter.util;
2 |
3 | import android.content.Context;
4 | import android.support.annotation.LayoutRes;
5 | import android.util.TypedValue;
6 | import android.view.LayoutInflater;
7 | import android.view.View;
8 | import android.view.ViewGroup;
9 |
10 | /**
11 | * author: baiiu
12 | * date: on 16/2/16 13:55
13 | * description:
14 | */
15 | public class UIUtil {
16 |
17 | public static int dp(Context context, int dp) {
18 | return (int) (TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
19 | dp, context.getResources().getDisplayMetrics()) + 0.5F);
20 | }
21 |
22 |
23 | public static View infalte(Context context, @LayoutRes int layoutId, ViewGroup parent) {
24 | return LayoutInflater.from(context).inflate(layoutId, parent, false);
25 |
26 | }
27 |
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/java/com/baiiu/filter/view/FilterCheckedTextView.java:
--------------------------------------------------------------------------------
1 | package com.baiiu.filter.view;
2 |
3 | import android.content.Context;
4 | import android.util.AttributeSet;
5 | import android.widget.Checkable;
6 | import android.widget.TextView;
7 |
8 | /**
9 | * author: baiiu
10 | * date: on 16/1/17 21:04
11 | * description:
12 | */
13 |
14 | public class FilterCheckedTextView extends TextView implements Checkable {
15 | private boolean mChecked;
16 |
17 | public FilterCheckedTextView(Context context) {
18 | this(context, null);
19 | }
20 |
21 | public FilterCheckedTextView(Context context, AttributeSet attrs) {
22 | this(context, attrs, 0);
23 | }
24 |
25 | public FilterCheckedTextView(Context context, AttributeSet attrs, int defStyleAttr) {
26 | super(context, attrs, defStyleAttr);
27 | }
28 |
29 | @Override
30 | public void setChecked(boolean checked) {
31 | if (checked != mChecked) {
32 | mChecked = checked;
33 | refreshDrawableState();
34 | }
35 | }
36 |
37 | @Override
38 | public boolean isChecked() {
39 | return mChecked;
40 | }
41 |
42 | @Override
43 | public void toggle() {
44 | setChecked(!mChecked);
45 | }
46 |
47 | private static final int[] CHECKED_STATE_SET = {
48 | android.R.attr.state_checked
49 | };
50 |
51 | @Override
52 | protected int[] onCreateDrawableState(int extraSpace) {
53 | final int[] drawableState = super.onCreateDrawableState(extraSpace + 1);
54 | if (isChecked()) {
55 | mergeDrawableStates(drawableState, CHECKED_STATE_SET);
56 | }
57 | return drawableState;
58 | }
59 | }
60 |
61 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/anim/alpha_to_one.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/anim/alpha_to_zero.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/anim/top_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/anim/top_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/drawable-xxhdpi/common_filter_arrow_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/filter-lib/src/main/res/drawable-xxhdpi/common_filter_arrow_down.png
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/drawable-xxhdpi/common_filter_arrow_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/filter-lib/src/main/res/drawable-xxhdpi/common_filter_arrow_up.png
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/drawable/layer_filter_checked.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
6 |
7 |
8 |
9 |
10 | -
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/drawable/layer_filter_unchecked.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
6 |
7 |
8 |
9 |
10 | -
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/drawable/level_filter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/drawable/selector_filter_left.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/drawable/selector_tv_filter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/layout/lv_item_filter.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/layout/merge_filter_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
13 |
14 |
21 |
22 |
29 |
30 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/values/color.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | #7f000000
5 | #e7e7e7
6 | #fafafa
7 | #4285f4
8 | #5a626d
9 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/values/ids.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/client/TruckTrade/filter-lib/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Filter
3 |
4 |
--------------------------------------------------------------------------------
/client/TruckTrade/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/client/TruckTrade/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/client/TruckTrade/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/client/TruckTrade/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Apr 07 10:33:56 CST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/client/TruckTrade/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/client/TruckTrade/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':filter-lib'
2 |
--------------------------------------------------------------------------------
/server/truck/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/server/truck/.mymetadata:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/server/truck/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | truck
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.wst.common.project.facet.core.builder
10 |
11 |
12 |
13 |
14 | org.eclipse.wst.jsdt.core.javascriptValidator
15 |
16 |
17 |
18 |
19 | com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder
20 |
21 |
22 |
23 |
24 | org.eclipse.jdt.core.javabuilder
25 |
26 |
27 |
28 |
29 | com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator
30 |
31 |
32 |
33 |
34 | com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator
35 |
36 |
37 |
38 |
39 | org.eclipse.wst.validation.validationbuilder
40 |
41 |
42 |
43 |
44 | com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder
45 |
46 |
47 |
48 |
49 |
50 | com.genuitec.eclipse.ast.deploy.core.deploymentnature
51 | org.eclipse.jem.workbench.JavaEMFNature
52 | com.genuitec.eclipse.j2eedt.core.webnature
53 | org.eclipse.jdt.core.javanature
54 | org.eclipse.wst.jsdt.core.jsNature
55 | org.eclipse.wst.common.project.facet.core.nature
56 | org.eclipse.wst.common.modulecore.ModuleCoreNature
57 |
58 |
59 |
--------------------------------------------------------------------------------
/server/truck/.settings/.jsdtscope:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/server/truck/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/server/truck/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6 | org.eclipse.jdt.core.compiler.compliance=1.8
7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.source=1.8
13 |
--------------------------------------------------------------------------------
/server/truck/.settings/org.eclipse.wst.common.component:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/server/truck/.settings/org.eclipse.wst.common.project.facet.core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/server/truck/.settings/org.eclipse.wst.jsdt.ui.superType.container:
--------------------------------------------------------------------------------
1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary
--------------------------------------------------------------------------------
/server/truck/.settings/org.eclipse.wst.jsdt.ui.superType.name:
--------------------------------------------------------------------------------
1 | Window
--------------------------------------------------------------------------------
/server/truck/WebRoot/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Dao/IMEIDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Dao/IMEIDao.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Dao/TruckDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Dao/TruckDao.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Dao/TruckSourceDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Dao/TruckSourceDao.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Dao/UserDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Dao/UserDao.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/AutoLoginServlet.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/AutoLoginServlet.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/FriendServlet.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/FriendServlet.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/LoginServlet.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/LoginServlet.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/LogoutServlet.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/LogoutServlet.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/RigisterServlet.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/RigisterServlet.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/TruckServlet.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/TruckServlet.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/TruckSourceServlet.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/TruckSourceServlet.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/UpdateUserinfoServlet.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/UpdateUserinfoServlet.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/UploadHeadServlet.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Servlet/UploadHeadServlet.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Util/Base64Util.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Util/Base64Util.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/Util/JDBCUtil.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/Util/JDBCUtil.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/model/Truck.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/model/Truck.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/model/TruckSource.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/model/TruckSource.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/classes/com/truck/model/User.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/classes/com/truck/model/User.class
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/lib/commons-beanutils-1.7.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/lib/commons-beanutils-1.7.0.jar
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/lib/commons-collections-3.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/lib/commons-collections-3.2.jar
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/lib/commons-lang-2.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/lib/commons-lang-2.4.jar
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/lib/commons-logging-1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/lib/commons-logging-1.1.jar
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/lib/ezmorph-1.0.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/lib/ezmorph-1.0.4.jar
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/lib/json-lib-2.2.2-jdk15.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/lib/json-lib-2.2.2-jdk15.jar
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/lib/mysql-connector-java-3.1.13-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/lib/mysql-connector-java-3.1.13-bin.jar
--------------------------------------------------------------------------------
/server/truck/WebRoot/WEB-INF/lib/servlet-api.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/94kai/TruckRent/14f92c10c0cb38202da52e9436f3b1ab64df7c34/server/truck/WebRoot/WEB-INF/lib/servlet-api.jar
--------------------------------------------------------------------------------
/server/truck/WebRoot/index.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
2 | <%
3 | String path = request.getContextPath();
4 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
5 | %>
6 |
7 |
8 |
9 |
10 |
11 |
12 | My JSP 'index.jsp' starting page
13 |
14 |
15 |
16 |
17 |
18 |
21 |
22 |
23 |
24 | This is my JSP page.
25 |
26 |
27 |
--------------------------------------------------------------------------------
/server/truck/src/com/truck/Servlet/AutoLoginServlet.java:
--------------------------------------------------------------------------------
1 | package com.truck.Servlet;
2 |
3 | import java.io.FileOutputStream;
4 | import java.io.IOException;
5 | import java.io.PrintWriter;
6 | import java.util.Base64;
7 | import java.util.Base64.Decoder;
8 | import java.util.Base64.Encoder;
9 |
10 | import javax.servlet.ServletException;
11 | import javax.servlet.ServletOutputStream;
12 | import javax.servlet.http.HttpServlet;
13 | import javax.servlet.http.HttpServletRequest;
14 | import javax.servlet.http.HttpServletResponse;
15 |
16 | import com.truck.Dao.UserDao;
17 | import com.truck.Dao.IMEIDao;
18 | import com.truck.model.User;
19 |
20 | import net.sf.json.JSONObject;
21 |
22 | public class AutoLoginServlet extends HttpServlet {
23 |
24 | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
25 |
26 | }
27 |
28 |
29 | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
30 | IMEIDao objIMEIDao = new IMEIDao();
31 | String phoneNumber = (String) request.getParameter("phoneNumber");
32 | String imei = (String) request.getParameter("IMEI");
33 | System.out.println(imei);
34 | JSONObject json;
35 | json = (JSONObject) request.getAttribute("json");
36 | if (json == null) {
37 | // 說明客戶端進行自动登陸
38 | json = new JSONObject();
39 | // 查数据 然后返回json
40 | boolean query = objIMEIDao.query(phoneNumber, imei);
41 | json.put("isLogin", query);
42 | ServletOutputStream outputStream = response.getOutputStream();
43 | outputStream.print(json.toString());
44 | outputStream.flush();
45 | outputStream.close();
46 | } else {
47 | // 说明客户端是通过登陆进入的这个servlet 所以进行插入数据
48 | boolean updateIMEI = objIMEIDao.updateIMEI(phoneNumber, imei);
49 | json.put("addIMEIStateCode", updateIMEI?1:0);
50 | ServletOutputStream outputStream = response.getOutputStream();
51 | outputStream.print(json.toString());
52 | outputStream.flush();
53 | outputStream.close();
54 |
55 | }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/server/truck/src/com/truck/Servlet/LoginServlet.java:
--------------------------------------------------------------------------------
1 | package com.truck.Servlet;
2 |
3 | import java.io.IOException;
4 |
5 | import javax.servlet.ServletException;
6 | import javax.servlet.ServletOutputStream;
7 | import javax.servlet.http.HttpServlet;
8 | import javax.servlet.http.HttpServletRequest;
9 | import javax.servlet.http.HttpServletResponse;
10 |
11 | import net.sf.json.JSONObject;
12 |
13 | import com.truck.Dao.UserDao;
14 | import com.truck.model.User;
15 |
16 | public class LoginServlet extends HttpServlet {
17 |
18 | @Override
19 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
20 | // TODO Auto-generated method stub
21 | }
22 |
23 | @Override
24 | protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
25 | UserDao ud = new UserDao();
26 | String phoneNumber = (String) req.getParameter("phoneNumber");
27 | String password = (String) req.getParameter("password");
28 | JSONObject json;
29 | json = (JSONObject) req.getAttribute("json");
30 | if (json == null) {
31 | // 說明客戶端直接要進行登陸
32 | json = new JSONObject();
33 | }
34 |
35 | User user = (User) ud.query(phoneNumber, password);
36 | if (user != null) {
37 | // TODO 登陆成功后 需要在leanCloud注册一个账号 并且存入数据库中 同时put给json
38 | // 同时登陆leanCloud服务器
39 | // 说明登陆成功
40 | json.put("loginStateCode", 1);
41 | json.put("leanCloudId", user.getLeanCloudId() + "");
42 |
43 | // 跳转到ImeiServlet中 设置自动登录
44 | // 调用ImeiServlet 并且把json放到request中 请求loginservlet
45 | req.setAttribute("json", json);
46 | req.getRequestDispatcher("AutoLoginServlet").forward(req, resp);
47 |
48 | } else {
49 | json.put("loginStateCode", 0);
50 | ServletOutputStream outputStream = resp.getOutputStream();
51 | outputStream.print(json.toString());
52 | outputStream.flush();
53 | outputStream.close();
54 | return;
55 | }
56 |
57 | }
58 |
59 | }
--------------------------------------------------------------------------------
/server/truck/src/com/truck/Servlet/LogoutServlet.java:
--------------------------------------------------------------------------------
1 | package com.truck.Servlet;
2 |
3 | import java.io.IOException;
4 |
5 | import javax.servlet.ServletException;
6 | import javax.servlet.ServletOutputStream;
7 | import javax.servlet.http.HttpServlet;
8 | import javax.servlet.http.HttpServletRequest;
9 | import javax.servlet.http.HttpServletResponse;
10 |
11 | import net.sf.json.JSONObject;
12 |
13 | import com.truck.Dao.IMEIDao;
14 | import com.truck.Dao.UserDao;
15 | import com.truck.model.User;
16 |
17 | public class LogoutServlet extends HttpServlet {
18 |
19 | @Override
20 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
21 | // TODO Auto-generated method stub
22 | }
23 |
24 | @Override
25 | protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
26 | IMEIDao imerDao = new IMEIDao();
27 | String phoneNumber = (String) req.getParameter("phoneNumber");
28 | JSONObject json = new JSONObject();
29 | boolean deleteIMEI = imerDao.deleteIMEI(phoneNumber);
30 | if (deleteIMEI) {
31 | json.put("logout", 1);
32 | } else {
33 | json.put("logout", 0);
34 | }
35 | ServletOutputStream outputStream = resp.getOutputStream();
36 | outputStream.print(json.toString());
37 | outputStream.flush();
38 | outputStream.close();
39 | return;
40 | }
41 |
42 | }
--------------------------------------------------------------------------------
/server/truck/src/com/truck/Servlet/RigisterServlet.java:
--------------------------------------------------------------------------------
1 | package com.truck.Servlet;
2 |
3 | import java.io.IOException;
4 | import java.io.PrintWriter;
5 | import javax.servlet.ServletException;
6 | import javax.servlet.ServletOutputStream;
7 | import javax.servlet.http.HttpServlet;
8 | import javax.servlet.http.HttpServletRequest;
9 | import javax.servlet.http.HttpServletResponse;
10 | import net.sf.json.JSONObject;
11 | import com.truck.Dao.UserDao;
12 |
13 | public class RigisterServlet extends HttpServlet {
14 | // private UserDao userDao;
15 |
16 | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
17 | doPost(request, response);
18 | }
19 |
20 | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
21 | UserDao ud = new UserDao();
22 | JSONObject json = new JSONObject();
23 |
24 | String phoneNumber = (String) request.getParameter("phoneNumber");
25 | String password = (String) request.getParameter("password");
26 | int insertCode = ud.addUser(phoneNumber, password);
27 |
28 | if (insertCode < 0) {
29 | json.put("registerStateCode", 0);
30 | ServletOutputStream outputStream = response.getOutputStream();
31 | outputStream.print(json.toString());
32 | outputStream.flush();
33 | outputStream.close();
34 | return;
35 | } else {
36 | // 否则调用logionservlet 并且把json放到request中 请求loginservlet
37 | json.put("registerStateCode", 1);
38 |
39 | request.setAttribute("json", json);
40 | request.getRequestDispatcher("LoginServlet").forward(request, response);
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/server/truck/src/com/truck/Servlet/TruckServlet.java:
--------------------------------------------------------------------------------
1 | package com.truck.Servlet;
2 |
3 | import java.io.IOException;
4 | import java.util.Collection;
5 | import java.util.List;
6 |
7 | import javax.servlet.ServletException;
8 | import javax.servlet.ServletOutputStream;
9 | import javax.servlet.http.HttpServlet;
10 | import javax.servlet.http.HttpServletRequest;
11 | import javax.servlet.http.HttpServletResponse;
12 |
13 | import com.truck.Dao.TruckDao;
14 | import com.truck.model.Truck;
15 |
16 | import net.sf.json.JSONArray;
17 | import net.sf.json.JSONObject;
18 |
19 | public class TruckServlet extends HttpServlet{
20 | @Override
21 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
22 | }
23 | @Override
24 | protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
25 | resp.setHeader("Content-type", "text/html;charset=UTF-8");
26 | JSONArray jsonArray = new JSONArray();
27 | JSONObject json=new JSONObject();
28 | TruckDao truckDao=new TruckDao();
29 | String action = req.getParameter("action");
30 | if(action.equals("add")){
31 | //添加一个货车信息
32 | Truck truck = new Truck();
33 | truck.setHeight(req.getParameter("height"));
34 | truck.setWeight(req.getParameter("weight"));
35 | truck.setWidth(req.getParameter("width"));
36 | truck.setTruckbirth(req.getParameter("truckbirth"));
37 | truck.setVariety(req.getParameter("variety"));
38 | truck.setLength(req.getParameter("length"));
39 | truck.setTruckcardnumber(req.getParameter("truckcardnumber"));
40 | int addTruck = truckDao.addTruck(truck);
41 | if(addTruck>=0){
42 | //添加到车辆拥有表中
43 | boolean addTruckUserRelation = truckDao.addTruckUserRelation(req.getParameter("userId"), addTruck+"");
44 | if(addTruckUserRelation){
45 | json.put("addtruckstate", true);
46 | //返回成功信息
47 | }else{
48 | //返回失败的信息
49 | json.put("addtruckstate", false);
50 | }
51 | }else{
52 | //返回添加失败的json
53 | json.put("addtruckstate", false);
54 | }
55 | }else if(action.equals("delete")){
56 | //删除一个货车信息
57 | }else if(action.equals("queryAllTrucks")){
58 | //获取当前用户的所有车辆
59 | String userid = req.getParameter("userid");
60 | List trucks = truckDao.queryAllTruckByUserid(userid);
61 | for(Truck truck:trucks){
62 | JSONObject jsonTruck = JSONObject.fromObject(truck);
63 | jsonArray.add(jsonTruck);
64 |
65 | }
66 | ServletOutputStream outputStream = resp.getOutputStream();
67 | outputStream.write(jsonArray.toString().getBytes("utf-8"));
68 | outputStream.flush();
69 | outputStream.close();
70 | return;
71 | }
72 | ServletOutputStream outputStream = resp.getOutputStream();
73 | outputStream.print(json.toString());
74 | outputStream.flush();
75 | outputStream.close();
76 | }
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/server/truck/src/com/truck/Servlet/UpdateUserinfoServlet.java:
--------------------------------------------------------------------------------
1 | package com.truck.Servlet;
2 |
3 | import java.io.IOException;
4 | import java.io.PrintWriter;
5 | import javax.servlet.ServletException;
6 | import javax.servlet.ServletOutputStream;
7 | import javax.servlet.http.HttpServlet;
8 | import javax.servlet.http.HttpServletRequest;
9 | import javax.servlet.http.HttpServletResponse;
10 | import net.sf.json.JSONObject;
11 | import com.truck.Dao.UserDao;
12 | import com.truck.model.User;
13 |
14 | public class UpdateUserinfoServlet extends HttpServlet {
15 | // private UserDao userDao;
16 |
17 | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
18 | doPost(request, response);
19 | }
20 |
21 | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
22 | UserDao ud = new UserDao();
23 | JSONObject json = new JSONObject();
24 | String phoneNumber = (String) request.getParameter("phoneNumber");
25 | String username = (String) request.getParameter("username");
26 | String headimg = (String) request.getParameter("headimg");
27 | String area = (String) request.getParameter("area");
28 | String introduce = (String) request.getParameter("introduce");
29 | User user = new User();
30 | user.setPhoneNumber(phoneNumber);
31 | user.setUsername(username);
32 | user.setAvatarurl(headimg);
33 | user.setCity(area);
34 | user.setIntroduce(introduce);
35 | boolean isSuccess = ud.updataUserInfo(user);
36 | if (isSuccess) {
37 | json.put("state", true);
38 | } else {
39 | json.put("state", false);
40 | }
41 | ServletOutputStream outputStream = response.getOutputStream();
42 | outputStream.print(json.toString());
43 | outputStream.flush();
44 | outputStream.close();
45 | return;
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/server/truck/src/com/truck/Servlet/UploadHeadServlet.java:
--------------------------------------------------------------------------------
1 | package com.truck.Servlet;
2 |
3 | import java.io.File;
4 | import java.io.FileOutputStream;
5 | import java.io.IOException;
6 | import java.io.PrintWriter;
7 | import java.util.Base64;
8 | import java.util.Base64.Decoder;
9 |
10 | import javax.servlet.ServletException;
11 | import javax.servlet.ServletOutputStream;
12 | import javax.servlet.http.HttpServlet;
13 | import javax.servlet.http.HttpServletRequest;
14 | import javax.servlet.http.HttpServletResponse;
15 |
16 | import com.truck.Dao.UserDao;
17 | import com.truck.Util.Base64Util;
18 | import com.truck.Dao.IMEIDao;
19 | import com.truck.model.User;
20 |
21 | import net.sf.json.JSONObject;
22 |
23 | public class UploadHeadServlet extends HttpServlet {
24 |
25 | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
26 |
27 | }
28 |
29 | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
30 | String imgName=null ;
31 |
32 | String realPath = request.getRealPath("");// 项目绝对路径
33 | String phoneNumber = (String) request.getParameter("userphonenumber");
34 | String imgcode = (String) request.getParameter("imgcode");
35 | if (imgcode == null) {
36 | // 图片为空
37 | imgName="";
38 | } else {
39 | byte[] decode = Base64Util.decode(imgcode);
40 | // Base64解码
41 | for (int i = 0; i < decode.length; ++i) {
42 | if (decode[i] < 0) {// 调整异常数据
43 | decode[i] += 256;
44 | }
45 | }
46 | // 生成jpeg图片 +
47 | String imgFilePath = realPath + "imghead/";// 新生成的图片
48 | File file = new File(imgFilePath);
49 | if(!file.exists()){
50 | file.mkdirs();
51 | }
52 | File file2 = new File(file,phoneNumber + ".png" );
53 | if(!file2.exists()){
54 | file2.createNewFile();
55 | }
56 | FileOutputStream out = new FileOutputStream(file2);
57 | out.write(decode);
58 | out.flush();
59 | out.close();
60 | imgName=phoneNumber + ".png";
61 | }
62 | // 解析一下imgcode 把他保存到本地 用用户名来命名
63 | // 返回url
64 | ServletOutputStream outputStream = response.getOutputStream();
65 | outputStream.print(imgName);
66 | outputStream.flush();
67 | outputStream.close();
68 | }
69 |
70 | }
71 |
--------------------------------------------------------------------------------
/server/truck/src/com/truck/Util/Base64Util.java:
--------------------------------------------------------------------------------
1 | package com.truck.Util;
2 |
3 | public class Base64Util {
4 |
5 | private final static char[] ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
6 | .toCharArray();
7 |
8 | private static int[] toInt = new int[128];
9 |
10 | static {
11 | for (int i = 0; i < ALPHABET.length; i++) {
12 | toInt[ALPHABET[i]] = i;
13 | }
14 | }
15 |
16 | /**
17 | * Translates the specified byte array into Base64 string.
18 | *
19 | * @param buf
20 | * the byte array (not null)
21 | * @return the translated Base64 string (not null)
22 | */
23 | public static String encode(byte[] buf) {
24 | int size = buf.length;
25 | char[] ar = new char[((size + 2) / 3) * 4];
26 | int a = 0;
27 | int i = 0;
28 | while (i < size) {
29 | byte b0 = buf[i++];
30 | byte b1 = (i < size) ? buf[i++] : 0;
31 | byte b2 = (i < size) ? buf[i++] : 0;
32 |
33 | int mask = 0x3F;
34 | ar[a++] = ALPHABET[(b0 >> 2) & mask];
35 | ar[a++] = ALPHABET[((b0 << 4) | ((b1 & 0xFF) >> 4)) & mask];
36 | ar[a++] = ALPHABET[((b1 << 2) | ((b2 & 0xFF) >> 6)) & mask];
37 | ar[a++] = ALPHABET[b2 & mask];
38 | }
39 | switch (size % 3) {
40 | case 1:
41 | ar[--a] = '=';
42 | case 2:
43 | ar[--a] = '=';
44 | }
45 | return new String(ar);
46 | }
47 |
48 | /**
49 | * Translates the specified Base64 string into a byte array.
50 | *
51 | * @param s
52 | * the Base64 string (not null)
53 | * @return the byte array (not null)
54 | */
55 | public static byte[] decode(String s) {
56 | int delta = s.endsWith("==") ? 2 : s.endsWith("=") ? 1 : 0;
57 | byte[] buffer = new byte[s.length() * 3 / 4 - delta];
58 | int mask = 0xFF;
59 | int index = 0;
60 | for (int i = 0; i < s.length(); i += 4) {
61 | int c0 = toInt[s.charAt(i)];
62 | int c1 = toInt[s.charAt(i + 1)];
63 | buffer[index++] = (byte) (((c0 << 2) | (c1 >> 4)) & mask);
64 | if (index >= buffer.length) {
65 | return buffer;
66 | }
67 | int c2 = toInt[s.charAt(i + 2)];
68 | buffer[index++] = (byte) (((c1 << 4) | (c2 >> 2)) & mask);
69 | if (index >= buffer.length) {
70 | return buffer;
71 | }
72 | int c3 = toInt[s.charAt(i + 3)];
73 | buffer[index++] = (byte) (((c2 << 6) | c3) & mask);
74 | }
75 | return buffer;
76 | }
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/server/truck/src/com/truck/Util/JDBCUtil.java:
--------------------------------------------------------------------------------
1 | package com.truck.Util;
2 |
3 | import java.sql.Connection;
4 | import java.sql.DriverManager;
5 | import java.sql.ResultSet;
6 | import java.sql.SQLException;
7 | import java.sql.Statement;
8 |
9 | public class JDBCUtil {
10 | private static final String Driver = "com.mysql.jdbc.Driver";
11 | private static final String url = "jdbc:mysql://localhost:3306/truck_system?useUnicode=true&characterEncoding=utf-8";
12 | private static final String user = "root";
13 | private static final String pwd = "root";
14 |
15 | public static Connection getCon() {
16 | Connection con = null;
17 | try {
18 | Class.forName(Driver);
19 | con = DriverManager.getConnection(url, user, pwd);
20 | System.out.println("连接成功!");
21 | } catch (ClassNotFoundException e) {
22 | e.printStackTrace();
23 | } catch (SQLException e) {
24 | e.printStackTrace();
25 | }
26 | return con;
27 | }
28 |
29 | public static void close(Connection con, Statement stmt, ResultSet rs) {
30 | try {
31 | if (con != null) {
32 | con.close();
33 | }
34 | if (stmt != null) {
35 | stmt.close();
36 | }
37 | if (rs != null) {
38 | rs.close();
39 | }
40 | } catch (SQLException e) {
41 | // TODO Auto-generated catch block
42 | e.printStackTrace();
43 | }
44 | }
45 |
46 | public static void main(String[] args) {
47 | JDBCUtil.getCon();
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/server/truck/src/com/truck/model/Truck.java:
--------------------------------------------------------------------------------
1 | package com.truck.model;
2 |
3 | public class Truck {
4 | private String id;
5 | private String truckbirth;
6 | private String length;
7 | private String width;
8 | private String height;
9 | private String weight;
10 | private String variety;
11 | private String truckcardnumber;
12 | public String getTruckbirth() {
13 | return truckbirth;
14 | }
15 | public void setTruckbirth(String truckbirth) {
16 | this.truckbirth = truckbirth;
17 | }
18 |
19 | public String getId() {
20 | return id;
21 | }
22 | public void setId(String id) {
23 | this.id = id;
24 | }
25 | public String getLength() {
26 | return length;
27 | }
28 | public void setLength(String length) {
29 | this.length = length;
30 | }
31 | public String getWidth() {
32 | return width;
33 | }
34 | public void setWidth(String width) {
35 | this.width = width;
36 | }
37 | public String getHeight() {
38 | return height;
39 | }
40 | public void setHeight(String height) {
41 | this.height = height;
42 | }
43 | public String getWeight() {
44 | return weight;
45 | }
46 | public void setWeight(String weight) {
47 | this.weight = weight;
48 | }
49 | public String getVariety() {
50 | return variety;
51 | }
52 | public void setVariety(String variety) {
53 | this.variety = variety;
54 | }
55 | public String getTruckcardnumber() {
56 | return truckcardnumber;
57 | }
58 | public void setTruckcardnumber(String truckcardnumber) {
59 | this.truckcardnumber = truckcardnumber;
60 | }
61 |
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/server/truck/src/com/truck/model/TruckSource.java:
--------------------------------------------------------------------------------
1 | package com.truck.model;
2 |
3 | public class TruckSource {
4 | private String load_date;
5 | private String start_place;
6 | private String stop_place;
7 | private String start_place_point;
8 | private String introcduce;
9 | private String publish_date;
10 | private String state;
11 | private String truck_id;
12 | private Truck truck;
13 | private User user;
14 |
15 |
16 | public User getUser() {
17 | return user;
18 | }
19 |
20 | public void setUser(User user) {
21 | this.user = user;
22 | }
23 |
24 | public Truck getTruck() {
25 | return truck;
26 | }
27 |
28 | public void setTruck(Truck truck) {
29 | this.truck = truck;
30 | }
31 |
32 | public String getLoad_date() {
33 | return load_date;
34 | }
35 |
36 | public String getTruck_id() {
37 | return truck_id;
38 | }
39 |
40 | public void setTruck_id(String truck_id) {
41 | this.truck_id = truck_id;
42 | }
43 |
44 | public void setLoad_date(String load_date) {
45 | this.load_date = load_date;
46 | }
47 | public String getStart_place() {
48 | return start_place;
49 | }
50 | public void setStart_place(String start_place) {
51 | this.start_place = start_place;
52 | }
53 | public String getStop_place() {
54 | return stop_place;
55 | }
56 | public void setStop_place(String stop_place) {
57 | this.stop_place = stop_place;
58 | }
59 | public String getStart_place_point() {
60 | return start_place_point;
61 | }
62 | public void setStart_place_point(String start_place_point) {
63 | this.start_place_point = start_place_point;
64 | }
65 | public String getIntrocduce() {
66 | return introcduce;
67 | }
68 | public void setIntrocduce(String introcduce) {
69 | this.introcduce = introcduce;
70 | }
71 | public String getPublish_date() {
72 | return publish_date;
73 | }
74 | public void setPublish_date(String publish_date) {
75 | this.publish_date = publish_date;
76 | }
77 | public String getState() {
78 | return state;
79 | }
80 | public void setState(String state) {
81 | this.state = state;
82 | }
83 |
84 |
85 | }
86 |
--------------------------------------------------------------------------------
/sql/tb_imei.sql:
--------------------------------------------------------------------------------
1 | /*
2 | Navicat MySQL Data Transfer
3 |
4 | Source Server : xuekai
5 | Source Server Version : 50717
6 | Source Host : localhost:3306
7 | Source Database : truck_system
8 |
9 | Target Server Type : MYSQL
10 | Target Server Version : 50717
11 | File Encoding : 65001
12 |
13 | Date: 2017-04-07 13:06:47
14 | */
15 |
16 | SET FOREIGN_KEY_CHECKS=0;
17 |
18 | -- ----------------------------
19 | -- Table structure for `tb_imei`
20 | -- ----------------------------
21 | DROP TABLE IF EXISTS `tb_imei`;
22 | CREATE TABLE `tb_imei` (
23 | `phonenumber` varchar(255) NOT NULL,
24 | `imei` varchar(255) DEFAULT NULL,
25 | PRIMARY KEY (`phonenumber`)
26 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
27 |
28 | -- ----------------------------
29 | -- Records of tb_imei
30 | -- ----------------------------
31 | INSERT INTO `tb_imei` VALUES ('11111111111', '');
32 | INSERT INTO `tb_imei` VALUES ('12121212134', '');
33 | INSERT INTO `tb_imei` VALUES ('13546330395', '');
34 | INSERT INTO `tb_imei` VALUES ('21212121211', '867992029296902');
35 | INSERT INTO `tb_imei` VALUES ('88880000887', '867992029296902');
36 |
--------------------------------------------------------------------------------
/sql/tb_truck.sql:
--------------------------------------------------------------------------------
1 | /*
2 | Navicat MySQL Data Transfer
3 |
4 | Source Server : xuekai
5 | Source Server Version : 50717
6 | Source Host : localhost:3306
7 | Source Database : truck_system
8 |
9 | Target Server Type : MYSQL
10 | Target Server Version : 50717
11 | File Encoding : 65001
12 |
13 | Date: 2017-04-07 13:06:54
14 | */
15 |
16 | SET FOREIGN_KEY_CHECKS=0;
17 |
18 | -- ----------------------------
19 | -- Table structure for `tb_truck`
20 | -- ----------------------------
21 | DROP TABLE IF EXISTS `tb_truck`;
22 | CREATE TABLE `tb_truck` (
23 | `_id` int(11) NOT NULL AUTO_INCREMENT,
24 | `truckbirth` varchar(255) DEFAULT NULL,
25 | `length` int(11) DEFAULT NULL,
26 | `width` int(11) DEFAULT NULL,
27 | `height` int(11) DEFAULT NULL,
28 | `weight` int(11) DEFAULT NULL,
29 | `variety` varchar(255) DEFAULT NULL,
30 | `truckcardnumber` varchar(255) DEFAULT NULL,
31 | PRIMARY KEY (`_id`)
32 | ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
33 |
34 | -- ----------------------------
35 | -- Records of tb_truck
36 | -- ----------------------------
37 | INSERT INTO `tb_truck` VALUES ('1', '2017年04月', '1', '1', '1', '1', '厢式', 'sssss');
38 |
--------------------------------------------------------------------------------
/sql/tb_truck_source.sql:
--------------------------------------------------------------------------------
1 | /*
2 | Navicat MySQL Data Transfer
3 |
4 | Source Server : xuekai
5 | Source Server Version : 50717
6 | Source Host : localhost:3306
7 | Source Database : truck_system
8 |
9 | Target Server Type : MYSQL
10 | Target Server Version : 50717
11 | File Encoding : 65001
12 |
13 | Date: 2017-04-07 13:06:59
14 | */
15 |
16 | SET FOREIGN_KEY_CHECKS=0;
17 |
18 | -- ----------------------------
19 | -- Table structure for `tb_truck_source`
20 | -- ----------------------------
21 | DROP TABLE IF EXISTS `tb_truck_source`;
22 | CREATE TABLE `tb_truck_source` (
23 | `_id` int(11) NOT NULL AUTO_INCREMENT,
24 | `load_date` varchar(255) DEFAULT NULL,
25 | `start_place` varchar(255) DEFAULT NULL,
26 | `stop_place` varchar(255) DEFAULT NULL,
27 | `start_place_point` varchar(255) DEFAULT NULL,
28 | `introcduce` varchar(255) DEFAULT NULL,
29 | `publish_date` varchar(255) DEFAULT NULL,
30 | `state` varchar(255) DEFAULT NULL,
31 | `truck_id` int(11) DEFAULT NULL,
32 | PRIMARY KEY (`_id`)
33 | ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
34 |
35 | -- ----------------------------
36 | -- Records of tb_truck_source
37 | -- ----------------------------
38 | INSERT INTO `tb_truck_source` VALUES ('1', '2017年04月07日', '北京市东城区', '北京市东城区', '0.0026437346731934897,0.001718417983647761', null, '1491533842535', '正常', '1');
39 | INSERT INTO `tb_truck_source` VALUES ('2', '2017年04月07日', '北京市东城区', '北京市东城区', '39.947582316620526,116.54769488261748', null, '1491540972564', '正常', '1');
40 |
--------------------------------------------------------------------------------
/sql/tb_user_cared.sql:
--------------------------------------------------------------------------------
1 | /*
2 | Navicat MySQL Data Transfer
3 |
4 | Source Server : xuekai
5 | Source Server Version : 50717
6 | Source Host : localhost:3306
7 | Source Database : truck_system
8 |
9 | Target Server Type : MYSQL
10 | Target Server Version : 50717
11 | File Encoding : 65001
12 |
13 | Date: 2017-04-07 13:07:06
14 | */
15 |
16 | SET FOREIGN_KEY_CHECKS=0;
17 |
18 | -- ----------------------------
19 | -- Table structure for `tb_user_cared`
20 | -- ----------------------------
21 | DROP TABLE IF EXISTS `tb_user_cared`;
22 | CREATE TABLE `tb_user_cared` (
23 | `id` int(11) NOT NULL AUTO_INCREMENT,
24 | `phone` varchar(255) DEFAULT NULL,
25 | `caredphone` varchar(255) DEFAULT NULL,
26 | PRIMARY KEY (`id`)
27 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
28 |
29 | -- ----------------------------
30 | -- Records of tb_user_cared
31 | -- ----------------------------
32 |
--------------------------------------------------------------------------------
/sql/tb_user_truck.sql:
--------------------------------------------------------------------------------
1 | /*
2 | Navicat MySQL Data Transfer
3 |
4 | Source Server : xuekai
5 | Source Server Version : 50717
6 | Source Host : localhost:3306
7 | Source Database : truck_system
8 |
9 | Target Server Type : MYSQL
10 | Target Server Version : 50717
11 | File Encoding : 65001
12 |
13 | Date: 2017-04-07 13:07:09
14 | */
15 |
16 | SET FOREIGN_KEY_CHECKS=0;
17 |
18 | -- ----------------------------
19 | -- Table structure for `tb_user_truck`
20 | -- ----------------------------
21 | DROP TABLE IF EXISTS `tb_user_truck`;
22 | CREATE TABLE `tb_user_truck` (
23 | `userid` varchar(255) DEFAULT NULL,
24 | `turckid` int(11) DEFAULT NULL,
25 | `id` int(11) NOT NULL AUTO_INCREMENT,
26 | PRIMARY KEY (`id`)
27 | ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
28 |
29 | -- ----------------------------
30 | -- Records of tb_user_truck
31 | -- ----------------------------
32 | INSERT INTO `tb_user_truck` VALUES ('13546330395', '1', '1');
33 |
--------------------------------------------------------------------------------
/sql/tb_user_trucksource.sql:
--------------------------------------------------------------------------------
1 | /*
2 | Navicat MySQL Data Transfer
3 |
4 | Source Server : xuekai
5 | Source Server Version : 50717
6 | Source Host : localhost:3306
7 | Source Database : truck_system
8 |
9 | Target Server Type : MYSQL
10 | Target Server Version : 50717
11 | File Encoding : 65001
12 |
13 | Date: 2017-04-07 13:07:13
14 | */
15 |
16 | SET FOREIGN_KEY_CHECKS=0;
17 |
18 | -- ----------------------------
19 | -- Table structure for `tb_user_trucksource`
20 | -- ----------------------------
21 | DROP TABLE IF EXISTS `tb_user_trucksource`;
22 | CREATE TABLE `tb_user_trucksource` (
23 | `userid` varchar(255) DEFAULT NULL,
24 | `trucksourceid` varchar(255) DEFAULT NULL,
25 | `id` int(11) NOT NULL AUTO_INCREMENT,
26 | PRIMARY KEY (`id`)
27 | ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
28 |
29 | -- ----------------------------
30 | -- Records of tb_user_trucksource
31 | -- ----------------------------
32 | INSERT INTO `tb_user_trucksource` VALUES ('13546330395', '1', '1');
33 | INSERT INTO `tb_user_trucksource` VALUES ('13546330395', '2', '2');
34 |
--------------------------------------------------------------------------------