├── app
├── .gitignore
├── src
│ ├── main
│ │ ├── assets
│ │ │ ├── demo.cer
│ │ │ └── city.db
│ │ ├── res
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── on.png
│ │ │ │ ├── edit.png
│ │ │ │ ├── mail.png
│ │ │ │ ├── menu.png
│ │ │ │ ├── off.png
│ │ │ │ ├── star.png
│ │ │ │ ├── angel.png
│ │ │ │ ├── comment.png
│ │ │ │ ├── delete.png
│ │ │ │ ├── earth.png
│ │ │ │ ├── loading.png
│ │ │ │ ├── praise.png
│ │ │ │ ├── praised.png
│ │ │ │ ├── qrcode.png
│ │ │ │ ├── search.png
│ │ │ │ ├── setting.png
│ │ │ │ ├── commented.png
│ │ │ │ ├── mail_add.png
│ │ │ │ ├── call_light.png
│ │ │ │ ├── default_head.png
│ │ │ │ ├── delete_light.png
│ │ │ │ ├── earth_light.png
│ │ │ │ ├── edit_light.png
│ │ │ │ ├── flash_light.png
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── mail_light.png
│ │ │ │ ├── menu_light.png
│ │ │ │ ├── search_light.png
│ │ │ │ ├── send_light.png
│ │ │ │ ├── star_light.png
│ │ │ │ ├── setting_light.png
│ │ │ │ ├── back_black_light.png
│ │ │ │ └── edit_light_small.png
│ │ │ ├── drawable
│ │ │ │ ├── gesture_left.png
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── gesture_right.png
│ │ │ │ ├── earth_selector.xml
│ │ │ │ ├── mail_selector.xml
│ │ │ │ ├── search_selector.xml
│ │ │ │ ├── setting_selector.xml
│ │ │ │ └── splash.xml
│ │ │ ├── values
│ │ │ │ ├── dimens.xml
│ │ │ │ ├── strings.xml
│ │ │ │ └── styles.xml
│ │ │ └── layout
│ │ │ │ ├── comment_view_comment_more_item.xml
│ │ │ │ ├── comment_down_item.xml
│ │ │ │ ├── moment_view_comment_item.xml
│ │ │ │ ├── picture_item.xml
│ │ │ │ ├── comment_container_view.xml
│ │ │ │ ├── user_list_activity.xml
│ │ │ │ ├── moment_list_activity.xml
│ │ │ │ ├── user_item.xml
│ │ │ │ ├── wallet_activity.xml
│ │ │ │ ├── moment_activity.xml
│ │ │ │ └── user_view.xml
│ │ └── java
│ │ │ └── apijson
│ │ │ └── demo
│ │ │ └── client
│ │ │ ├── activity_fragment
│ │ │ ├── package-info.java
│ │ │ └── SplashActivity.java
│ │ │ ├── model
│ │ │ ├── package-info.java
│ │ │ ├── Moment.java
│ │ │ ├── Wallet.java
│ │ │ ├── Login.java
│ │ │ ├── Comment.java
│ │ │ └── Verify.java
│ │ │ ├── interfaces
│ │ │ ├── TopBarMenuCallback.java
│ │ │ ├── OnTopBarClickListener.java
│ │ │ └── OnHttpResponseListener.java
│ │ │ ├── server
│ │ │ └── model
│ │ │ │ ├── package-info.java
│ │ │ │ ├── Login.java
│ │ │ │ ├── Verify.java
│ │ │ │ ├── Wallet.java
│ │ │ │ └── Comment.java
│ │ │ ├── util
│ │ │ ├── ActionUtil.java
│ │ │ └── Constant.java
│ │ │ ├── adapter
│ │ │ ├── UserAdapter.java
│ │ │ └── PictureAdapter.java
│ │ │ └── view
│ │ │ └── EmptyEventGridView.java
│ ├── test
│ │ └── java
│ │ │ └── apijson
│ │ │ └── demo
│ │ │ └── client
│ │ │ └── ExampleUnitTest.java
│ └── androidTest
│ │ └── java
│ │ └── apijson
│ │ └── demo
│ │ └── client
│ │ └── ApplicationTest.java
├── proguard-rules.pro
└── build.gradle
├── ZBLibrary
├── .gitignore
├── libs
│ ├── okio-1.0.0.jar
│ ├── okhttp-2.1.0.jar
│ ├── android-support-v4.jar
│ └── universal-image-loader-1.9.4.jar
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── add.png
│ │ │ │ ├── back.png
│ │ │ │ ├── back2.png
│ │ │ │ ├── cancel.png
│ │ │ │ ├── down2.png
│ │ │ │ ├── add_light.png
│ │ │ │ ├── add_small.png
│ │ │ │ ├── back2_light.png
│ │ │ │ ├── back_light.png
│ │ │ │ ├── down2_light.png
│ │ │ │ ├── down2_small.png
│ │ │ │ ├── triangle_up.png
│ │ │ │ ├── up2_light.png
│ │ │ │ ├── cancel_light.png
│ │ │ │ ├── default_head.png
│ │ │ │ ├── forward_light.png
│ │ │ │ ├── triangle_down.png
│ │ │ │ ├── forward2_light.png
│ │ │ │ ├── xlistview_arrow.png
│ │ │ │ ├── cancel_light_small.png
│ │ │ │ └── forward_small_light.png
│ │ │ ├── drawable
│ │ │ │ ├── null_drawable.xml
│ │ │ │ ├── alpha3.xml
│ │ │ │ ├── oval_alpha.xml
│ │ │ │ ├── oval_white.xml
│ │ │ │ ├── edit_cusor.xml
│ │ │ │ ├── square_alpha.xml
│ │ │ │ ├── to_gray_slight.xml
│ │ │ │ ├── white_btn_bg.xml
│ │ │ │ ├── dialog_bg.xml
│ │ │ │ ├── round_alpha.xml
│ │ │ │ ├── menu_member_manage_item_bg.xml
│ │ │ │ ├── list_item_blank_divider.xml
│ │ │ │ ├── btn_blue_round_big_normal.xml
│ │ │ │ ├── btn_blue_round_big_pressed.xml
│ │ │ │ ├── edit_item_text_bg.xml
│ │ │ │ ├── cilcle_gray.xml
│ │ │ │ ├── circle_blue.xml
│ │ │ │ ├── circle_green.xml
│ │ │ │ ├── circle_pink.xml
│ │ │ │ ├── circle_white.xml
│ │ │ │ ├── btn_blue_round_bg_normal.xml
│ │ │ │ ├── btn_blue_round_bg_pressed.xml
│ │ │ │ ├── btn_red_round_bg_normal.xml
│ │ │ │ ├── btn_red_round_bg_pressed.xml
│ │ │ │ ├── circle_yellow.xml
│ │ │ │ ├── bg_white_to_gray.xml
│ │ │ │ ├── btn_blue_normal_shape.xml
│ │ │ │ ├── btn_blue_bg.xml
│ │ │ │ ├── btn_blue_pressed_shape.xml
│ │ │ │ ├── edit_text_bg.xml
│ │ │ │ ├── bg_item_to_alpha.xml
│ │ │ │ ├── btn_green_bg.xml
│ │ │ │ ├── btn_blue_sky_bg.xml
│ │ │ │ ├── btn_orange_bg.xml
│ │ │ │ ├── dialog_btn_bg.xml
│ │ │ │ ├── icon_white_bg.xml
│ │ │ │ ├── icon_gray_bg.xml
│ │ │ │ ├── tab_bg_left_full_white.xml
│ │ │ │ ├── bg_pressed_common.xml
│ │ │ │ ├── tab_bg_right_full_white.xml
│ │ │ │ ├── green_rounded_rectangle_normal.xml
│ │ │ │ ├── btn_red_round_bg.xml
│ │ │ │ ├── btn_blue_round_bg.xml
│ │ │ │ ├── menu_member_manage_cancel_bg.xml
│ │ │ │ ├── menu_manage_manager_cancel_bg_normal.xml
│ │ │ │ ├── menu_manage_manager_cancel_bg_pressed.xml
│ │ │ │ ├── alpha_to_darker_alpha.xml
│ │ │ │ ├── cilcle_gray_to_white.xml
│ │ │ │ ├── tab_bg_center_selector.xml
│ │ │ │ ├── dialog_bg_rec.xml
│ │ │ │ ├── btn_blue_small.xml
│ │ │ │ ├── dialog_bg_common.xml
│ │ │ │ ├── bg_gray_to_alpha.xml
│ │ │ │ ├── btn_blue_selector.xml
│ │ │ │ ├── bg_white_to_alpha.xml
│ │ │ │ ├── bg_green_to_darker_green.xml
│ │ │ │ ├── bg_black_to_white_alpha.xml
│ │ │ │ ├── tab_bg_left_selector.xml
│ │ │ │ ├── tab_bg_right_selector.xml
│ │ │ │ ├── round_rectangle_empty_white.xml
│ │ │ │ ├── input_bg.xml
│ │ │ │ ├── menu_manage_manager_bg.xml
│ │ │ │ ├── input_bg_pressed.xml
│ │ │ │ ├── progress_color_horizontal.xml
│ │ │ │ ├── dialog_bg_map.xml
│ │ │ │ └── list_item_bg.xml
│ │ │ ├── anim
│ │ │ │ ├── null_anim.xml
│ │ │ │ ├── push_in.xml
│ │ │ │ ├── push_out.xml
│ │ │ │ ├── fade.xml
│ │ │ │ ├── hold.xml
│ │ │ │ ├── bottom_push_in.xml
│ │ │ │ ├── left_push_in.xml
│ │ │ │ ├── left_push_out.xml
│ │ │ │ ├── bottom_push_out.xml
│ │ │ │ ├── right_push_in.xml
│ │ │ │ ├── right_push_out.xml
│ │ │ │ ├── bottom_window_enter.xml
│ │ │ │ ├── bottom_window_exit.xml
│ │ │ │ ├── bottom_push_in_keyboard.xml
│ │ │ │ ├── bottom_push_out_keyboard.xml
│ │ │ │ ├── slide_in_right.xml
│ │ │ │ ├── slide_out_left.xml
│ │ │ │ ├── slide_in_from_bottom.xml
│ │ │ │ ├── slide_in_from_top.xml
│ │ │ │ ├── slide_out_to_bottom.xml
│ │ │ │ └── slide_out_to_top.xml
│ │ │ ├── layout
│ │ │ │ ├── blank_middle.xml
│ │ │ │ ├── top_right_iv.xml
│ │ │ │ ├── top_right_tv.xml
│ │ │ │ ├── divider_horizontal.xml
│ │ │ │ ├── divider_vertical_1dp.xml
│ │ │ │ ├── divider_vertical_1px.xml
│ │ │ │ ├── list_view.xml
│ │ │ │ ├── base_list_fragment.xml
│ │ │ │ ├── top_tab_tv_center.xml
│ │ │ │ ├── select_picture_activity.xml
│ │ │ │ ├── bottom_menu_view.xml
│ │ │ │ ├── key_value_divider.xml
│ │ │ │ ├── grid_picker_item.xml
│ │ │ │ ├── list_item.xml
│ │ │ │ ├── item_dialog_item.xml
│ │ │ │ ├── bottom_menu_item.xml
│ │ │ │ ├── top_menu_list_item.xml
│ │ │ │ ├── icon_name_item.xml
│ │ │ │ ├── square_menu.xml
│ │ │ │ ├── top_tab_view.xml
│ │ │ │ ├── key_value_item_2.xml
│ │ │ │ ├── key_value_item.xml
│ │ │ │ ├── image_picker_item.xml
│ │ │ │ ├── item_dialog.xml
│ │ │ │ ├── grid_item.xml
│ │ │ │ ├── top_menu_window.xml
│ │ │ │ ├── xlistview_footer.xml
│ │ │ │ ├── grid_picker_view.xml
│ │ │ │ ├── web_view_activity.xml
│ │ │ │ ├── base_view_bottom_window.xml
│ │ │ │ └── bottom_menu_window.xml
│ │ │ ├── color
│ │ │ │ ├── black_to_white_selector.xml
│ │ │ │ ├── white_to_black_selector.xml
│ │ │ │ └── alpha_to_darker_selector.xml
│ │ │ └── values
│ │ │ │ ├── ids.xml
│ │ │ │ └── arrays.xml
│ │ └── java
│ │ │ └── zuo
│ │ │ └── biao
│ │ │ └── library
│ │ │ ├── interfaces
│ │ │ ├── AdapterViewPresenter.java
│ │ │ ├── package-info.java
│ │ │ ├── OnAddListener.java
│ │ │ ├── OnRemoveListener.java
│ │ │ ├── OnResultListener.java
│ │ │ ├── OnProgressListener.java
│ │ │ ├── OnBottomDragListener.java
│ │ │ ├── OnStopLoadListener.java
│ │ │ ├── FragmentPresenter.java
│ │ │ ├── OnReachViewBorderListener.java
│ │ │ ├── ViewPresenter.java
│ │ │ ├── AdapterCallBack.java
│ │ │ ├── ActivityPresenter.java
│ │ │ ├── CacheCallBack.java
│ │ │ └── Presenter.java
│ │ │ ├── ui
│ │ │ ├── package-info.java
│ │ │ └── MaxHeightWrapLayout.java
│ │ │ ├── base
│ │ │ ├── package-info.java
│ │ │ ├── BaseModel.java
│ │ │ └── BaseApplication.java
│ │ │ ├── util
│ │ │ ├── package-info.java
│ │ │ ├── MD5Util.java
│ │ │ ├── Log.java
│ │ │ ├── PlaceUtil.java
│ │ │ ├── ScreenUtil.java
│ │ │ └── ContactUtil.java
│ │ │ ├── manager
│ │ │ └── package-info.java
│ │ │ └── model
│ │ │ ├── package-info.java
│ │ │ ├── Parameter.java
│ │ │ └── Entry.java
│ ├── test
│ │ └── java
│ │ │ └── zuo
│ │ │ └── biao
│ │ │ └── library
│ │ │ └── ExampleUnitTest.java
│ └── androidTest
│ │ └── java
│ │ └── zuo
│ │ └── biao
│ │ └── library
│ │ └── ApplicationTest.java
├── proguard-rules.pro
└── build.gradle
├── APIJSONLibrary
├── .gitignore
├── libs
│ └── fastjson-1.2.24.jar
├── src
│ ├── test
│ │ └── java
│ │ │ └── zuo
│ │ │ └── biao
│ │ │ └── apijson
│ │ │ └── client
│ │ │ └── ExampleUnitTest.java
│ ├── androidTest
│ │ └── java
│ │ │ └── zuo
│ │ │ └── biao
│ │ │ └── apijson
│ │ │ └── client
│ │ │ └── ApplicationTest.java
│ └── main
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ └── zuo
│ │ └── biao
│ │ └── apijson
│ │ ├── client
│ │ └── package-info.java
│ │ ├── package-info.java
│ │ ├── RequestMethod.java
│ │ ├── APIJSONRequest.java
│ │ └── Log.java
├── build.gradle
└── proguard-rules.pro
├── QRCodeLibrary
├── .gitignore
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── raw
│ │ │ │ ├── realm_properties
│ │ │ │ └── beep.ogg
│ │ │ ├── values
│ │ │ │ ├── ids.xml
│ │ │ │ └── colors.xml
│ │ │ └── layout
│ │ │ │ ├── camera.xml
│ │ │ │ └── main.xml
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ │ └── com
│ │ │ └── zxing
│ │ │ ├── view
│ │ │ └── ViewfinderResultPointCallback.java
│ │ │ ├── encoding
│ │ │ └── EncodingHandler.java
│ │ │ ├── decoding
│ │ │ └── FinishListener.java
│ │ │ └── camera
│ │ │ └── AutoFocusCallback.java
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── ericssonlabs
│ │ │ └── ExampleUnitTest.java
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── ericssonlabs
│ │ └── ApplicationTest.java
├── libs
│ └── zxing.jar
├── build.gradle
└── proguard-rules.pro
├── settings.gradle
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .gitignore
├── gradle.properties
└── README.md
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/app/src/main/assets/demo.cer:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ZBLibrary/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/APIJSONLibrary/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/QRCodeLibrary/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':APIJSONLibrary', ':ZBLibrary', ':QRCodeLibrary'
2 |
--------------------------------------------------------------------------------
/QRCodeLibrary/src/main/res/raw/realm_properties:
--------------------------------------------------------------------------------
1 | test: test
2 | admin: OBF:1u2a1toa1w8v1tok1u30,admin
3 |
--------------------------------------------------------------------------------
/app/src/main/assets/city.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/assets/city.db
--------------------------------------------------------------------------------
/QRCodeLibrary/libs/zxing.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/QRCodeLibrary/libs/zxing.jar
--------------------------------------------------------------------------------
/ZBLibrary/libs/okio-1.0.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/libs/okio-1.0.0.jar
--------------------------------------------------------------------------------
/ZBLibrary/libs/okhttp-2.1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/libs/okhttp-2.1.0.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/ZBLibrary/libs/android-support-v4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/libs/android-support-v4.jar
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/on.png
--------------------------------------------------------------------------------
/APIJSONLibrary/libs/fastjson-1.2.24.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/APIJSONLibrary/libs/fastjson-1.2.24.jar
--------------------------------------------------------------------------------
/QRCodeLibrary/src/main/res/raw/beep.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/QRCodeLibrary/src/main/res/raw/beep.ogg
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/edit.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/mail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/mail.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/menu.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/off.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/star.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/star.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/angel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/angel.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/comment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/comment.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/delete.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/earth.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/earth.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/loading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/loading.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/praise.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/praise.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/praised.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/praised.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/qrcode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/qrcode.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/search.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/setting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/setting.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/gesture_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable/gesture_left.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable/ic_launcher.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/add.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/commented.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/commented.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/mail_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/mail_add.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/gesture_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable/gesture_right.png
--------------------------------------------------------------------------------
/ZBLibrary/libs/universal-image-loader-1.9.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/libs/universal-image-loader-1.9.4.jar
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/back.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/back2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/back2.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/cancel.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/down2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/down2.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/call_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/call_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/default_head.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/default_head.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/delete_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/delete_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/earth_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/earth_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/edit_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/edit_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/flash_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/flash_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/mail_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/mail_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/menu_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/menu_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/search_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/search_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/send_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/send_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/star_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/star_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/setting_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/setting_light.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/add_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/add_light.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/add_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/add_small.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/back2_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/back2_light.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/back_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/back_light.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/down2_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/down2_light.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/down2_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/down2_small.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/triangle_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/triangle_up.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/up2_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/up2_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/back_black_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/back_black_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/edit_light_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/app/src/main/res/drawable-hdpi/edit_light_small.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/cancel_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/cancel_light.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/default_head.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/default_head.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/forward_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/forward_light.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/triangle_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/triangle_down.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/forward2_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/forward2_light.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/xlistview_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/xlistview_arrow.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/null_drawable.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/cancel_light_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/cancel_light_small.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable-hdpi/forward_small_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TommyLemon/APIJSON-Android-RxJava/HEAD/ZBLibrary/src/main/res/drawable-hdpi/forward_small_light.png
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/alpha3.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/null_anim.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/blank_middle.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/top_right_iv.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/top_right_tv.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/divider_horizontal.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/divider_vertical_1dp.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/divider_vertical_1px.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/list_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/oval_alpha.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/oval_white.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/edit_cusor.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/square_alpha.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/base_list_fragment.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/to_gray_slight.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/white_btn_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/dialog_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/round_alpha.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/top_tab_tv_center.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/menu_member_manage_item_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/list_item_blank_divider.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_blue_round_big_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_blue_round_big_pressed.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/edit_item_text_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/push_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Dec 28 10:00:20 PST 2015
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.10-all.zip
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/push_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/cilcle_gray.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/circle_blue.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/circle_green.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/circle_pink.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/circle_white.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_blue_round_bg_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_blue_round_bg_pressed.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_red_round_bg_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_red_round_bg_pressed.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/circle_yellow.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/fade.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/hold.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/bg_white_to_gray.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/bottom_push_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/left_push_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/left_push_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/bottom_push_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/right_push_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/right_push_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/select_picture_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/bottom_window_enter.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/bottom_window_exit.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_blue_normal_shape.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/bottom_push_in_keyboard.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_blue_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_blue_pressed_shape.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/edit_text_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/bg_item_to_alpha.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_green_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 200dp
5 | 60dp
6 | 50dp
7 | 10dp
8 |
9 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_blue_sky_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_orange_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/dialog_btn_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/icon_white_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/bottom_push_out_keyboard.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/icon_gray_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/tab_bg_left_full_white.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/bg_pressed_common.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/tab_bg_right_full_white.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/green_rounded_rectangle_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_red_round_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/color/black_to_white_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/color/white_to_black_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_blue_round_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/menu_member_manage_cancel_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/color/alpha_to_darker_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/menu_manage_manager_cancel_bg_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/menu_manage_manager_cancel_bg_pressed.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 正在发布,请稍后...
5 | 发布失败,再试一次吧^_^
6 | 发布成功
7 | 评论失败,再试一次吧^_^
8 | 评论成功
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/earth_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/mail_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/alpha_to_darker_alpha.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/cilcle_gray_to_white.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/search_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/tab_bg_center_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/setting_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/dialog_bg_rec.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_blue_small.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
12 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/dialog_bg_common.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
12 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/bg_gray_to_alpha.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/btn_blue_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ZBLibrary/src/test/java/zuo/biao/library/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package zuo.biao.library;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * To work on unit tests, switch the Test Artifact in the Build Variants view.
9 | */
10 | public class ExampleUnitTest {
11 | @Test
12 | public void addition_isCorrect() throws Exception {
13 | assertEquals(4, 2 + 2);
14 | }
15 | }
--------------------------------------------------------------------------------
/app/src/test/java/apijson/demo/client/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package apijson.demo.client;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * To work on unit tests, switch the Test Artifact in the Build Variants view.
9 | */
10 | public class ExampleUnitTest {
11 | @Test
12 | public void addition_isCorrect() throws Exception {
13 | assertEquals(4, 2 + 2);
14 | }
15 | }
--------------------------------------------------------------------------------
/QRCodeLibrary/src/test/java/com/ericssonlabs/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.ericssonlabs;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * To work on unit tests, switch the Test Artifact in the Build Variants view.
9 | */
10 | public class ExampleUnitTest {
11 | @Test
12 | public void addition_isCorrect() throws Exception {
13 | assertEquals(4, 2 + 2);
14 | }
15 | }
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/slide_in_right.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
13 |
14 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/slide_out_left.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
13 |
14 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/bg_white_to_alpha.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/splash.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | -
7 |
8 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/comment_view_comment_more_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/bg_green_to_darker_green.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/APIJSONLibrary/src/test/java/zuo/biao/apijson/client/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package zuo.biao.apijson.client;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * To work on unit tests, switch the Test Artifact in the Build Variants view.
9 | */
10 | public class ExampleUnitTest {
11 | @Test
12 | public void addition_isCorrect() throws Exception {
13 | assertEquals(4, 2 + 2);
14 | }
15 | }
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/bg_black_to_white_alpha.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/bottom_menu_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/tab_bg_left_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/tab_bg_right_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZBLibrary/src/androidTest/java/zuo/biao/library/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package zuo.biao.library;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/app/src/androidTest/java/apijson/demo/client/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package apijson.demo.client;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/QRCodeLibrary/src/androidTest/java/com/ericssonlabs/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.ericssonlabs;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/APIJSONLibrary/src/androidTest/java/zuo/biao/apijson/client/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package zuo.biao.apijson.client;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/round_rectangle_empty_white.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
13 |
14 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/key_value_divider.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/comment_down_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/input_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/AdapterViewPresenter.java:
--------------------------------------------------------------------------------
1 | package zuo.biao.library.interfaces;
2 |
3 | import android.view.ViewGroup;
4 |
5 | public interface AdapterViewPresenter {
6 |
7 | /**生成新的BV
8 | * @param position
9 | * @param parent
10 | * @return
11 | */
12 | public abstract V createView(int position, ViewGroup parent);
13 |
14 | /**设置BV显示
15 | * @param position
16 | * @param bv
17 | * @return
18 | */
19 | public abstract void bindView(int position, V bv);
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/menu_manage_manager_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/input_bg_pressed.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/moment_view_comment_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/grid_picker_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/list_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/progress_color_horizontal.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
6 |
7 |
8 |
9 | -
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/item_dialog_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/picture_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
9 |
10 |
14 |
15 |
--------------------------------------------------------------------------------
/APIJSONLibrary/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Built application files
2 | *.apk
3 | *.ap_
4 |
5 | # Files for the ART/Dalvik VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # Generated files
12 | bin/
13 | gen/
14 | out/
15 |
16 | # Gradle files
17 | .gradle/
18 | build/
19 |
20 | # Local configuration file (sdk path, etc)
21 | local.properties
22 |
23 | # Proguard folder generated by Eclipse
24 | proguard/
25 |
26 | # Log Files
27 | *.log
28 |
29 | # Android Studio Navigation editor temp files
30 | .navigation/
31 |
32 | # Android Studio captures folder
33 | captures/
34 |
35 | # Intellij
36 | *.iml
37 | .idea/
38 |
39 | # Keystore files
40 | *.jks
41 |
42 | .DS_Store
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/bottom_menu_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/top_menu_list_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
--------------------------------------------------------------------------------
/QRCodeLibrary/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | android {
4 | compileSdkVersion 23
5 | buildToolsVersion '23.0.2'
6 | defaultConfig {
7 | minSdkVersion 15
8 | targetSdkVersion 22
9 | versionCode 1
10 | versionName "1.0"
11 | }
12 | buildTypes {
13 | release {
14 | minifyEnabled false
15 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
16 | }
17 | }
18 | productFlavors {
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | testCompile 'junit:junit:4.12'
25 | }
26 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/icon_name_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
18 |
19 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/dialog_bg_map.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
6 |
7 |
8 |
11 |
12 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/square_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
12 |
13 |
17 |
18 |
--------------------------------------------------------------------------------
/APIJSONLibrary/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | android {
4 | compileSdkVersion 23
5 | buildToolsVersion '23.0.2'
6 | defaultConfig {
7 | minSdkVersion 15
8 | targetSdkVersion 22
9 | versionCode 1
10 | versionName "1.0"
11 | }
12 | buildTypes {
13 | release {
14 | minifyEnabled false
15 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
16 | }
17 | }
18 | productFlavors {
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | testCompile 'junit:junit:4.12'
25 | compile files('libs/fastjson-1.2.24.jar')
26 | }
27 |
--------------------------------------------------------------------------------
/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 /Users/Tommy/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 |
--------------------------------------------------------------------------------
/ZBLibrary/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/Tommy/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 |
--------------------------------------------------------------------------------
/APIJSONLibrary/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/Tommy/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 |
--------------------------------------------------------------------------------
/QRCodeLibrary/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/Tommy/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 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/top_tab_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
9 |
10 |
11 |
12 |
15 |
16 |
17 |
21 |
22 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/drawable/list_item_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
13 |
14 |
15 |
16 |
19 |
20 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/key_value_item_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
9 |
10 |
15 |
16 |
17 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/comment_container_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
10 |
19 |
20 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/ui/package-info.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | /**
16 | * UI显示类所在包
17 | */
18 | /**
19 | * @author Lemon
20 | */
21 | package zuo.biao.library.ui;
--------------------------------------------------------------------------------
/APIJSONLibrary/src/main/java/zuo/biao/apijson/client/package-info.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | /**
16 | * files for client projects
17 | */
18 | /**
19 | * @author Lemon
20 | *
21 | */
22 | package zuo.biao.apijson.client;
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/base/package-info.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | /**
16 | * 基础类所在包
17 | */
18 | /**
19 | * @author Lemon
20 | * @use 通用使用方法:extends BaseXX
21 | */
22 | package zuo.biao.library.base;
--------------------------------------------------------------------------------
/APIJSONLibrary/src/main/java/zuo/biao/apijson/package-info.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon/APIJSON)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | /**
16 | * the same files for server and client projects
17 | */
18 | /**
19 | * @author Lemon
20 | *
21 | */
22 | package zuo.biao.apijson;
--------------------------------------------------------------------------------
/app/src/main/res/layout/user_list_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
13 |
14 |
18 |
19 |
20 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/package-info.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | /**
16 | * 回调接口类所在包
17 | */
18 | /**
19 | * @author Lemon
20 | * @use 通用使用方法:implements XXInterface
21 | */
22 | package zuo.biao.library.interfaces;
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/key_value_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
10 |
11 |
15 |
16 |
17 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/moment_list_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
13 |
14 |
18 |
19 |
20 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/util/package-info.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | /**
16 | * 通用操作类所在包,里面所有方法都是static
17 | */
18 | /**
19 | * @author Lemon
20 | * @use 通用使用方法:XXUtil.xxMethod(...);
21 | */
22 | package zuo.biao.library.util;
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/image_picker_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
10 |
11 |
21 |
22 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/OnAddListener.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.interfaces;
16 |
17 | /**添加回调
18 | * @author Lemon
19 | * @param
20 | */
21 | public interface OnAddListener {
22 |
23 | void onAdd(T object);
24 | }
25 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/manager/package-info.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | /**
16 | * 管理类所在包
17 | */
18 | /**
19 | * @author Lemon
20 | * @use 通用使用方法:XXManager.getInstance().xxMethod(...)或new XXManager(...).xxMethod(...)
21 | */
22 | package zuo.biao.library.manager;
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/OnRemoveListener.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.interfaces;
16 |
17 | /**移除回调
18 | * @author Lemon
19 | * @param
20 | */
21 | public interface OnRemoveListener {
22 |
23 | void onRemove(T object);
24 | }
25 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/OnResultListener.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.interfaces;
16 |
17 | /**结果回调
18 | * @author Lemon
19 | * @param
20 | */
21 | public interface OnResultListener {
22 |
23 | void onResult(T result);
24 | }
25 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 23
5 | buildToolsVersion '23.0.2'
6 | defaultConfig {
7 | applicationId "apijson.demo.client"
8 | minSdkVersion 15
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 | productFlavors {
20 | }
21 | }
22 |
23 | dependencies {
24 | compile fileTree(dir: 'libs', include: ['*.jar'])
25 | testCompile 'junit:junit:4.12'
26 | compile project(':ZBLibrary')
27 | compile project(':QRCodeLibrary')
28 | compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
29 | compile 'io.reactivex.rxjava2:rxjava:2.0.1'
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/activity_fragment/package-info.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | /**
16 | * Activity、Fragment所在包
17 | * 因为Activity和Fragment(结构、生命周期等)很相似,且有时会相互改写,所以放在同一个包下便于管理
18 | */
19 | /**
20 | * @author Lemon
21 | *
22 | */
23 | package apijson.demo.client.activity_fragment;
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/OnProgressListener.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.interfaces;
16 |
17 | /**进度回调
18 | * @author Lemon
19 | * @param
20 | */
21 | public interface OnProgressListener {
22 |
23 | void onProgressUpdate(int progress);
24 | }
25 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/model/package-info.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | /**
16 | * 模型类所在包
17 | */
18 | /**
19 | * @author Lemon
20 | * @use 通用使用方法:
21 | * XXBean xxb = new XXBean(...);
22 | * xxb.setXX(...);
23 | * xxb.getXX();
24 | */
25 | package zuo.biao.library.model;
--------------------------------------------------------------------------------
/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
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/values/ids.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - false
5 | - false
6 | - false
7 | - false
8 | - false
9 | - false
10 | - false
11 | - false
12 | - false
13 | - false
14 | - false
15 | - false
16 | - false
17 |
18 |
--------------------------------------------------------------------------------
/ZBLibrary/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | android {
4 | compileSdkVersion 23
5 | buildToolsVersion "23.0.2"
6 | defaultConfig {
7 | minSdkVersion 15
8 | targetSdkVersion 22
9 | versionCode 1
10 | versionName "1.0"
11 | }
12 | buildTypes {
13 | release {
14 | minifyEnabled false
15 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
16 | }
17 | }
18 | useLibrary 'org.apache.http.legacy'
19 | productFlavors {
20 | }
21 | }
22 |
23 | dependencies {
24 | compile fileTree(dir: 'libs', include: ['*.jar'])
25 | testCompile 'junit:junit:4.12'
26 | compile files('libs/android-support-v4.jar')
27 | compile files('libs/okhttp-2.1.0.jar')
28 | compile files('libs/okio-1.0.0.jar')
29 | compile files('libs/universal-image-loader-1.9.4.jar')
30 | compile project(':APIJSONLibrary')
31 | }
32 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/user_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
13 |
14 |
19 |
20 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/item_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
15 |
16 |
17 |
18 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/model/package-info.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | /**
16 | * 继承服务端给的model,并使有对应基本类型(int,long,double,boolean,char等)的变量返回值不为null.
17 | * 一般可重写父类对应的get方法。例如:
18 | @Override
19 | public Long getId() {
20 | return value(super.getId());
21 | }
22 | */
23 | /**
24 | * @author Lemon
25 | *
26 | */
27 | package apijson.demo.client.model;
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/slide_in_from_bottom.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
22 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/slide_in_from_top.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
22 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/slide_out_to_bottom.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
22 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/anim/slide_out_to_top.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
22 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/model/Parameter.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.model;
16 |
17 | /**Http请求参数类
18 | * @author Lemon
19 | */
20 | public class Parameter extends Entry {
21 |
22 | private static final long serialVersionUID = 1L;
23 |
24 | public Parameter(String key, Object value) {
25 | super(key, value);
26 | }
27 |
28 | }
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/OnBottomDragListener.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.interfaces;
16 |
17 | /**拖拽View底部的回调接口
18 | * @author Lemon
19 | * @use implements OnBottomDragListener
20 | */
21 | public interface OnBottomDragListener {
22 |
23 | /**
24 | * @param rightToLeft ?从右向左 : 从左向右
25 | */
26 | void onDragBottom(boolean rightToLeft);
27 | }
28 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/grid_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
17 |
21 |
22 |
23 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/interfaces/TopBarMenuCallback.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.interfaces;
16 |
17 | import android.app.Activity;
18 | import android.view.View;
19 |
20 | public interface TopBarMenuCallback {
21 | /**
22 | * @param activity
23 | */
24 | View getLeftMenu(Activity activity);
25 |
26 | /**
27 | * @param activity
28 | */
29 | View getRightMenu(Activity activity);
30 | }
31 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/interfaces/OnTopBarClickListener.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.interfaces;
16 |
17 | import android.view.View;
18 |
19 | public interface OnTopBarClickListener {
20 | /**
21 | * @param v
22 | */
23 | void onReturnClick(View v);
24 |
25 | /**
26 | * @param v
27 | */
28 | void onTitleClick(View v);
29 |
30 | /**
31 | * @param v
32 | */
33 | void onForwardClick(View v);
34 | }
35 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/OnStopLoadListener.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.interfaces;
16 |
17 | /**停止加载监听回调
18 | * @author Lemon
19 | * @use implements OnStopLoadListener
20 | */
21 | public interface OnStopLoadListener {
22 | /**
23 | * 停止刷新
24 | */
25 | void onStopRefresh();
26 | /**
27 | * 停止加载更多
28 | * @param isHaveMore 还有未加载的数据
29 | */
30 | void onStopLoadMore(boolean isHaveMore);
31 | }
32 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/top_menu_window.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/interfaces/OnHttpResponseListener.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.interfaces;
16 |
17 | import zuo.biao.apijson.JSONResponse;
18 |
19 | /**网络请求回调接口
20 | * @author Lemon
21 | * @param
22 | */
23 | public interface OnHttpResponseListener {
24 | /**
25 | * @param requestCode
26 | * @param response
27 | * @param e
28 | */
29 | void onHttpResponse(int requestCode, JSONResponse response, Exception e);
30 | }
--------------------------------------------------------------------------------
/QRCodeLibrary/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/server/model/package-info.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | /**
16 | * 服务端给出的model
17 | * the names of classes equal the names of tables in Server database one by one, so do the variables and columns
18 | * (name) : model <=> table
19 | * (name, type) : variable <=> column
20 | * @warn don't use any base type like int or char in models, use Integer and String instead
21 | */
22 | /**
23 | * @author Lemon
24 | *
25 | */
26 | package apijson.demo.client.server.model;
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # APIJSON-Android-RxJava
2 |
3 | 全面使用RxJava。
4 |
5 | 两个优化明显的代码段都在setList方法内。使用到RxJava的地方做了 “使用RxJava” 的标记。
6 | 
7 |
8 | ## 总结
9 | 1.对MomentActivity,MomentListFragment等逻辑比较复杂、缩进层级多的代码段 逻辑简化和减少缩进层级的效果明显,其它地方逻辑简单用起来反而更麻烦。
10 |
11 | 2.RxJava的优势在于线程管理(提供IO,AndroidMainThread等线程)、集合与数组的处理(map,flatMap,filter)、层级和逻辑简化。
12 |
13 |
14 | #### QQ技术交流群:1050166440(新) 421793905(满) 595514898(满)
15 |
16 | 如果有什么问题或建议可以 [提 ISSUE ](https://github.com/TommyLemon/APIJSON-Android-RxJava/issues) 或 加群,交流技术,分享经验。
17 | 如果你解决了某些 Bug,或者新增了一些功能,欢迎 [贡献代码](https://github.com/TommyLemon/APIJSON-Android-RxJava/pulls),感激不尽^_^
18 |
19 |
20 | ### 其它项目
21 | [APIJSON](https://github.com/TommyLemon/APIJSON) 后端接口和文档自动化,前端(客户端) 定制返回 JSON 的数据和结构
22 |
23 | [Android-ZBLibrary](https://github.com/TommyLemon/Android-ZBLibrary) Android MVP快速开发框架,Demo全面,注释详细,使用简单,代码严谨
24 |
25 |
26 | ### 我要赞赏
27 | 创作不易,右上角点 ⭐Star 支持下吧,谢谢 ^_^
28 | [https://github.com/TommyLemon/APIJSON-Android-RxJava](https://github.com/TommyLemon/APIJSON-Android-RxJava)
29 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/xlistview_footer.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
21 |
22 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/util/ActionUtil.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.util;
16 |
17 | public class ActionUtil {
18 |
19 | public static final String ACTION_EXIT_APP = "EXIT_APP";
20 |
21 | public static final String INTENT_USER = "INTENT_USER";
22 |
23 | public static final String ACTION_USER_CHANGED = "ACTION_USER_CHANGED";
24 | public static final String ACTION_RELOAD_CURRENT_USER = "ACTION_RELOAD_CURRENT_USER";
25 |
26 | public static final String LOGIN_BROADCAST = "LOGIN_BROADCAST";
27 |
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/QRCodeLibrary/src/main/java/com/zxing/view/ViewfinderResultPointCallback.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2009 ZXing authors
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 |
17 | package com.zxing.view;
18 |
19 | import com.google.zxing.ResultPoint;
20 | import com.google.zxing.ResultPointCallback;
21 |
22 | public final class ViewfinderResultPointCallback implements ResultPointCallback {
23 |
24 | private final ViewfinderView viewfinderView;
25 |
26 | public ViewfinderResultPointCallback(ViewfinderView viewfinderView) {
27 | this.viewfinderView = viewfinderView;
28 | }
29 |
30 | public void foundPossibleResultPoint(ResultPoint point) {
31 | viewfinderView.addPossibleResultPoint(point);
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/model/Moment.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.model;
16 |
17 | /**作品类
18 | * @author Lemon
19 | */
20 | public class Moment extends apijson.demo.client.server.model.Moment {
21 | private static final long serialVersionUID = -7821648714756673170L;
22 |
23 | public Moment() {
24 | super();
25 | }
26 | public Moment(long id) {
27 | super(id);
28 | }
29 |
30 | @Override
31 | public Long getDate() {
32 | return value(super.getDate());
33 | }
34 | @Override
35 | public Long getId() {
36 | return value(super.getId());
37 | }
38 | @Override
39 | public Long getUserId() {
40 | return value(super.getUserId());
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/model/Wallet.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.model;
16 |
17 |
18 | /**钱包类
19 | * @author Lemon
20 | */
21 | public class Wallet extends apijson.demo.client.server.model.Wallet {
22 | private static final long serialVersionUID = 4298571449155754300L;
23 |
24 |
25 | public Wallet() {
26 | super();
27 | }
28 | public Wallet(long id) {
29 | super(id);
30 | }
31 |
32 | @Override
33 | public Long getId() {
34 | Long value = super.getId();
35 | return value == null ? 0 : value;
36 | }
37 | @Override
38 | public Long getUserId() {
39 | Long value = super.getUserId();
40 | return value == null ? 0 : value;
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/QRCodeLibrary/src/main/res/values/ids.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/FragmentPresenter.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.interfaces;
16 |
17 | import android.app.Activity;
18 |
19 | /**Fragment的逻辑接口
20 | * @author Lemon
21 | * @use implements FragmentPresenter
22 | * @warn 对象必须是Fragment
23 | */
24 | public interface FragmentPresenter extends Presenter {
25 |
26 | /**
27 | * 该Fragment在Activity添加的所有Fragment中的位置
28 | */
29 | static final String ARGUMENT_POSITION = "ARGUMENT_POSITION";
30 | static final String ARGUMENT_ID = "ARGUMENT_ID";
31 | static final String ARGUMENT_USER_ID = "ARGUMENT_USER_ID";
32 |
33 | static final int RESULT_OK = Activity.RESULT_OK;
34 | static final int RESULT_CANCELED = Activity.RESULT_CANCELED;
35 | }
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/OnReachViewBorderListener.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.interfaces;
16 |
17 | import android.view.View;
18 |
19 | /**到达(接触到)View的某个边界的监听回调
20 | * 一般用于一个(ViewGroup)parent内的(View)child接触到parent的事件监听
21 | * @author Lemon
22 | * @use implements OnReachViewBorderListener
23 | */
24 | public interface OnReachViewBorderListener {
25 | static final int TYPE_TOP = 0;
26 | static final int TYPE_BOTTOM = 1;
27 | static final int TYPE_LEFT = 2;
28 | static final int TYPE_RIGHT = 3;
29 |
30 | /**到达(接触到)v的某个边界(type)
31 | * @param type 边界类型
32 | * @param v 目标View,一般为ViewGroup(ListView,GridView等)
33 | */
34 | void onReach(int type, View v);
35 | }
36 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/grid_picker_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
15 |
16 |
17 |
18 |
19 |
20 |
26 |
27 |
28 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/APIJSONLibrary/src/main/java/zuo/biao/apijson/RequestMethod.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon/APIJSON)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.apijson;
16 |
17 | /**请求方法,对应org.springframework.web.bind.annotation.RequestMethod,多出一个POST_GET方法
18 | * @author Lemon
19 | */
20 | public enum RequestMethod {
21 |
22 | /**
23 | * 常规获取数据方式
24 | */
25 | GET,
26 |
27 | /**
28 | * 检查,默认是非空检查,返回数据总数
29 | */
30 | HEAD,
31 |
32 | /**
33 | * 通过POST来GET数据,不显示请求内容和返回结果,一般用于对安全要求比较高的请求
34 | */
35 | POST_GET,
36 |
37 | /**
38 | * 通过POST来HEAD数据,不显示请求内容和返回结果,一般用于对安全要求比较高的请求
39 | */
40 | POST_HEAD,
41 |
42 | /**
43 | * 新增(或者说插入)数据
44 | */
45 | POST,
46 |
47 | /**
48 | * 修改数据,只修改传入字段对应的值
49 | */
50 | PUT,
51 |
52 | /**
53 | * 删除数据
54 | */
55 | DELETE
56 | }
57 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/ViewPresenter.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.interfaces;
16 |
17 | import android.support.annotation.Nullable;
18 |
19 | /**View的逻辑接口
20 | * @author Lemon
21 | * @use implements ViewPresenter
22 | */
23 | public interface ViewPresenter {
24 |
25 | /**获取导航栏标题名
26 | * @return null - View.GONE; "" - View.GONE; "xxx" - "xxx"
27 | */
28 | @Nullable
29 | public String getTitleName();
30 |
31 | /**获取导航栏返回按钮名
32 | * @return null - default; "" - default; "xxx" - "xxx"
33 | */
34 | @Nullable
35 | public String getReturnName();
36 |
37 | /**获取导航栏前进按钮名
38 | * @return null - default; "" - default; "xxx" - "xxx"
39 | */
40 | @Nullable
41 | public String getForwardName();
42 |
43 | }
--------------------------------------------------------------------------------
/QRCodeLibrary/src/main/java/com/zxing/encoding/EncodingHandler.java:
--------------------------------------------------------------------------------
1 | package com.zxing.encoding;
2 |
3 | import java.util.Hashtable;
4 |
5 | import android.graphics.Bitmap;
6 |
7 | import com.google.zxing.BarcodeFormat;
8 | import com.google.zxing.EncodeHintType;
9 | import com.google.zxing.MultiFormatWriter;
10 | import com.google.zxing.WriterException;
11 | import com.google.zxing.common.BitMatrix;
12 | /**
13 | * @author Ryan Tang
14 | *
15 | */
16 | public final class EncodingHandler {
17 | private static final int BLACK = 0xff000000;
18 |
19 | public static Bitmap createQRCode(String str,int widthAndHeight) throws WriterException {
20 | Hashtable hints = new Hashtable();
21 | hints.put(EncodeHintType.CHARACTER_SET, "utf-8");
22 | BitMatrix matrix = new MultiFormatWriter().encode(str,
23 | BarcodeFormat.QR_CODE, widthAndHeight, widthAndHeight);
24 | int width = matrix.getWidth();
25 | int height = matrix.getHeight();
26 | int[] pixels = new int[width * height];
27 |
28 | for (int y = 0; y < height; y++) {
29 | for (int x = 0; x < width; x++) {
30 | if (matrix.get(x, y)) {
31 | pixels[y * width + x] = BLACK;
32 | }
33 | }
34 | }
35 | Bitmap bitmap = Bitmap.createBitmap(width, height,
36 | Bitmap.Config.ARGB_8888);
37 | bitmap.setPixels(pixels, 0, width, 0, 0, width, height);
38 | return bitmap;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/model/Login.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.model;
16 |
17 | /**登录类
18 | * @author Lemon
19 | */
20 | @SuppressWarnings("serial")
21 | public class Login extends apijson.demo.client.server.model.Login {
22 |
23 | public Login() {
24 | super();
25 | }
26 | public Login(long userId) {
27 | this();
28 | setUserId(userId);
29 | }
30 |
31 | @Override
32 | public Long getUserId() {
33 | Long userId = super.getUserId();
34 | return userId == null ? 0 : userId;
35 | }
36 | // @Override
37 | // public Boolean getType() {
38 | // Boolean type = super.getType();
39 | // return type == null ? false : type;
40 | // }
41 | @Override
42 | public Integer getType() {
43 | Integer type = super.getType();
44 | return type == null ? 0 : type;
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/AdapterCallBack.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.interfaces;
16 |
17 | import android.widget.BaseAdapter;
18 |
19 | /**Adapter使用回调
20 | * @author Lemon
21 | * @param adapter名称
22 | * @see #createAdapter
23 | * @see #refreshAdapter
24 | * @use implements AdapterCallBack,具体参考.DemoListActivity和.DemoListFragment
25 | */
26 | public interface AdapterCallBack {
27 |
28 | /**创建一个Adapter
29 | * @return new A();
30 | */
31 | A createAdapter();
32 |
33 | /**
34 | * BaseAdapter#notifyDataSetChanged()有时无效,有时因列表更新不及时而崩溃,所以需要在自定义adapter内自定义一个刷新方法。
35 | * 为什么不直接让自定义Adapter implement OnRefreshListener,从而直接 onRefreshListener.onRefresh(List list) ?
36 | * 因为这样的话会不兼容部分 Android SDK 或 第三方库的Adapter
37 | */
38 | void refreshAdapter();
39 | }
40 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/web_view_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
11 |
12 |
21 |
22 |
23 |
24 |
25 |
28 |
29 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/adapter/UserAdapter.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.adapter;
16 |
17 | import zuo.biao.library.base.BaseViewAdapter;
18 | import android.app.Activity;
19 | import android.view.ViewGroup;
20 | import apijson.demo.client.model.User;
21 | import apijson.demo.client.view.UserView;
22 |
23 | /**用户adapter
24 | * @author Lemon
25 | */
26 | public class UserAdapter extends BaseViewAdapter {
27 | // private static final String TAG = "UserAdapter";
28 |
29 | public UserAdapter(Activity context) {
30 | super(context);
31 | }
32 |
33 | @Override
34 | public UserView createView(int position, ViewGroup parent) {
35 | return new UserView(context, resources);
36 | }
37 |
38 | @Override
39 | public long getItemId(int position) {
40 | return getItem(position).getId();
41 | }
42 | }
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/ActivityPresenter.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.interfaces;
16 |
17 | import android.app.Activity;
18 | import android.view.View;
19 |
20 | /**Activity的逻辑接口
21 | * @author Lemon
22 | * @use implements ActivityPresenter
23 | * @warn 对象必须是Activity
24 | */
25 | public interface ActivityPresenter extends Presenter {
26 |
27 | /**获取Activity
28 | * @must 在非抽象Activity中 return this;
29 | */
30 | public Activity getActivity();//无public导致有时自动生成的getActivity方法会缺少public且对此报错
31 |
32 | /**返回按钮被点击
33 | * *Activity的返回按钮和底部弹窗的取消按钮几乎是必备,正好原生支持反射;而其它比如Fragment极少用到,也不支持反射
34 | * @param v
35 | */
36 | public void onReturnClick(View v);
37 |
38 | /**前进按钮被点击
39 | * *Activity常用导航栏右边按钮,而且底部弹窗BottomWindow的确定按钮是必备;而其它比如Fragment极少用到,也不支持反射
40 | * @param v
41 | */
42 | public void onForwardClick(View v);
43 |
44 | }
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/base_view_bottom_window.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
16 |
19 |
20 |
24 |
25 |
26 |
27 |
28 |
31 |
32 |
35 |
36 |
37 |
38 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/util/Constant.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.util;
16 |
17 |
18 | /**常量工具类
19 | * @author Lemon
20 | * @warn TODO 修改里面所有常量
21 | */
22 | public class Constant {
23 |
24 | public static final String APP_OFFICIAL_WEBSITE = "https://github.com/TommyLemon/APIJSON";
25 | public static final String APP_OFFICIAL_WEIBO = "weibo.com/5225556360";
26 | public static final String APP_OFFICIAL_BLOG = "http://my.oschina.net/u/2437072";
27 | public static final String APP_OFFICIAL_EMAIL = "tommylemon@qq.com";
28 | public static final String APP_DOWNLOAD_WEBSITE = "http://files.cnblogs.com/files/tommylemon/APIJSONApp.apk";
29 |
30 | public static final String APP_DEVELOPER_WEBSITE = "https://github.com/TommyLemon";
31 |
32 | public static final String UPDATE_LOG_WEBSITE = "github.com/TommyLemon/APIJSON/commits/master";
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/QRCodeLibrary/src/main/java/com/zxing/decoding/FinishListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2010 ZXing authors
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 |
17 | package com.zxing.decoding;
18 |
19 | import android.app.Activity;
20 | import android.content.DialogInterface;
21 |
22 | /**
23 | * Simple listener used to exit the app in a few cases.
24 | *
25 | */
26 | public final class FinishListener
27 | implements DialogInterface.OnClickListener, DialogInterface.OnCancelListener, Runnable {
28 |
29 | private final Activity activityToFinish;
30 |
31 | public FinishListener(Activity activityToFinish) {
32 | this.activityToFinish = activityToFinish;
33 | }
34 |
35 | public void onCancel(DialogInterface dialogInterface) {
36 | run();
37 | }
38 |
39 | public void onClick(DialogInterface dialogInterface, int i) {
40 | run();
41 | }
42 |
43 | public void run() {
44 | activityToFinish.finish();
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/activity_fragment/SplashActivity.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.activity_fragment;
16 |
17 | import android.app.Activity;
18 | import android.os.Bundle;
19 | import android.os.Handler;
20 | import apijson.demo.client.R;
21 |
22 | /**闪屏activity,保证点击桌面应用图标后无延时响应
23 | * @author Lemon
24 | */
25 | public class SplashActivity extends Activity {
26 |
27 |
28 | @Override
29 | protected void onCreate(Bundle savedInstanceState) {
30 | super.onCreate(savedInstanceState);
31 |
32 | new Handler().postDelayed(new Runnable() {
33 |
34 | @Override
35 | public void run() {
36 | startActivity(MainTabActivity.createIntent(SplashActivity.this));
37 | finish();
38 | }
39 | }, 500);
40 | }
41 |
42 | @Override
43 | public void finish() {
44 | super.finish();
45 | overridePendingTransition(R.anim.fade, R.anim.hold);
46 | }
47 |
48 | }
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/CacheCallBack.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.interfaces;
16 |
17 | /**缓存回调
18 | * @author Lemon
19 | * @param
20 | * @use 见 .DemoListActivity 和 .UserListFragment
21 | */
22 | public interface CacheCallBack {
23 | /**
24 | * 获取缓存的类,通常是数据模型(model/JavaBean)类
25 | * @warn Entry这种带类型(这里是K和V)的类不能作为返回值,应该用其它不带类型的类(比如.User)替换
26 | * @return null-不缓存
27 | */
28 | Class getCacheClass();
29 |
30 | /**
31 | * 获取缓存的分组
32 | * @return 含非空字符的String ?缓存至对应class的group中 : 至缓存至对应class中
33 | */
34 | String getCacheGroup();
35 |
36 | /**
37 | * 获取缓存单个数据的id
38 | * @param data
39 | * @return data == null ? null : "" + data.getId(); //不用long是因为某些数据(例如订单)的id超出long的最大值
40 | */
41 | String getCacheId(T data);
42 |
43 | /**
44 | * 获取缓存每页数量
45 | * @return > 0 ?缓存 : 不缓存
46 | */
47 | int getCacheCount();
48 |
49 | }
--------------------------------------------------------------------------------
/QRCodeLibrary/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | #EDEDED
5 | #ff000000
6 | #ffffffff
7 | #ffcccccc
8 | #ff404040
9 | #c0ffff00
10 | #ffffffff
11 | #ffc0c0c0
12 | #c000ff00
13 | #ffffffff
14 | #b0000000
15 | #ff808080
16 | #ffffffff
17 | #fffff0e0
18 | #ffffffff
19 | #ff000000
20 | #ff4b4b4b
21 | #ff000000
22 | #ffffffff
23 | #50000000
24 | #ffffffff
25 | #00000000
26 | #ff000000
27 | #ffff0000
28 | #60000000
29 | #58567D
30 | #686868
31 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/model/Comment.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.model;
16 |
17 | /**评论类
18 | * @author Lemon
19 | */
20 | public class Comment extends apijson.demo.client.server.model.Comment {
21 | private static final long serialVersionUID = -1011007127735372824L;
22 |
23 | public Comment() {
24 | super();
25 | }
26 | public Comment(long id) {
27 | this();
28 | setId(id);
29 | }
30 | public Comment(String content) {
31 | this();
32 | setContent(content);
33 | }
34 |
35 | @Override
36 | public Long getId() {
37 | return value(super.getId());
38 | }
39 | @Override
40 | public Long getDate() {
41 | return value(super.getDate());
42 | }
43 | @Override
44 | public Long getMomentId() {
45 | return value(super.getMomentId());
46 | }
47 | @Override
48 | public Long getToId() {
49 | return value(super.getToId());
50 | }
51 | @Override
52 | public Long getUserId() {
53 | return value(super.getUserId());
54 | }
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/wallet_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
17 |
18 |
19 |
23 |
24 |
27 |
28 |
34 |
35 |
40 |
41 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/base/BaseModel.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.base;
16 |
17 | import java.io.Serializable;
18 |
19 | /**基础Model,继承它可以省去部分代码,也可以不继承
20 | * *isCorrect可以用于BaseModel子类的数据校验
21 | * *implements Serializable 是为了网络传输字节流转换
22 | * @author Lemon
23 | * @use extends BaseModel
24 | */
25 | @SuppressWarnings("serial")
26 | public abstract class BaseModel implements Serializable {
27 |
28 | public long id;
29 |
30 | //对子类不起作用
31 | // /**默认构造方法,JSON等解析时必须要有
32 | // */
33 | // public BaseModel() {
34 | // }
35 |
36 |
37 | public long getId() {
38 | return id;
39 | }
40 | public void setId(long id) {
41 | this.id = id;
42 | }
43 |
44 |
45 | /**数据正确性校验
46 | * @param data
47 | * @return
48 | */
49 | public static boolean isCorrect(BaseModel data) {
50 | return data != null && data.isCorrect();
51 | }
52 |
53 | /**数据正确性校验
54 | * @return
55 | */
56 | protected abstract boolean isCorrect();//public导致JSON.toJSONString会添加correct字段
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/model/Verify.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.model;
16 |
17 | import zuo.biao.library.util.StringUtil;
18 |
19 |
20 | /**钱包类
21 | * @author Lemon
22 | */
23 | public class Verify extends apijson.demo.client.server.model.Verify {
24 | private static final long serialVersionUID = 4298571449155754300L;
25 |
26 | public Verify() {
27 | super();
28 | }
29 | public Verify(long phone) {
30 | super(phone);
31 | }
32 | public Verify(String code) {
33 | this();
34 | setCode(code);
35 | }
36 |
37 | @Override
38 | public Long getId() {
39 | return value(super.getId());
40 | }
41 |
42 | /**服务器用id作为phone
43 | * @return
44 | */
45 | public String getPhone() {
46 | return "" + getId();
47 | }
48 | public Verify setPhone(String phone) {
49 | setId(Long.valueOf(0 + StringUtil.getNumber(phone)));
50 | return this;
51 | }
52 | public Verify setPhone(Long phone) {
53 | setId(Long.valueOf(0 + StringUtil.getNumber(phone)));
54 | return this;
55 | }
56 |
57 | }
58 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/moment_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
13 |
14 |
15 |
16 |
17 |
23 |
24 |
29 |
30 |
37 |
38 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/model/Entry.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.model;
16 |
17 | import zuo.biao.library.base.BaseModel;
18 |
19 | /**自定义Entry
20 | * *java.util.Map.Entry是interface,new Entry(...)不好用,其它的Entry也不好用
21 | * @author Lemon
22 | * @param key
23 | * @param value
24 | * @use new Entry(...)
25 | * @warn K,V都需要基本类型时不建议使用,判空麻烦,不如新建一个Model
26 | */
27 | public class Entry extends BaseModel {
28 |
29 | private static final long serialVersionUID = 1L;
30 |
31 |
32 | public K key;
33 | public V value;
34 |
35 | public Entry() {
36 | //default
37 | }
38 | public Entry(K key) {
39 | this(key, null);
40 | }
41 | public Entry(K key, V value) {
42 | this.key = key;
43 | this.value = value;
44 | }
45 |
46 |
47 | public K getKey() {
48 | return key;
49 | }
50 | public void setKey(K key) {
51 | this.key = key;
52 | }
53 | public V getValue() {
54 | return value;
55 | }
56 | public void setValue(V value) {
57 | this.value = value;
58 | }
59 |
60 |
61 | @Override
62 | public boolean isCorrect() {
63 | return key != null;
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/user_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
17 |
18 |
19 |
20 |
26 |
27 |
35 |
36 |
37 |
41 |
42 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/server/model/Login.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.server.model;
16 |
17 | import zuo.biao.apijson.APIJSONRequest;
18 | import zuo.biao.apijson.BaseModel;
19 | import zuo.biao.apijson.RequestMethod;
20 |
21 | /**登录类
22 | * @author Lemon
23 | */
24 | @SuppressWarnings("serial")
25 | @APIJSONRequest(
26 | method = {RequestMethod.POST_GET, RequestMethod.POST, RequestMethod.DELETE},
27 | DELETE = "{necessaryColumns:id}"
28 | )
29 | public class Login extends BaseModel {
30 |
31 | public static final int TYPE_PASSWORD = 0;
32 | public static final int TYPE_VERIFY = 1;
33 |
34 | private Long userId;
35 | private Integer type;
36 |
37 | public Login() {
38 | super();
39 | }
40 | public Login(long userId) {
41 | this();
42 | setUserId(userId);
43 | }
44 |
45 | public Long getUserId() {
46 | return userId;
47 | }
48 | public Login setUserId(Long userId) {
49 | this.userId = userId;
50 | return this;
51 | }
52 |
53 | public Integer getType() {
54 | return type;
55 | }
56 | public Login setType(Integer type) {
57 | this.type = type;
58 | return this;
59 | }
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/values/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | - 不限
6 | - 男
7 | - 女
8 |
9 |
10 | - 不限
11 | - 20岁以下
12 | - 20-25岁
13 | - 25-30岁
14 | - 30-35岁
15 | - 35岁以上
16 |
17 |
18 | - 不限
19 | - 小于1千米
20 | - 1千米-5千米
21 | - 5千米-10千米
22 | - 10千米-20千米
23 | - 20千米以上
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 | - 房地厂/建筑
51 | - 律师/法务
52 | - 教育/培训
53 | - 学生
54 | - 其它
55 | - 无
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/base/BaseApplication.java:
--------------------------------------------------------------------------------
1 | package zuo.biao.library.base;
2 |
3 | import zuo.biao.library.R;
4 | import zuo.biao.library.util.DataKeeper;
5 | import zuo.biao.library.util.ImageLoaderUtil;
6 | import zuo.biao.library.util.Log;
7 | import zuo.biao.library.util.SettingUtil;
8 | import android.app.Application;
9 |
10 | /**基础Application
11 | * @author Lemon
12 | * @see #init
13 | * @use extends BaseApplication 或 在你的Application的onCreate方法中BaseApplication.init(this);
14 | */
15 | public class BaseApplication extends Application {
16 | private static final String TAG = "BaseApplication";
17 |
18 | public BaseApplication() {
19 | }
20 |
21 | private static Application instance;
22 | public static Application getInstance() {
23 | return instance;
24 | }
25 |
26 | @Override
27 | public void onCreate() {
28 | super.onCreate();
29 | Log.d(TAG, "项目启动 >>>>>>>>>>>>>>>>>>>> \n\n");
30 |
31 | init(this);
32 | }
33 |
34 | /**初始化方法
35 | * @param application
36 | * @must 调用init方法且只能调用一次,如果extends BaseApplication会自动调用
37 | */
38 | public static void init(Application application) {
39 | instance = application;
40 | if (instance == null) {
41 | Log.e(TAG, "\n\n\n\n\n !!!!!! 调用BaseApplication中的init方法,instance不能为null !!!" +
42 | "\n <<<<<< init instance == null !!! >>>>>>>> \n\n\n\n");
43 | }
44 |
45 | DataKeeper.init(instance);
46 | SettingUtil.init(instance);
47 | ImageLoaderUtil.init(instance);
48 | }
49 |
50 | /**获取应用名
51 | * @return
52 | */
53 | public String getAppName() {
54 | return getResources().getString(R.string.app_name);
55 | }
56 | /**获取应用版本名(显示给用户看的)
57 | * @return
58 | */
59 | public String getAppVersion() {
60 | return getResources().getString(R.string.app_version);
61 | }
62 |
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/res/layout/bottom_menu_window.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
18 |
19 |
20 |
21 |
29 |
30 |
31 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/QRCodeLibrary/src/main/java/com/zxing/camera/AutoFocusCallback.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2010 ZXing authors
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 |
17 | package com.zxing.camera;
18 |
19 | import android.hardware.Camera;
20 | import android.os.Handler;
21 | import android.os.Message;
22 | import android.util.Log;
23 |
24 | final class AutoFocusCallback implements Camera.AutoFocusCallback {
25 |
26 | private static final String TAG = AutoFocusCallback.class.getSimpleName();
27 |
28 | private static final long AUTOFOCUS_INTERVAL_MS = 1500L;
29 |
30 | private Handler autoFocusHandler;
31 | private int autoFocusMessage;
32 |
33 | void setHandler(Handler autoFocusHandler, int autoFocusMessage) {
34 | this.autoFocusHandler = autoFocusHandler;
35 | this.autoFocusMessage = autoFocusMessage;
36 | }
37 |
38 | public void onAutoFocus(boolean success, Camera camera) {
39 | if (autoFocusHandler != null) {
40 | Message message = autoFocusHandler.obtainMessage(autoFocusMessage, success);
41 | autoFocusHandler.sendMessageDelayed(message, AUTOFOCUS_INTERVAL_MS);
42 | autoFocusHandler = null;
43 | } else {
44 | Log.d(TAG, "Got auto-focus callback, but no handler for it");
45 | }
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/server/model/Verify.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.server.model;
16 |
17 | import zuo.biao.apijson.APIJSONRequest;
18 | import zuo.biao.apijson.BaseModel;
19 | import zuo.biao.apijson.RequestMethod;
20 | import zuo.biao.apijson.StringUtil;
21 |
22 | /**登录类
23 | * @author Lemon
24 | */
25 | @SuppressWarnings("serial")
26 | @APIJSONRequest(
27 | method = {RequestMethod.POST_HEAD, RequestMethod.POST_GET, RequestMethod.POST, RequestMethod.DELETE},
28 | DELETE = "{necessaryColumns:id}"
29 | )
30 | public class Verify extends BaseModel {
31 |
32 | private String code;
33 |
34 | public Verify() {
35 | super();
36 | }
37 | public Verify(String phone) {
38 | this();
39 | setPhone(phone);
40 | }
41 | public Verify(Long phone) {
42 | this();
43 | setId(phone);
44 | }
45 | public Verify(String phone, String code) {
46 | this(phone);
47 | setCode(code);
48 | }
49 |
50 |
51 | public String getCode() {
52 | return code;
53 | }
54 | public Verify setCode(String code) {
55 | this.code = code;
56 | return this;
57 | }
58 |
59 | public Verify setPhone(String phone) {
60 | setId(Long.valueOf(0 + StringUtil.getNumber(phone)));
61 | return this;
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/APIJSONLibrary/src/main/java/zuo/biao/apijson/APIJSONRequest.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon/APIJSON)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.apijson;
16 |
17 | import java.lang.annotation.Documented;
18 | import java.lang.annotation.ElementType;
19 | import java.lang.annotation.Retention;
20 | import java.lang.annotation.RetentionPolicy;
21 | import java.lang.annotation.Target;
22 |
23 | /**请求方法对应的JSON结构
24 | * @author Lemon
25 | */
26 | @Target({ElementType.METHOD, ElementType.TYPE})
27 | @Retention(RetentionPolicy.RUNTIME)
28 | @Documented
29 | public @interface APIJSONRequest {
30 |
31 | /**
32 | * @return 允许的请求方法
33 | */
34 | RequestMethod[] method() default {};
35 |
36 |
37 | /**@see {@link RequestMethod#POST_GET}
38 | * @return 该请求方法允许的结构
39 | */
40 | String POST_GET() default "";
41 |
42 | /**@see {@link RequestMethod#POST_HEAD}
43 | * @return 该请求方法允许的结构
44 | */
45 | String POST_HEAD() default "";
46 |
47 | /**@see {@link RequestMethod#POST}
48 | * @return 该请求方法允许的结构
49 | */
50 | String POST() default "";
51 |
52 | /**@see {@link RequestMethod#PUT}
53 | * @return 该请求方法允许的结构
54 | */
55 | String PUT() default "";
56 |
57 | /**@see {@link RequestMethod#DELETE}
58 | * @return 该请求方法允许的结构
59 | */
60 | String DELETE() default "";
61 | }
62 |
--------------------------------------------------------------------------------
/APIJSONLibrary/src/main/java/zuo/biao/apijson/Log.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.apijson;
16 |
17 | /**测试用Log
18 | * @modifier Lemon
19 | */
20 | public class Log {
21 |
22 | private static final boolean DEBUG = true;
23 |
24 | /**
25 | * @param TAG
26 | * @param msg
27 | */
28 | public static void d(String TAG, String msg) {
29 | if (DEBUG) {
30 | System.err.println(TAG + ".DEBUG: " + msg);
31 | }
32 | }
33 |
34 | /**
35 | * @param TAG
36 | * @param msg
37 | */
38 | public static void v(String TAG, String msg) {
39 | if (DEBUG) {
40 | System.out.println(TAG + ".VERBOSE: " + msg);
41 | }
42 | }
43 |
44 | /**
45 | * @param TAG
46 | * @param msg
47 | */
48 | public static void i(String TAG, String msg) {
49 | if (DEBUG) {
50 | System.out.println(TAG + ".INFO: " + msg);
51 | }
52 | }
53 |
54 | /**
55 | * @param TAG
56 | * @param msg
57 | */
58 | public static void e(String TAG, String msg) {
59 | if (DEBUG) {
60 | System.err.println(TAG + ".ERROR: " + msg);
61 | }
62 | }
63 |
64 | /**
65 | * @param TAG
66 | * @param msg
67 | */
68 | public static void w(String TAG, String msg) {
69 | if (DEBUG) {
70 | System.err.println(TAG + ".WARN: " + msg);
71 | }
72 | }
73 |
74 | }
75 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/server/model/Wallet.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.server.model;
16 |
17 | import java.math.BigDecimal;
18 |
19 | import zuo.biao.apijson.APIJSONRequest;
20 | import zuo.biao.apijson.BaseModel;
21 | import zuo.biao.apijson.RequestMethod;
22 |
23 | /**钱包类
24 | * @author Lemon
25 | */
26 | @APIJSONRequest(
27 | method = {RequestMethod.POST_GET, RequestMethod.POST, RequestMethod.PUT, RequestMethod.DELETE},
28 | POST_GET = "{Wallet:{disallowColumns:!, necessaryColumns:userId}, necessaryColumns:currentUserId,loginPassword}",
29 | DELETE = "{necessaryColumns:id}"
30 | )
31 | public class Wallet extends BaseModel {
32 | private static final long serialVersionUID = 4298571449155754300L;
33 |
34 | public BigDecimal balance;
35 |
36 | private Long userId;
37 |
38 | /**默认构造方法,JSON等解析时必须要有
39 | */
40 | public Wallet() {
41 | super();
42 | }
43 | public Wallet(long id) {
44 | this();
45 | setId(id);
46 | }
47 |
48 | public Long getUserId() {
49 | return userId;
50 | }
51 | public Wallet setUserId(Long userId) {
52 | this.userId = userId;
53 | return this;
54 | }
55 |
56 | public BigDecimal getBalance() {
57 | return balance;
58 | }
59 | public Wallet setBalance(BigDecimal balance) {
60 | this.balance = balance;
61 | return this;
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/QRCodeLibrary/src/main/res/layout/camera.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
11 |
12 |
16 |
17 |
22 |
23 |
36 |
37 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/adapter/PictureAdapter.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.adapter;
16 |
17 | import zuo.biao.library.base.BaseAdapter;
18 | import zuo.biao.library.util.ImageLoaderUtil;
19 | import android.app.Activity;
20 | import android.view.View;
21 | import android.view.ViewGroup;
22 | import android.widget.ImageView;
23 | import apijson.demo.client.R;
24 |
25 | /**图片Adapter
26 | * @author Lemon
27 | * @use new PictureAdapter(...)
28 | */
29 | public class PictureAdapter extends BaseAdapter {
30 | // private static final String TAG = "PictureAdapter";
31 |
32 | public PictureAdapter(Activity context) {
33 | super(context);
34 | }
35 |
36 | @Override
37 | public View getView(final int position, View convertView, ViewGroup parent) {
38 | ViewHolder holder = convertView == null ? null : (ViewHolder) convertView.getTag();
39 | if (holder == null) {
40 | convertView = inflater.inflate(R.layout.picture_item, parent, false);
41 |
42 | holder = new ViewHolder();
43 | holder.ivHead = (ImageView) convertView.findViewById(R.id.ivGridItemHead);
44 |
45 | convertView.setTag(holder);
46 | }
47 |
48 | ImageLoaderUtil.loadImage(holder.ivHead, getItem(position));
49 |
50 | return convertView;
51 | }
52 |
53 | public class ViewHolder {
54 | public ImageView ivHead;
55 | }
56 |
57 | }
58 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/util/MD5Util.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.util;
16 |
17 | import java.io.UnsupportedEncodingException;
18 | import java.security.MessageDigest;
19 | import java.security.NoSuchAlgorithmException;
20 |
21 | /**MD5加密工具类
22 | */
23 | public class MD5Util {
24 |
25 | /**
26 | * 对字符串进行 MD5 加密
27 | *
28 | * @param str
29 | * 待加密字符串
30 | * @return 加密后字符串
31 | */
32 | public static String MD5(String str) {
33 | if (StringUtil.isNotEmpty(str, false) == false) {
34 | return "";
35 | }
36 | char hexDigits[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
37 | 'A', 'B', 'C', 'D', 'E', 'F' };
38 | MessageDigest md5 = null;
39 | try {
40 | md5 = MessageDigest.getInstance("MD5");
41 | md5.update(str.getBytes("UTF-8"));
42 | } catch (NoSuchAlgorithmException e) {
43 | e.printStackTrace();
44 | throw new RuntimeException(e.getMessage());
45 | } catch (UnsupportedEncodingException e) {
46 | e.printStackTrace();
47 | throw new RuntimeException(e.getMessage());
48 | }
49 | byte[] encodedValue = md5.digest();
50 | int j = encodedValue.length;
51 | char finalValue[] = new char[j * 2];
52 | int k = 0;
53 | for (int i = 0; i < j; i++) {
54 | byte encoded = encodedValue[i];
55 | finalValue[k++] = hexDigits[encoded >> 4 & 0xf];
56 | finalValue[k++] = hexDigits[encoded & 0xf];
57 | }
58 |
59 | return new String(finalValue);
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/interfaces/Presenter.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.interfaces;
16 |
17 | /**Activity和Fragment的公共逻辑接口
18 | * @author Lemon
19 | * @use Activity或Fragment implements Presenter
20 | */
21 | public interface Presenter {
22 |
23 | static final String INTENT_TITLE = "INTENT_TITLE";
24 | static final String INTENT_ID = "INTENT_ID";
25 | static final String INTENT_TYPE = "INTENT_TYPE";
26 | static final String INTENT_PHONE = "INTENT_PHONE";
27 | static final String INTENT_PASSWORD = "INTENT_PASSWORD";
28 | static final String INTENT_VERIFY = "INTENT_VERIFY";
29 | static final String INTENT_USER_ID = "INTENT_USER_ID";
30 | static final String RESULT_DATA = "RESULT_DATA";
31 | static final String ACTION_EXIT_APP = "ACTION_EXIT_APP";
32 |
33 | /**
34 | * UI显示方法(操作UI,但不存在数据获取或处理代码,也不存在事件监听代码)
35 | * @must Activity-在子类onCreate方法内初始化View(setContentView)后调用;Fragment-在子类onCreateView方法内初始化View后调用
36 | */
37 | void initView();
38 | /**
39 | * Data数据方法(存在数据获取或处理代码,但不存在事件监听代码)
40 | * @must Activity-在子类onCreate方法内初始化View(setContentView)后调用;Fragment-在子类onCreateView方法内初始化View后调用
41 | */
42 | void initData();
43 | /**
44 | * Event事件方法(只要存在事件监听代码就是)
45 | * @must Activity-在子类onCreate方法内初始化View(setContentView)后调用;Fragment-在子类onCreateView方法内初始化View后调用
46 | */
47 | void initEvent();
48 |
49 |
50 | /**
51 | * 是否存活(已启动且未被销毁)
52 | */
53 | boolean isAlive();
54 | /**
55 | * 是否在运行
56 | */
57 | boolean isRunning();
58 | }
--------------------------------------------------------------------------------
/QRCodeLibrary/src/main/res/layout/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
14 |
15 |
20 |
21 |
27 |
28 |
34 |
35 |
36 |
42 |
43 |
48 |
49 |
55 |
56 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/util/Log.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.util;
16 |
17 | /**测试用Log,不要使用android.util.Log
18 | * @modifier Lemon
19 | */
20 | public class Log {
21 |
22 | /**
23 | * @param TAG
24 | * @param msg
25 | */
26 | public static void d(String TAG, String msg) {
27 | if (! SettingUtil.isReleased) {
28 | android.util.Log.d(TAG, msg);
29 | }
30 | }
31 | /**
32 | * @param TAG
33 | * @param msg
34 | * @param tr
35 | */
36 | public static void d(String TAG, String msg, Throwable tr) {
37 | if (! SettingUtil.isReleased) {
38 | android.util.Log.d(TAG, msg, tr);
39 | }
40 | }
41 |
42 | /**
43 | * @param TAG
44 | * @param msg
45 | */
46 | public static void v(String TAG, String msg) {
47 | if (! SettingUtil.isReleased) {
48 | android.util.Log.v(TAG, msg);
49 | }
50 | }
51 |
52 | /**
53 | * @param TAG
54 | * @param msg
55 | */
56 | public static void i(String TAG, String msg) {
57 | if (! SettingUtil.isReleased) {
58 | android.util.Log.i(TAG, msg);
59 | }
60 | }
61 |
62 | /**
63 | * @param TAG
64 | * @param msg
65 | */
66 | public static void e(String TAG, String msg) {
67 | if (! SettingUtil.isReleased) {
68 | android.util.Log.e(TAG, msg);
69 | }
70 | }
71 |
72 | /**
73 | * @param TAG
74 | * @param msg
75 | */
76 | public static void w(String TAG, String msg) {
77 | if (! SettingUtil.isReleased) {
78 | android.util.Log.w(TAG, msg);
79 | }
80 | }
81 |
82 | }
83 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/util/PlaceUtil.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.util;
16 |
17 | /**地点相关类
18 | *@author Lemon
19 | *@date 2015-7-22 下午10:35:48
20 | */
21 | public class PlaceUtil {
22 |
23 | public static final int LEVEL_PROVINCE = 0;
24 | public static final int LEVEL_CITY = 1;
25 | public static final int LEVEL_DISTRICT = 2;
26 | public static final int LEVEL_TOWN = 3;
27 | public static final int LEVEL_ROAD = 4;
28 | public static final int[] LEVELS = {
29 | LEVEL_PROVINCE,
30 | LEVEL_CITY,
31 | LEVEL_DISTRICT,
32 | LEVEL_TOWN,
33 | LEVEL_ROAD,
34 | };
35 |
36 | public static final String NAME_PROVINCE = "省";
37 | public static final String NAME_CITY = "市";
38 | public static final String NAME_DISTRICT = "区";
39 | public static final String NAME_TOWN = "镇";
40 | public static final String NAME_ROAD = "街";
41 | public static final String[] LEVEL_NAMES = {
42 | NAME_PROVINCE,
43 | NAME_CITY,
44 | NAME_DISTRICT,
45 | NAME_TOWN,
46 | NAME_ROAD,
47 | };
48 |
49 |
50 | /**
51 | * @param level
52 | * @return
53 | */
54 | public static boolean isContainLevel(int level) {
55 | for (int existLevel : LEVELS) {
56 | if (level == existLevel) {
57 | return true;
58 | }
59 | }
60 | return false;
61 | }
62 |
63 | /**
64 | * @param level
65 | * @return
66 | */
67 | public static String getNameByLevel(int level) {
68 | return isContainLevel(level) ? LEVEL_NAMES[level - LEVEL_PROVINCE] : "";
69 | }
70 |
71 | }
72 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/server/model/Comment.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.server.model;
16 |
17 | import zuo.biao.apijson.APIJSONRequest;
18 | import zuo.biao.apijson.BaseModel;
19 | import zuo.biao.apijson.RequestMethod;
20 |
21 | /**评论类
22 | * @author Lemon
23 | */
24 | @APIJSONRequest(
25 | method = {RequestMethod.GET, RequestMethod.HEAD, RequestMethod.POST, RequestMethod.PUT, RequestMethod.DELETE},
26 | DELETE = "{necessaryColumns:id}"
27 | )
28 | public class Comment extends BaseModel {
29 | private static final long serialVersionUID = -1011007127735372824L;
30 |
31 | private Long toId;
32 | private Long userId;
33 | private Long momentId;
34 | private String content;
35 | public Comment() {
36 | super();
37 | }
38 | public Comment(long id) {
39 | this();
40 | setId(id);
41 | }
42 |
43 |
44 | public Long getToId() {
45 | return toId;
46 | }
47 | public Comment setToId(Long toId) {
48 | this.toId = toId;
49 | return this;
50 | }
51 | public Long getUserId() {
52 | return userId;
53 | }
54 | public Comment setUserId(Long userId) {
55 | this.userId = userId;
56 | return this;
57 | }
58 | public Long getMomentId() {
59 | return momentId;
60 | }
61 | public Comment setMomentId(Long momentId) {
62 | this.momentId = momentId;
63 | return this;
64 | }
65 | public String getContent() {
66 | return content;
67 | }
68 | public Comment setContent(String content) {
69 | this.content = content;
70 | return this;
71 | }
72 |
73 | }
74 |
--------------------------------------------------------------------------------
/app/src/main/java/apijson/demo/client/view/EmptyEventGridView.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2016 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package apijson.demo.client.view;
16 |
17 | import android.annotation.SuppressLint;
18 | import android.content.Context;
19 | import android.util.AttributeSet;
20 | import android.view.MotionEvent;
21 | import android.widget.GridView;
22 |
23 | /**自定义GridView,点击没有ChildView的空白处会把onTouchEvent传递到后面的View,相当于不会拦截触摸事件
24 | * @author Lemon
25 | */
26 | public class EmptyEventGridView extends GridView {
27 |
28 | public EmptyEventGridView(Context context) {
29 | super(context);
30 | }
31 |
32 | public EmptyEventGridView(Context context, AttributeSet attrs) {
33 | super(context, attrs);
34 | }
35 |
36 | public EmptyEventGridView(Context context, AttributeSet attrs, int defStyle) {
37 | super(context, attrs, defStyle);
38 | }
39 |
40 | @SuppressLint("ClickableViewAccessibility")
41 | @Override
42 | public boolean onTouchEvent(MotionEvent event) {
43 | if (!isEnabled()) {
44 | // A disabled view that is clickable still consumes the touch
45 | // events, it just doesn't respond to them.
46 | return isClickable() || isLongClickable();
47 | }
48 |
49 | final int motionPosition = pointToPosition((int)event.getX(), (int)event.getY());//获取点击的位置
50 | if(motionPosition == INVALID_POSITION) {//touch事件转交给后面的View处理
51 | super.onTouchEvent(event);
52 | return false;
53 | }
54 | return super.onTouchEvent(event);
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/util/ScreenUtil.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.util;
16 |
17 | import android.content.Context;
18 | import android.util.DisplayMetrics;
19 |
20 | /**屏幕相关类
21 | * @author Lemon
22 | * @use ScreenUtil.xxxMethod(...);
23 | */
24 | public class ScreenUtil {
25 | // private static final String TAG = "SceenUtil";
26 |
27 | private ScreenUtil() {/* 不能实例化**/}
28 |
29 |
30 | public static int[] screenSize;
31 | public static int[] getScreenSize(Context context){
32 | if (screenSize == null || screenSize[0] <= 480 || screenSize[1] <= 800) {//小于该分辨率会显示不全
33 | screenSize = new int[2];
34 |
35 | DisplayMetrics dm = new DisplayMetrics();
36 | dm = context.getResources().getDisplayMetrics();
37 | // float density = dm.density; // 屏幕密度(像素比例:0.75/1.0/1.5/2.0)
38 | // int densityDPI = dm.densityDpi; // 屏幕密度(每寸像素:120/160/240/320)
39 | // float xdpi = dm.xdpi;
40 | // float ydpi = dm.ydpi;
41 | // Log.e(TAG + " DisplayMetrics", "xdpi=" + xdpi + "; ydpi=" + ydpi);
42 | // Log.e(TAG + " DisplayMetrics", "density=" + density + "; densityDPI="
43 | // + densityDPI);
44 |
45 | screenSize[0] = dm.widthPixels;// 屏幕宽(像素,如:480px)
46 | screenSize[1] = dm.heightPixels;// 屏幕高(像素,如:800px)
47 | }
48 |
49 | return screenSize;
50 | }
51 |
52 | public static int getScreenWidth(Context context){
53 | return getScreenSize(context)[0];
54 | }
55 | public static int getScreenHeight(Context context){
56 | return getScreenSize(context)[1];
57 | }
58 |
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/ui/MaxHeightWrapLayout.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.ui;
16 |
17 | import android.content.Context;
18 | import android.util.AttributeSet;
19 | import android.widget.LinearLayout;
20 |
21 | /**限制最大高度为屏幕宽度的类
22 | * @author Lemon
23 | * @use 使用方法:写在xml文件中即可
24 | */
25 | public class MaxHeightWrapLayout extends LinearLayout {
26 |
27 | public MaxHeightWrapLayout(Context context, AttributeSet attrs, int defStyle) {
28 | super(context, attrs, defStyle);
29 | }
30 |
31 | public MaxHeightWrapLayout(Context context, AttributeSet attrs) {
32 | super(context, attrs);
33 | }
34 |
35 | public MaxHeightWrapLayout(Context context) {
36 | super(context);
37 | }
38 |
39 | @Override
40 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
41 | // For simple implementation, or internal size is always 0.
42 | // We depend on the container to specify the layout size of
43 | // our view. We can't really know what it is since we will be
44 | // adding and removing different arbitrary views and do not
45 | // want the layout to change as this happens.
46 | setMeasuredDimension(getDefaultSize(0, widthMeasureSpec), getDefaultSize(0, heightMeasureSpec));
47 |
48 | // Children are just made to fill our space.
49 |
50 | widthMeasureSpec = MeasureSpec.makeMeasureSpec(getMeasuredWidth(), MeasureSpec.EXACTLY);
51 | if (heightMeasureSpec > widthMeasureSpec) {//没用,在显示前height和width都为0
52 | heightMeasureSpec = widthMeasureSpec;
53 | }
54 | super.onMeasure(widthMeasureSpec, heightMeasureSpec);
55 | }
56 | }
--------------------------------------------------------------------------------
/ZBLibrary/src/main/java/zuo/biao/library/util/ContactUtil.java:
--------------------------------------------------------------------------------
1 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
14 |
15 | package zuo.biao.library.util;
16 |
17 | /**联系人公用类
18 | * @author Lemon
19 | */
20 | public class ContactUtil {
21 |
22 | public static final String NAME_NICK = "称呼";
23 | public static final String NAME_NAME = "姓名";
24 | public static final String NAME_BIRTHDAY = "生日";
25 |
26 | public static final String NAME_PHONE = "电话";
27 | public static final String NAME_EMAIL = "邮箱";
28 | public static final String NAME_WEBSITE = "网址";
29 | public static final String NAME_FAX = "传真";
30 |
31 | public static final String NAME_USUALADDRESS = "常用地址";
32 | public static final String NAME_MAILADDRESS = "收件地址";
33 | public static final String NAME_SCHOOL = "学校";
34 | public static final String NAME_COMPANY = "公司";
35 |
36 | public static final String NAME_PROFESSION = "职业";
37 | public static final String NAME_NOTE = "备注";
38 | public static final String NAME_OTHER = "其它";
39 |
40 |
41 | public static final int TYPE_NICK = 0;
42 | public static final int TYPE_NAME = 1;
43 | public static final int TYPE_BIRTHDAY = 2;
44 |
45 | public static final int TYPE_PHONE = 3;
46 | public static final int TYPE_WEBSITE = 4;
47 | public static final int TYPE_EMAIL = 5;
48 | public static final int TYPE_FAX = 6;
49 |
50 | public static final int TYPE_USUALADDRESS = 7;
51 | public static final int TYPE_MAILADDRESS = 8;
52 | public static final int TYPE_SCHOOL = 9;
53 | public static final int TYPE_COMPANY = 10;
54 |
55 | public static final int TYPE_PROFESSION = 11;
56 | public static final int TYPE_NOTE = 12;
57 |
58 |
59 | }
--------------------------------------------------------------------------------