This is the final homework for spatial information Mobile Service Lesson.It generally inclusived these models.
welcome page
I used a openlibary to do it ,when you first launch your application,the prompt page will be seen but other time you will see the welcome page.
References
Main Interface
I used viewpage and tablayout to achive tab effect,and achived Immersive status bar.
3D Menu
This 3D Menu is pretty cool to me,it can change skin for your application too,and the slide of the menu may interrupt with the viewpager ,so you should dispatch touch event carefully. This module also used
References
一款优雅的干货*Android客户端,实现了沉浸式状态栏,无缝换肤,带3D感觉的侧滑菜单
Police Fragment
I used a sliding folding recyllerview to achieve this effect.if you want to know more can read RecyclerView实现滑动折叠效果
I also did a little wave at the botom of this fragmet,it is just a sine and a cosine function that make paint look like waves,if you would like to know more can read 自定义view实现水波纹效果
and if you clike the recyllerview item you will enter a detail pages about police and it used a turn over card animation,you can learn more form 实现翻转卡片的动画效果 - 良有以也
girl fragment
This fragment is pretty little and beautiful,I use MVP design pattern to construction project.This fragment used okhttp and retrofit to get date from webserver api and use rxjava and dbflow also,if you want to learn more you can click following links.
MangeFragment
In this Fragmet you can distribute cases to polices and the case had been deald would be yeallow and others would be blue,In this fragmnet we used SwipeRefreshLayout to achieve pull to refresh and sawtooth effect.
Search Effect
I used a custom view to achieve a search effect that look like radar what can search police who is cloe to the case.
.
source code
open libary used
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.github.paolorotolo:appintro:3.4.0'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.mikepenz:iconics-core:2.5.5@aar'
compile 'com.mikepenz:material-design-iconic-typeface:2.2.0.1@aar'
compile 'com.mikepenz:fontawesome-typeface:4.5.0.1@aar'
compile 'com.mikepenz:foundation-icons-typeface:3.0.0.1@aar'
compile 'com.android.support:support-v4:23.4.0'
compile 'jp.wasabeef:glide-transformations:1.3.1'
compile('com.github.afollestad.material-dialogs:core:0.8.5.4@aar') {
transitive = true
}
compile('com.github.afollestad.material-dialogs:commons:0.8.5.4@aar') {
transitive = true
}
compile 'com.android.support:design:23.2.1'
compile 'com.android.support:recyclerview-v7:23.2.1'
compile 'com.android.support:cardview-v7:23.2.1'
compile 'com.github.coyarzun89:fabtransitionactivity:0.2.0'
apt "com.github.Raizlabs.DBFlow:dbflow-processor:${dbflow_version}"
compile "com.github.Raizlabs.DBFlow:dbflow-core:${dbflow_version}"
compile "com.github.Raizlabs.DBFlow:dbflow:${dbflow_version}"
compile "com.github.Raizlabs.DBFlow:dbflow-sqlcipher:${dbflow_version}"
compile 'jp.wasabeef:recyclerview-animators:2.2.1'
compile 'com.squareup.retrofit2:retrofit:2.0.0'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.0'
compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'com.squareup.retrofit2:adapter-rxjava:2.0.0'
compile 'com.commit451:PhotoView:1.2.5'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'io.reactivex:rxandroid:1.1.0'
compile 'io.reactivex:rxjava:1.1.0'
compile files('libs/baidumapapi_base_v3_7_3.jar')
compile files('libs/baidumapapi_util_v3_7_3.jar')
compile files('libs/baidumapapi_search_v3_7_3.jar')
compile files('libs/baidumapapi_cloud_v3_7_3.jar')
compile files('libs/baidumapapi_radar_v3_7_3.jar')
compile files('libs/baidumapapi_map_v3_7_3.jar')
compile files('libs/locSDK_6.13.jar')
compile files('libs/xUtils-2.4.7.jar')
compile files('libs/org.apache.http.legacy.jar')
Thanks
LICENSE
Source code released under the V3 GPL agreement,make sure you understand this aggrement.
Copyright 2014 drakeet
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.