├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── ids.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── splash.jpg │ │ │ │ ├── bg_tour.jpg │ │ │ │ ├── btn_close.png │ │ │ │ ├── fang_da.png │ │ │ │ ├── ic_about.png │ │ │ │ ├── icon_bind.png │ │ │ │ ├── icon_cart.png │ │ │ │ ├── arrow_right.png │ │ │ │ ├── btn_delete.png │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── icon_clock.png │ │ │ │ ├── icon_close.png │ │ │ │ ├── icon_coupon.png │ │ │ │ ├── icon_follow.png │ │ │ │ ├── icon_order.png │ │ │ │ ├── icon_start.png │ │ │ │ ├── fav_me_blank.png │ │ │ │ ├── ic_gender_boy.png │ │ │ │ ├── ic_gender_girl.png │ │ │ │ ├── ic_more_about.png │ │ │ │ ├── icon_cellphone.png │ │ │ │ ├── icon_password.png │ │ │ │ ├── icon_service.png │ │ │ │ ├── me_avatar_boy.png │ │ │ │ ├── selected_btn.png │ │ │ │ ├── beauful_woman_01.jpg │ │ │ │ ├── beauful_woman_02.jpg │ │ │ │ ├── beauful_woman_04.jpg │ │ │ │ ├── beauful_woman_05.jpg │ │ │ │ ├── beauful_woman_06.jpg │ │ │ │ ├── ic_chevron_dark.png │ │ │ │ ├── ic_more_feedback.png │ │ │ │ ├── ic_old_backward.png │ │ │ │ ├── ic_share_wechat.png │ │ │ │ ├── icon_search_grey.png │ │ │ │ ├── more_icon_score.png │ │ │ │ ├── beauful_woman_03.jpeg │ │ │ │ ├── beautiful_woman07.jpg │ │ │ │ ├── bg_switch_selected.png │ │ │ │ ├── ic_more_night_mode.png │ │ │ │ ├── ic_share_hyperlink.png │ │ │ │ ├── ic_share_sina_weibo.png │ │ │ │ ├── ic_share_tencent_qq.png │ │ │ │ ├── icon_bind_message.png │ │ │ │ ├── icon_delete_cross.png │ │ │ │ ├── icon_more_identify.png │ │ │ │ ├── arrow_down_nightmode.png │ │ │ │ ├── ic_default_like_list.png │ │ │ │ ├── ic_more_action_share.png │ │ │ │ ├── ic_more_notification.png │ │ │ │ ├── ic_action_compact_share.png │ │ │ │ ├── ic_share_tencent_qzone.png │ │ │ │ ├── ic_share_wechat_timeline.png │ │ │ │ ├── icon_more_mobile_service.png │ │ │ │ ├── abc_ic_ab_back_holo_light.png │ │ │ │ ├── ic_more_action_clean_cache.png │ │ │ │ ├── ic_toolkit_zebra_scanner2.png │ │ │ │ ├── ic_action_favourite_selected.png │ │ │ │ ├── ic_more_action_check_update.png │ │ │ │ └── ic_release_notes_share_selected.png │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_tab_gift_normal.png │ │ │ │ ├── ic_tab_home_normal.png │ │ │ │ ├── ic_tab_gift_selected.png │ │ │ │ ├── ic_tab_home_selected.png │ │ │ │ ├── ic_tab_category_normal.png │ │ │ │ ├── ic_tab_profile_normal.png │ │ │ │ ├── ic_tab_profile_selected.png │ │ │ │ └── ic_tab_category_selected.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── layout │ │ │ │ ├── strategy_fragment.xml │ │ │ │ ├── boy_fragment.xml │ │ │ │ ├── top_header.xml │ │ │ │ ├── list_day_header.xml │ │ │ │ ├── choose_picture.xml │ │ │ │ ├── left_listview.xml │ │ │ │ ├── choose_banner.xml │ │ │ │ ├── pop_item.xml │ │ │ │ ├── activity_choose.xml │ │ │ │ ├── activity_list_jump.xml │ │ │ │ ├── boy_send.xml │ │ │ │ ├── simple_fragment.xml │ │ │ │ ├── day_fragment.xml │ │ │ │ ├── choose_gallery.xml │ │ │ │ ├── top_fragment.xml │ │ │ │ ├── boy_listview.xml │ │ │ │ ├── list_fragment.xml │ │ │ │ ├── class_fragment.xml │ │ │ │ ├── activity_ad.xml │ │ │ │ ├── choose_fragment.xml │ │ │ │ ├── mine_title.xml │ │ │ │ ├── title_relative_gift.xml │ │ │ │ ├── title_list.xml │ │ │ │ ├── class_stra_head.xml │ │ │ │ ├── search_head.xml │ │ │ │ ├── title_activity_idea.xml │ │ │ │ ├── title_home.xml │ │ │ │ ├── pop.xml │ │ │ │ ├── activity_idea.xml │ │ │ │ ├── stra_recyler_view.xml │ │ │ │ ├── home_fragment.xml │ │ │ │ ├── activity_relative_gift.xml │ │ │ │ ├── activity_search.xml │ │ │ │ ├── boy_item.xml │ │ │ │ ├── list_share.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── search_item.xml │ │ │ │ ├── activity_invite.xml │ │ │ │ ├── activity_score.xml │ │ │ │ ├── choose_listview.xml │ │ │ │ ├── class_stra_list.xml │ │ │ │ ├── activity_identity.xml │ │ │ │ ├── list_top_item.xml │ │ │ │ └── list_day_item.xml │ │ │ └── drawable │ │ │ │ ├── shape.xml │ │ │ │ ├── list.xml │ │ │ │ ├── home.xml │ │ │ │ ├── mine.xml │ │ │ │ └── classs.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── dllo │ │ │ │ └── gift_present_0919 │ │ │ │ ├── list │ │ │ │ ├── fragments │ │ │ │ │ ├── list_day │ │ │ │ │ │ ├── OnListViewItemClick.java │ │ │ │ │ │ └── OnListViewItemRightClick.java │ │ │ │ │ └── list_top │ │ │ │ │ │ ├── OnListViewItemClick.java │ │ │ │ │ │ └── OnListViewItemRightClick.java │ │ │ │ ├── List_Share_Activity.java │ │ │ │ ├── LstAdapter.java │ │ │ │ ├── List_Jump_Activity.java │ │ │ │ └── ListTitleBean.java │ │ │ │ ├── volley │ │ │ │ ├── MyApp.java │ │ │ │ ├── VolleySingleton.java │ │ │ │ └── GsonRequest.java │ │ │ │ ├── mine │ │ │ │ ├── IdealActivity.java │ │ │ │ ├── ScoreActivity.java │ │ │ │ ├── InviteActivity.java │ │ │ │ ├── RelativeGiftActivity.java │ │ │ │ ├── IdentityNextActivity.java │ │ │ │ ├── IdentityActivity.java │ │ │ │ └── Mine_Set_Up_Activity.java │ │ │ │ ├── home │ │ │ │ ├── search │ │ │ │ │ ├── SearchBean.java │ │ │ │ │ ├── SearchAdapter.java │ │ │ │ │ └── SearchActivity.java │ │ │ │ ├── Title_Home_Login_Activity.java │ │ │ │ ├── HomeAdapter.java │ │ │ │ ├── choose │ │ │ │ │ ├── ChooseActivity.java │ │ │ │ │ ├── GalleryAdapter.java │ │ │ │ │ └── MyListAdapter.java │ │ │ │ ├── PopAdapter.java │ │ │ │ └── sendboys │ │ │ │ │ └── BoyAdapter.java │ │ │ │ ├── database │ │ │ │ └── MySqlHelper.java │ │ │ │ ├── baseaty │ │ │ │ ├── BaseAty.java │ │ │ │ └── StringUrl.java │ │ │ │ ├── classify │ │ │ │ ├── ClassAdapter.java │ │ │ │ ├── ClassFragment.java │ │ │ │ ├── single │ │ │ │ │ └── LeftAdapter.java │ │ │ │ └── srtategy │ │ │ │ │ ├── StraRecylerAdapter.java │ │ │ │ │ ├── StraAdapter.java │ │ │ │ │ └── StrategyFragment.java │ │ │ │ ├── basefragment │ │ │ │ └── BaseFragment.java │ │ │ │ ├── ad │ │ │ │ └── AdActivity.java │ │ │ │ └── main │ │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── dllo │ │ │ └── gift_present_0919 │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── example │ │ └── dllo │ │ └── gift_present_0919 │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── librar ├── src │ └── main │ │ ├── res │ │ ├── drawable-hdpi │ │ │ ├── indicator_arrow.png │ │ │ ├── default_ptr_flip.png │ │ │ └── default_ptr_rotate.png │ │ ├── drawable-mdpi │ │ │ ├── indicator_arrow.png │ │ │ ├── default_ptr_flip.png │ │ │ └── default_ptr_rotate.png │ │ ├── drawable-xhdpi │ │ │ ├── default_ptr_flip.png │ │ │ ├── indicator_arrow.png │ │ │ └── default_ptr_rotate.png │ │ ├── values │ │ │ ├── ids.xml │ │ │ ├── dimens.xml │ │ │ ├── pull_refresh_strings.xml │ │ │ └── attrs.xml │ │ ├── values-zh │ │ │ └── pull_refresh_strings.xml │ │ ├── values-ja │ │ │ └── pull_refresh_strings.xml │ │ ├── values-he │ │ │ └── pull_refresh_strings.xml │ │ ├── values-iw │ │ │ └── pull_refresh_strings.xml │ │ ├── values-ko │ │ │ └── pull_refresh_strings.xml │ │ ├── values-ar │ │ │ └── pull_refresh_strings.xml │ │ ├── values-es │ │ │ └── pull_refresh_strings.xml │ │ ├── values-cs │ │ │ └── pull_refresh_strings.xml │ │ ├── values-de │ │ │ └── pull_refresh_strings.xml │ │ ├── values-fr │ │ │ └── pull_refresh_strings.xml │ │ ├── values-it │ │ │ └── pull_refresh_strings.xml │ │ ├── values-nl │ │ │ └── pull_refresh_strings.xml │ │ ├── values-pl │ │ │ └── pull_refresh_strings.xml │ │ ├── values-pt-rBR │ │ │ └── pull_refresh_strings.xml │ │ ├── values-pt │ │ │ └── pull_refresh_strings.xml │ │ ├── values-ru │ │ │ └── pull_refresh_strings.xml │ │ ├── values-ro │ │ │ └── pull_refresh_strings.xml │ │ ├── drawable │ │ │ ├── indicator_bg_bottom.xml │ │ │ └── indicator_bg_top.xml │ │ ├── values-fi │ │ │ └── pull_refresh_strings.xml │ │ ├── anim │ │ │ ├── slide_in_from_top.xml │ │ │ ├── slide_out_to_top.xml │ │ │ ├── slide_in_from_bottom.xml │ │ │ └── slide_out_to_bottom.xml │ │ └── layout │ │ │ ├── pull_to_refresh_header_horizontal.xml │ │ │ └── pull_to_refresh_header_vertical.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── handmark │ │ └── pulltorefresh │ │ └── library │ │ ├── internal │ │ ├── Utils.java │ │ ├── EmptyViewMethodAccessor.java │ │ └── ViewCompat.java │ │ ├── ILoadingLayout.java │ │ ├── LoadingLayoutProxy.java │ │ ├── extras │ │ └── SoundPullEventListener.java │ │ ├── PullToRefreshGridView.java │ │ └── PullToRefreshExpandableListView.java └── build.gradle ├── .gitignore ├── gradle.properties ├── import-summary.txt └── gradlew.bat /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | include ':librar' 3 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Gift_Present_0919 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/splash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/splash.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/bg_tour.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/bg_tour.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/btn_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/btn_close.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/fang_da.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/fang_da.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_about.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_bind.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_bind.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_cart.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/arrow_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/arrow_right.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/btn_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/btn_delete.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_clock.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_close.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_coupon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_coupon.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_follow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_follow.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_order.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_order.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_start.png -------------------------------------------------------------------------------- /app/src/main/res/values/ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/fav_me_blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/fav_me_blank.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_gender_boy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_gender_boy.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_gender_girl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_gender_girl.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_more_about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_more_about.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_cellphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_cellphone.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_password.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_service.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_service.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/me_avatar_boy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/me_avatar_boy.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/selected_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/selected_btn.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/beauful_woman_01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/beauful_woman_01.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/beauful_woman_02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/beauful_woman_02.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/beauful_woman_04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/beauful_woman_04.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/beauful_woman_05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/beauful_woman_05.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/beauful_woman_06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/beauful_woman_06.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_chevron_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_chevron_dark.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_more_feedback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_more_feedback.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_old_backward.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_old_backward.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_share_wechat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_share_wechat.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_search_grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_search_grey.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/more_icon_score.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/more_icon_score.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/beauful_woman_03.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/beauful_woman_03.jpeg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/beautiful_woman07.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/beautiful_woman07.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/bg_switch_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/bg_switch_selected.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_more_night_mode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_more_night_mode.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_share_hyperlink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_share_hyperlink.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_share_sina_weibo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_share_sina_weibo.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_share_tencent_qq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_share_tencent_qq.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_bind_message.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_bind_message.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_delete_cross.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_delete_cross.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_more_identify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_more_identify.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_tab_gift_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xxhdpi/ic_tab_gift_normal.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_tab_home_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xxhdpi/ic_tab_home_normal.png -------------------------------------------------------------------------------- /librar/src/main/res/drawable-hdpi/indicator_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/librar/src/main/res/drawable-hdpi/indicator_arrow.png -------------------------------------------------------------------------------- /librar/src/main/res/drawable-mdpi/indicator_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/librar/src/main/res/drawable-mdpi/indicator_arrow.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/arrow_down_nightmode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/arrow_down_nightmode.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_default_like_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_default_like_list.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_more_action_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_more_action_share.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_more_notification.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_more_notification.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_tab_gift_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xxhdpi/ic_tab_gift_selected.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_tab_home_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xxhdpi/ic_tab_home_selected.png -------------------------------------------------------------------------------- /librar/src/main/res/drawable-hdpi/default_ptr_flip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/librar/src/main/res/drawable-hdpi/default_ptr_flip.png -------------------------------------------------------------------------------- /librar/src/main/res/drawable-mdpi/default_ptr_flip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/librar/src/main/res/drawable-mdpi/default_ptr_flip.png -------------------------------------------------------------------------------- /librar/src/main/res/drawable-xhdpi/default_ptr_flip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/librar/src/main/res/drawable-xhdpi/default_ptr_flip.png -------------------------------------------------------------------------------- /librar/src/main/res/drawable-xhdpi/indicator_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/librar/src/main/res/drawable-xhdpi/indicator_arrow.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_action_compact_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_action_compact_share.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_share_tencent_qzone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_share_tencent_qzone.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_share_wechat_timeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_share_wechat_timeline.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_more_mobile_service.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/icon_more_mobile_service.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_tab_category_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xxhdpi/ic_tab_category_normal.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_tab_profile_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xxhdpi/ic_tab_profile_normal.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_tab_profile_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xxhdpi/ic_tab_profile_selected.png -------------------------------------------------------------------------------- /librar/src/main/res/drawable-hdpi/default_ptr_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/librar/src/main/res/drawable-hdpi/default_ptr_rotate.png -------------------------------------------------------------------------------- /librar/src/main/res/drawable-mdpi/default_ptr_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/librar/src/main/res/drawable-mdpi/default_ptr_rotate.png -------------------------------------------------------------------------------- /librar/src/main/res/drawable-xhdpi/default_ptr_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/librar/src/main/res/drawable-xhdpi/default_ptr_rotate.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/abc_ic_ab_back_holo_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/abc_ic_ab_back_holo_light.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_more_action_clean_cache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_more_action_clean_cache.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_toolkit_zebra_scanner2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_toolkit_zebra_scanner2.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_tab_category_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xxhdpi/ic_tab_category_selected.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_action_favourite_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_action_favourite_selected.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_more_action_check_update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_more_action_check_update.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_release_notes_share_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woailanou2016/Gift_Present/HEAD/app/src/main/res/mipmap-xhdpi/ic_release_notes_share_selected.png -------------------------------------------------------------------------------- /librar/src/main/res/values/ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/list/fragments/list_day/OnListViewItemClick.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.list.fragments.list_day; 2 | 3 | /** 4 | * Created by dllo on 16/10/10. 5 | */ 6 | public interface OnListViewItemClick { 7 | void click(int itemPosition); 8 | } 9 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/list/fragments/list_top/OnListViewItemClick.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.list.fragments.list_top; 2 | 3 | /** 4 | * Created by dllo on 16/10/10. 5 | */ 6 | public interface OnListViewItemClick { 7 | void click(int itemPosition); 8 | } 9 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/list/fragments/list_day/OnListViewItemRightClick.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.list.fragments.list_day; 2 | 3 | /** 4 | * Created by dllo on 16/10/10. 5 | */ 6 | public interface OnListViewItemRightClick { 7 | void rightClick(int rightPosition); 8 | } 9 | -------------------------------------------------------------------------------- /librar/src/main/res/values-zh/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 下拉刷新… 4 | 放开以刷新… 5 | 正在载入… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-ja/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 画面を引っ張って… 4 | 指を離して更新… 5 | 読み込み中… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-he/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | משוך לרענון… 4 | שחרר לרענון… 5 | טוען… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-iw/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | משוך לרענון… 4 | שחרר לרענון… 5 | טוען… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-ko/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 당겨서 새로 고침… 4 | 놓아서 새로 고침… 5 | 로드 중… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-ar/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | اسحب للتحديث… 4 | اترك للتحديث… 5 | تحميل… 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/list/fragments/list_top/OnListViewItemRightClick.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.list.fragments.list_top; 2 | 3 | /** 4 | * Created by dllo on 16/10/10. 5 | */ 6 | public interface OnListViewItemRightClick { 7 | void rightClick(int rigthtPosition); 8 | 9 | 10 | } 11 | -------------------------------------------------------------------------------- /librar/src/main/res/values-es/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Tirar para actualizar… 4 | Soltar para actualizar… 5 | Cargando… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-cs/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Tažením aktualizujete… 4 | Uvolněním aktualizujete… 5 | Načítání… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-de/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Ziehen zum Aktualisieren… 4 | Loslassen zum Aktualisieren… 5 | Laden… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-fr/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Tirez pour rafraîchir… 4 | Relâcher pour rafraîchir… 5 | Chargement… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-it/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Tira per aggiornare… 4 | Rilascia per aggionare… 5 | Caricamento… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-nl/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Sleep om te vernieuwen… 4 | Loslaten om te vernieuwen… 5 | Laden… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-pl/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Pociągnij, aby odświeżyć… 4 | Puść, aby odświeżyć… 5 | Wczytywanie… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-pt-rBR/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Puxe para atualizar… 4 | Libere para atualizar… 5 | Carregando… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-pt/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Puxe para atualizar… 4 | Liberação para atualizar… 5 | A carregar… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values-ru/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Потяните для обновления… 4 | Отпустите для обновления… 5 | Загрузка… 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /librar/src/main/res/values-ro/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Trage pentru a reîmprospăta… 4 | Eliberează pentru a reîmprospăta… 5 | Încărcare… 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /librar/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10dp 5 | 12dp 6 | 4dp 7 | 24dp 8 | 12dp 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/test/java/com/example/dllo/gift_present_0919/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919; 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 | } -------------------------------------------------------------------------------- /librar/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 16 5 | buildToolsVersion "19.1.0" 6 | 7 | defaultConfig { 8 | minSdkVersion 4 9 | targetSdkVersion 4 10 | } 11 | 12 | buildTypes { 13 | release { 14 | minifyEnabled false 15 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /librar/src/main/java/com/handmark/pulltorefresh/library/internal/Utils.java: -------------------------------------------------------------------------------- 1 | package com.handmark.pulltorefresh.library.internal; 2 | 3 | import android.util.Log; 4 | 5 | public class Utils { 6 | 7 | static final String LOG_TAG = "PullToRefresh"; 8 | 9 | public static void warnDeprecation(String depreacted, String replacement) { 10 | Log.w(LOG_TAG, "You're using the deprecated " + depreacted + " attr, please switch over to " + replacement); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /app/src/main/res/layout/strategy_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/example/dllo/gift_present_0919/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919; 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/main/res/drawable/shape.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /app/src/main/res/layout/boy_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/layout/top_header.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/layout/list_day_header.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/layout/choose_picture.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/list.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/home.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/left_listview.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/mine.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/classs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/choose_banner.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/pop_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/volley/MyApp.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.volley; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | 6 | /** 7 | * Created by dllo on 16/9/20. 8 | */ 9 | public class MyApp extends Application{ 10 | // 写完application类之后 一定要注册 11 | private static Context mContext; 12 | 13 | 14 | @Override 15 | public void onCreate() { 16 | super.onCreate(); 17 | mContext = this; 18 | } 19 | public static Context getContext() { 20 | return mContext; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_choose.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_list_jump.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/mine/IdealActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.mine; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | import com.example.dllo.gift_present_0919.R; 7 | import com.example.dllo.gift_present_0919.baseaty.BaseAty; 8 | 9 | public class IdealActivity extends BaseAty { 10 | 11 | 12 | @Override 13 | protected int setLayout() { 14 | return R.layout.activity_idea; 15 | } 16 | 17 | @Override 18 | protected void initView() { 19 | 20 | } 21 | 22 | @Override 23 | protected void initData() { 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/mine/ScoreActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.mine; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | import com.example.dllo.gift_present_0919.R; 7 | import com.example.dllo.gift_present_0919.baseaty.BaseAty; 8 | 9 | public class ScoreActivity extends BaseAty{ 10 | 11 | 12 | @Override 13 | protected int setLayout() { 14 | return R.layout.activity_score; 15 | } 16 | 17 | @Override 18 | protected void initView() { 19 | 20 | } 21 | 22 | @Override 23 | protected void initData() { 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/res/layout/boy_send.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/list/List_Share_Activity.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.list; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | import com.example.dllo.gift_present_0919.R; 7 | import com.example.dllo.gift_present_0919.baseaty.BaseAty; 8 | 9 | public class List_Share_Activity extends BaseAty { 10 | 11 | 12 | @Override 13 | protected int setLayout() { 14 | return R.layout.list_share; 15 | } 16 | 17 | @Override 18 | protected void initView() { 19 | 20 | } 21 | 22 | @Override 23 | protected void initData() { 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/mine/InviteActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.mine; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | import com.example.dllo.gift_present_0919.R; 7 | import com.example.dllo.gift_present_0919.baseaty.BaseAty; 8 | 9 | public class InviteActivity extends BaseAty { 10 | 11 | 12 | @Override 13 | protected int setLayout() { 14 | 15 | return R.layout.activity_invite; 16 | } 17 | 18 | @Override 19 | protected void initView() { 20 | 21 | } 22 | 23 | @Override 24 | protected void initData() { 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/mine/RelativeGiftActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.mine; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | import com.example.dllo.gift_present_0919.R; 7 | import com.example.dllo.gift_present_0919.baseaty.BaseAty; 8 | 9 | public class RelativeGiftActivity extends BaseAty { 10 | 11 | 12 | @Override 13 | protected int setLayout() { 14 | return R.layout.activity_relative_gift; 15 | } 16 | 17 | @Override 18 | protected void initView() { 19 | 20 | } 21 | 22 | @Override 23 | protected void initData() { 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/res/layout/simple_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 11 | 12 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /librar/src/main/res/drawable/indicator_bg_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 17 | 18 | -------------------------------------------------------------------------------- /librar/src/main/res/drawable/indicator_bg_top.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/day_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 9 | 10 | 11 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /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/dllo/Desktop/Three_Side_Package/Android-SDK-mac/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 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/home/search/SearchBean.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.home.search; 2 | 3 | /** 4 | * Created by dllo on 16/10/13. 5 | */ 6 | public class SearchBean { 7 | int Pic; 8 | String name; 9 | int image; 10 | 11 | public int getPic() { 12 | return Pic; 13 | } 14 | 15 | public void setPic(int pic) { 16 | Pic = pic; 17 | } 18 | 19 | public String getName() { 20 | return name; 21 | } 22 | 23 | public void setName(String name) { 24 | this.name = name; 25 | } 26 | 27 | public int getImage() { 28 | return image; 29 | } 30 | 31 | public void setImage(int image) { 32 | this.image = image; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/src/main/res/layout/choose_gallery.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 15 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/layout/top_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 9 | 10 | 11 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/layout/boy_listview.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 10 | 11 | 12 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | ### Android template 10 | # Built application files 11 | *.apk 12 | *.ap_ 13 | 14 | # Files for the ART/Dalvik VM 15 | *.dex 16 | 17 | # Java class files 18 | *.class 19 | 20 | # Generated files 21 | bin/ 22 | gen/ 23 | out/ 24 | 25 | # Gradle files 26 | .gradle/ 27 | build/ 28 | 29 | # Local configuration file (sdk path, etc) 30 | local.properties 31 | 32 | # Proguard folder generated by Eclipse 33 | proguard/ 34 | 35 | # Log Files 36 | *.log 37 | 38 | # Android Studio Navigation editor temp files 39 | .navigation/ 40 | 41 | # Android Studio captures folder 42 | captures/ 43 | 44 | # Intellij 45 | *.iml 46 | .idea/workspace.xml 47 | 48 | # Keystore files 49 | *.jks 50 | 51 | -------------------------------------------------------------------------------- /librar/src/main/res/values/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Pull to refresh… 5 | Release to refresh… 6 | Loading… 7 | 8 | 9 | @string/pull_to_refresh_pull_label 10 | @string/pull_to_refresh_release_label 11 | @string/pull_to_refresh_refreshing_label 12 | 13 | -------------------------------------------------------------------------------- /librar/src/main/res/values-fi/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Päivitä vetämällä alas… 5 | Päivitä vapauttamalla… 6 | Päivitetään… 7 | 8 | 9 | Päivitä vetämällä ylös… 10 | @string/pull_to_refresh_release_label 11 | @string/pull_to_refresh_refreshing_label 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/mine/IdentityNextActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.mine; 2 | 3 | import android.content.Intent; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.os.Bundle; 6 | import android.view.View; 7 | import android.widget.Button; 8 | 9 | import com.example.dllo.gift_present_0919.R; 10 | import com.example.dllo.gift_present_0919.baseaty.BaseAty; 11 | 12 | public class IdentityNextActivity extends BaseAty { 13 | 14 | 15 | private Button identity_next; 16 | 17 | @Override 18 | protected int setLayout() { 19 | return R.layout.activity_identity_next; 20 | } 21 | 22 | @Override 23 | protected void initView() { 24 | 25 | 26 | } 27 | 28 | @Override 29 | protected void initData() { 30 | 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/res/layout/list_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 11 | 12 | 13 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/layout/class_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 12 | 13 | 14 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_ad.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/layout/choose_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/layout/mine_title.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 12 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/database/MySqlHelper.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.database; 2 | 3 | import android.content.Context; 4 | import android.database.sqlite.SQLiteDatabase; 5 | import android.database.sqlite.SQLiteOpenHelper; 6 | 7 | /** 8 | * Created by dllo on 16/10/13. 9 | */ 10 | public class MySqlHelper extends SQLiteOpenHelper{ 11 | public MySqlHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) { 12 | super(context, name, factory, version); 13 | } 14 | 15 | @Override 16 | public void onCreate(SQLiteDatabase sqLiteDatabase) { 17 | sqLiteDatabase.execSQL("create table word(id integer primary key autoincrement,words text)"); 18 | 19 | } 20 | 21 | @Override 22 | public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) { 23 | 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/baseaty/BaseAty.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.baseaty; 2 | 3 | import android.os.Bundle; 4 | import android.support.annotation.Nullable; 5 | import android.support.v7.app.AppCompatActivity; 6 | import android.view.View; 7 | 8 | /** 9 | * Created by dllo on 16/9/19. 10 | */ 11 | public abstract class BaseAty extends AppCompatActivity { 12 | @Override 13 | protected void onCreate(@Nullable Bundle savedInstanceState) { 14 | super.onCreate(savedInstanceState); 15 | setContentView(setLayout()); 16 | initView(); 17 | initData(); 18 | } 19 | 20 | protected abstract int setLayout(); 21 | 22 | protected abstract void initView(); 23 | 24 | protected abstract void initData(); 25 | 26 | protected T bindView(int id){ 27 | return (T) findViewById(id); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /app/src/main/res/layout/title_relative_gift.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 13 | 14 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /librar/src/main/res/anim/slide_in_from_top.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 22 | -------------------------------------------------------------------------------- /librar/src/main/res/anim/slide_out_to_top.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 22 | -------------------------------------------------------------------------------- /librar/src/main/res/anim/slide_in_from_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 22 | -------------------------------------------------------------------------------- /librar/src/main/res/anim/slide_out_to_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/layout/title_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 17 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/class_stra_head.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 16 | 21 | 22 | 23 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 24 5 | buildToolsVersion "24.0.1" 6 | 7 | defaultConfig { 8 | applicationId "com.example.dllo.gift_present_0919" 9 | minSdkVersion 15 10 | targetSdkVersion 24 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(include: ['*.jar'], dir: 'libs') 24 | testCompile 'junit:junit:4.12' 25 | compile 'com.android.support:appcompat-v7:24.0.0-beta1' 26 | compile 'com.android.support:support-v4:23.4.0' 27 | compile 'com.android.support:design:23.4.0' 28 | compile 'eu.the4thfloor.volley:com.android.volley:2015.05.28' 29 | compile 'com.google.code.gson:gson:2.7' 30 | compile 'com.youth.banner:banner:1.3.2' 31 | compile 'com.android.support:recyclerview-v7:23.4.0' 32 | compile 'com.squareup.picasso:picasso:2.3.2' 33 | compile project(':librar') 34 | } 35 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/mine/IdentityActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.mine; 2 | 3 | import android.content.Intent; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.os.Bundle; 6 | import android.view.View; 7 | import android.widget.Button; 8 | 9 | import com.example.dllo.gift_present_0919.R; 10 | import com.example.dllo.gift_present_0919.baseaty.BaseAty; 11 | 12 | public class IdentityActivity extends BaseAty { 13 | 14 | 15 | private Button identity_next; 16 | 17 | @Override 18 | protected int setLayout() { 19 | return R.layout.activity_identity; 20 | } 21 | 22 | @Override 23 | protected void initView() { 24 | identity_next = bindView(R.id.identity_next); 25 | 26 | } 27 | 28 | @Override 29 | protected void initData() { 30 | identity_next.setOnClickListener(new View.OnClickListener() { 31 | @Override 32 | public void onClick(View view) { 33 | Intent intent = new Intent(IdentityActivity.this,IdentityNextActivity.class); 34 | startActivity(intent); 35 | } 36 | }); 37 | 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /import-summary.txt: -------------------------------------------------------------------------------- 1 | ECLIPSE ANDROID PROJECT IMPORT SUMMARY 2 | ====================================== 3 | 4 | Ignored Files: 5 | -------------- 6 | The following files were *not* copied into the new Gradle project; you 7 | should evaluate whether these are still needed in your project and if 8 | so manually move them: 9 | 10 | * LICENSE 11 | * pom.xml 12 | 13 | Moved Files: 14 | ------------ 15 | Android Gradle projects use a different directory structure than ADT 16 | Eclipse projects. Here's how the projects were restructured: 17 | 18 | * AndroidManifest.xml => librar/src/main/AndroidManifest.xml 19 | * res/ => librar/src/main/res/ 20 | * src/ => librar/src/main/java/ 21 | 22 | Next Steps: 23 | ----------- 24 | You can now build the project. The Gradle project needs network 25 | connectivity to download dependencies. 26 | 27 | Bugs: 28 | ----- 29 | If for some reason your project does not build, and you determine that 30 | it is due to a bug or limitation of the Eclipse to Gradle importer, 31 | please file a bug at http://b.android.com with category 32 | Component-Tools. 33 | 34 | (This import summary is for your information only, and can be deleted 35 | after import once you are satisfied with the results.) 36 | -------------------------------------------------------------------------------- /app/src/main/res/layout/search_head.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/classify/ClassAdapter.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.classify; 2 | 3 | import android.support.v4.app.Fragment; 4 | import android.support.v4.app.FragmentManager; 5 | import android.support.v4.app.FragmentPagerAdapter; 6 | 7 | import java.util.ArrayList; 8 | 9 | /** 10 | * Created by dllo on 16/9/21. 11 | */ 12 | public class ClassAdapter extends FragmentPagerAdapter { 13 | ArrayList fragments; 14 | ArrayList classtitle = new ArrayList<>(); 15 | public ClassAdapter(FragmentManager fm) { 16 | super(fm); 17 | } 18 | 19 | public ClassAdapter(FragmentManager fm, ArrayList fragments) { 20 | super(fm); 21 | this.fragments = fragments; 22 | classtitle.add("攻略"); 23 | classtitle.add("单品"); 24 | } 25 | 26 | @Override 27 | public Fragment getItem(int position) { 28 | return fragments.get(position); 29 | } 30 | 31 | @Override 32 | public int getCount() { 33 | return fragments == null ? 0 : fragments.size(); 34 | } 35 | 36 | @Override 37 | public CharSequence getPageTitle(int position) { 38 | return classtitle.get(position); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/home/Title_Home_Login_Activity.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.home; 2 | 3 | import android.content.Intent; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.os.Bundle; 6 | import android.view.View; 7 | import android.widget.Button; 8 | 9 | import com.example.dllo.gift_present_0919.R; 10 | import com.example.dllo.gift_present_0919.baseaty.BaseAty; 11 | import com.example.dllo.gift_present_0919.main.MainActivity; 12 | 13 | public class Title_Home_Login_Activity extends BaseAty { 14 | 15 | 16 | private Button home_login; 17 | 18 | @Override 19 | protected int setLayout() { 20 | return R.layout.title_home_login; 21 | } 22 | 23 | @Override 24 | protected void initView() { 25 | home_login = bindView(R.id.home_login); 26 | home_login.setOnClickListener(new View.OnClickListener() { 27 | @Override 28 | public void onClick(View view) { 29 | Intent intent = new Intent(Title_Home_Login_Activity.this, MainActivity.class); 30 | startActivity(intent); 31 | } 32 | }); 33 | 34 | 35 | } 36 | 37 | @Override 38 | protected void initData() { 39 | 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/volley/VolleySingleton.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.volley; 2 | 3 | import com.android.volley.Request; 4 | import com.android.volley.RequestQueue; 5 | import com.android.volley.toolbox.Volley; 6 | 7 | /** 8 | * Created by dllo on 16/9/20. 9 | */ 10 | //懒汉 11 | public class VolleySingleton { 12 | private static VolleySingleton mVolleySingleton; 13 | // 把 请求队列 放到单利类里边,这样整个项目只有一个requestQueeue 14 | private RequestQueue mRequestQueue; 15 | 16 | 17 | private VolleySingleton(){ 18 | mRequestQueue = Volley.newRequestQueue(MyApp.getContext()); 19 | 20 | 21 | } 22 | 23 | 24 | public static VolleySingleton getInstance(){ 25 | 26 | if (mVolleySingleton == null){ 27 | 28 | synchronized (VolleySingleton.class){ 29 | if (mVolleySingleton == null){ 30 | mVolleySingleton = new VolleySingleton(); 31 | } 32 | } 33 | } 34 | return new VolleySingleton(); 35 | } 36 | public static VolleySingleton getmVolleySingleton() { 37 | return mVolleySingleton; 38 | } 39 | public void addRequest(Request request){ 40 | mRequestQueue.add(request); 41 | 42 | 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /librar/src/main/res/layout/pull_to_refresh_header_horizontal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 18 | 19 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/home/HomeAdapter.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.home; 2 | 3 | import android.support.v4.app.Fragment; 4 | import android.support.v4.app.FragmentManager; 5 | import android.support.v4.app.FragmentPagerAdapter; 6 | 7 | import java.util.ArrayList; 8 | 9 | /** 10 | * Created by dllo on 16/9/20. 11 | */ 12 | public class HomeAdapter extends FragmentPagerAdapter { 13 | 14 | 15 | public ArrayList getFragments() { 16 | return fragments; 17 | } 18 | 19 | public void setFragments(ArrayList fragments) { 20 | this.fragments = fragments; 21 | } 22 | 23 | 24 | ArrayList fragments; 25 | 26 | public void setTitle(ArrayList title) { 27 | this.title = title; 28 | } 29 | 30 | ArrayList title; 31 | 32 | 33 | public HomeAdapter(FragmentManager fm) { 34 | super(fm); 35 | } 36 | 37 | @Override 38 | public Fragment getItem(int position) { 39 | return fragments.get(position); 40 | } 41 | 42 | @Override 43 | public int getCount() { 44 | return fragments.size(); 45 | } 46 | 47 | @Override 48 | public CharSequence getPageTitle(int position) { 49 | return title.get(position); 50 | } 51 | 52 | 53 | } 54 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/list/LstAdapter.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.list; 2 | 3 | import android.support.v4.app.Fragment; 4 | import android.support.v4.app.FragmentManager; 5 | import android.support.v4.app.FragmentPagerAdapter; 6 | 7 | import java.util.ArrayList; 8 | 9 | /** 10 | * Created by dllo on 16/9/20. 11 | */ 12 | public class LstAdapter extends FragmentPagerAdapter{ 13 | 14 | ArrayList fragments ; 15 | 16 | public void setFragments(ArrayList fragments) { 17 | this.fragments = fragments; 18 | } 19 | 20 | ArrayList listtitle; 21 | 22 | public void setListtitle(ArrayList listtitle) { 23 | this.listtitle = listtitle; 24 | } 25 | public ArrayList getFragments() { 26 | return fragments; 27 | } 28 | 29 | public LstAdapter(FragmentManager fm) { 30 | super(fm); 31 | } 32 | 33 | 34 | @Override 35 | public Fragment getItem(int position) { 36 | return fragments.get(position); 37 | } 38 | 39 | @Override 40 | public int getCount() { 41 | return fragments == null ? 0 : fragments.size(); 42 | } 43 | 44 | @Override 45 | public CharSequence getPageTitle(int position) { 46 | return listtitle.get(position); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /app/src/main/res/layout/title_activity_idea.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 13 | 14 | 24 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /app/src/main/res/layout/title_home.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 15 | 27 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/baseaty/StringUrl.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.baseaty; 2 | 3 | /** 4 | * Created by dllo on 16/9/23. 5 | */ 6 | public class StringUrl { 7 | public static String hometitle = "http://api.liwushuo.com/v2/channels/preset?gender=2&generation=1"; 8 | public static String lunbo ="http://api.liwushuo.com/v2/banners"; 9 | public static String gallery ="http://api.liwushuo.com/v2/secondary_banners?gender=2&generation=1"; 10 | public static String listview ="http://api.liwushuo.com/v2/channels/104/items_v2?limit=20&ad=2&gender=2&offset=0&generation=2%20HTTP/1.1"; 11 | public static String hottitle ="http://api.liwushuo.com/v2/ranks_v2/ranks"; 12 | public static String dayhead = "http://api.liwushuo.com/v2/ranks_v2/ranks/1?limit=20&offset=0HTTP/1.1"; 13 | public static String strarecyler ="http://api.liwushuo.com/v2/columns?limit=20&offset=0"; 14 | public static String stralist = "http://api.liwushuo.com/v2/channel_groups/all"; 15 | public static String single = "http://api.liwushuo.com/v2/item_categories/tree"; 16 | public static String list_top ="http://api.liwushuo.com/v2/ranks_v2/ranks/2?limit=20&offset=0HTTP/1.1"; 17 | public static String list_dependence ="http://api.liwushuo.com/v2/ranks_v2/ranks/3?limit=20&offset=0HTTP/1.1"; 18 | public static String list_star ="http://api.liwushuo.com/v2/ranks_v2/ranks/4?limit=20&offset=0HTTP/1.1"; 19 | } 20 | -------------------------------------------------------------------------------- /app/src/main/res/layout/pop.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 12 | 17 | 24 | 25 | 26 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/classify/ClassFragment.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.classify; 2 | 3 | import android.support.design.widget.TabLayout; 4 | import android.support.v4.app.Fragment; 5 | import android.support.v4.view.ViewPager; 6 | 7 | import com.example.dllo.gift_present_0919.basefragment.BaseFragment; 8 | import com.example.dllo.gift_present_0919.R; 9 | import com.example.dllo.gift_present_0919.classify.single.SimpleFragment; 10 | import com.example.dllo.gift_present_0919.classify.srtategy.StrategyFragment; 11 | 12 | import java.util.ArrayList; 13 | 14 | /** 15 | * Created by dllo on 16/9/19. 16 | */ 17 | public class ClassFragment extends BaseFragment { 18 | 19 | 20 | private ViewPager class_vp; 21 | private TabLayout class_tb; 22 | 23 | @Override 24 | protected int setLayout() { 25 | return R.layout.class_fragment; 26 | } 27 | 28 | @Override 29 | protected void initView() { 30 | class_vp = bindView(R.id.class_viewpager); 31 | class_tb = bindView(R.id.class_tablayout); 32 | 33 | } 34 | 35 | @Override 36 | protected void initData() { 37 | ArrayList fragments = new ArrayList<>(); 38 | fragments.add(new StrategyFragment()); 39 | fragments.add(new SimpleFragment()); 40 | 41 | ClassAdapter adapter = new ClassAdapter(getChildFragmentManager(),fragments); 42 | class_vp.setAdapter(adapter); 43 | class_tb.setupWithViewPager(class_vp); 44 | 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/home/choose/ChooseActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.home.choose; 2 | 3 | import android.content.Intent; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.os.Bundle; 6 | import android.webkit.WebSettings; 7 | import android.webkit.WebView; 8 | import android.webkit.WebViewClient; 9 | import android.widget.ListView; 10 | 11 | import com.android.volley.Response; 12 | import com.android.volley.VolleyError; 13 | import com.android.volley.toolbox.StringRequest; 14 | import com.example.dllo.gift_present_0919.R; 15 | import com.example.dllo.gift_present_0919.baseaty.BaseAty; 16 | import com.example.dllo.gift_present_0919.baseaty.StringUrl; 17 | import com.example.dllo.gift_present_0919.volley.VolleySingleton; 18 | import com.google.gson.Gson; 19 | 20 | public class ChooseActivity extends BaseAty { 21 | 22 | 23 | private WebView webView; 24 | 25 | @Override 26 | protected int setLayout() { 27 | return R.layout.activity_choose; 28 | } 29 | 30 | @Override 31 | protected void initView() { 32 | webView = bindView(R.id.choose_webview); 33 | 34 | 35 | } 36 | 37 | @Override 38 | protected void initData() { 39 | Intent intent = getIntent(); 40 | String url = intent.getStringExtra("url"); 41 | webView.loadUrl(url); 42 | 43 | WebSettings webSettings = webView.getSettings(); 44 | webSettings.setJavaScriptEnabled(true); 45 | webView.setWebViewClient(new WebViewClient()); 46 | 47 | 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/basefragment/BaseFragment.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.basefragment; 2 | 3 | import android.content.Context; 4 | import android.os.Bundle; 5 | import android.support.annotation.Nullable; 6 | import android.support.v4.app.Fragment; 7 | import android.view.LayoutInflater; 8 | import android.view.View; 9 | import android.view.ViewGroup; 10 | 11 | /** 12 | * Created by dllo on 16/9/19. 13 | */ 14 | public abstract class BaseFragment extends Fragment { 15 | protected Context mContext; 16 | @Override 17 | public void onAttach(Context context) { 18 | super.onAttach(context); 19 | mContext = context; 20 | 21 | } 22 | 23 | @Nullable 24 | @Override 25 | public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { 26 | return inflater.inflate(setLayout(),container,false); 27 | } 28 | protected abstract int setLayout(); 29 | 30 | @Override 31 | public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { 32 | super.onViewCreated(view, savedInstanceState); 33 | initView(); 34 | initData(); 35 | 36 | } 37 | protected abstract void initView(); 38 | 39 | protected abstract void initData(); 40 | protected T bindView(int id){ 41 | return (T) getView().findViewById(id); 42 | } 43 | protected T bindView(int id,View view){ 44 | return (T) view.findViewById(id); 45 | 46 | } 47 | } 48 | 49 | 50 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_idea.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 16 | 21 | 26 | 32 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /app/src/main/res/layout/stra_recyler_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | 16 | 17 | 24 | 25 | 33 | 34 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /librar/src/main/java/com/handmark/pulltorefresh/library/internal/EmptyViewMethodAccessor.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2011, 2012 Chris Banes. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | *******************************************************************************/ 16 | package com.handmark.pulltorefresh.library.internal; 17 | 18 | import android.view.View; 19 | 20 | /** 21 | * Interface that allows PullToRefreshBase to hijack the call to 22 | * AdapterView.setEmptyView() 23 | * 24 | * @author chris 25 | */ 26 | public interface EmptyViewMethodAccessor { 27 | 28 | /** 29 | * Calls upto AdapterView.setEmptyView() 30 | * 31 | * @param emptyView - to set as Empty View 32 | */ 33 | public void setEmptyViewInternal(View emptyView); 34 | 35 | /** 36 | * Should call PullToRefreshBase.setEmptyView() which will then 37 | * automatically call through to setEmptyViewInternal() 38 | * 39 | * @param emptyView - to set as Empty View 40 | */ 41 | public void setEmptyView(View emptyView); 42 | 43 | } 44 | -------------------------------------------------------------------------------- /app/src/main/res/layout/home_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 12 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/volley/GsonRequest.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.volley; 2 | 3 | import com.android.volley.NetworkResponse; 4 | import com.android.volley.Request; 5 | import com.android.volley.Response; 6 | import com.android.volley.toolbox.HttpHeaderParser; 7 | import com.google.gson.Gson; 8 | 9 | import java.io.UnsupportedEncodingException; 10 | 11 | /** 12 | * Created by dllo on 16/9/20. 13 | */ 14 | //可以直接 从网络请求解析成实体类 然后返回 15 | public class GsonRequest extends Request { 16 | private final Response.Listener mListener; 17 | private Class mTClass; 18 | 19 | 20 | public GsonRequest(int method, String url, Class clazz, Response.Listener mListener, Response.ErrorListener listener) { 21 | super(method, url, listener); 22 | this.mListener = mListener; 23 | this.mTClass = clazz; 24 | } 25 | public GsonRequest(String url, 26 | Class clazz,//为了Gson 解析时使用 27 | Response.Listener mListener, Response.ErrorListener listener){ 28 | this(Method.GET,url,clazz,mListener,listener); 29 | } 30 | 31 | @Override 32 | protected Response parseNetworkResponse(NetworkResponse response) { 33 | String parsed; 34 | try { 35 | parsed = new String(response.data, HttpHeaderParser.parseCharset(response.headers)); 36 | } catch (UnsupportedEncodingException e) { 37 | parsed = new String(response.data); 38 | } 39 | Gson gson = new Gson(); 40 | return Response.success( gson.fromJson(parsed,mTClass), HttpHeaderParser.parseCacheHeaders(response)); 41 | } 42 | 43 | 44 | @Override 45 | protected void deliverResponse(T response) { 46 | mListener.onResponse(response); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /librar/src/main/java/com/handmark/pulltorefresh/library/ILoadingLayout.java: -------------------------------------------------------------------------------- 1 | package com.handmark.pulltorefresh.library; 2 | 3 | import android.graphics.Typeface; 4 | import android.graphics.drawable.Drawable; 5 | 6 | public interface ILoadingLayout { 7 | 8 | /** 9 | * Set the Last Updated Text. This displayed under the main label when 10 | * Pulling 11 | * 12 | * @param label - Label to set 13 | */ 14 | public void setLastUpdatedLabel(CharSequence label); 15 | 16 | /** 17 | * Set the drawable used in the loading layout. This is the same as calling 18 | * setLoadingDrawable(drawable, Mode.BOTH) 19 | * 20 | * @param drawable - Drawable to display 21 | */ 22 | public void setLoadingDrawable(Drawable drawable); 23 | 24 | /** 25 | * Set Text to show when the Widget is being Pulled 26 | * setPullLabel(releaseLabel, Mode.BOTH) 27 | * 28 | * @param pullLabel - CharSequence to display 29 | */ 30 | public void setPullLabel(CharSequence pullLabel); 31 | 32 | /** 33 | * Set Text to show when the Widget is refreshing 34 | * setRefreshingLabel(releaseLabel, Mode.BOTH) 35 | * 36 | * @param refreshingLabel - CharSequence to display 37 | */ 38 | public void setRefreshingLabel(CharSequence refreshingLabel); 39 | 40 | /** 41 | * Set Text to show when the Widget is being pulled, and will refresh when 42 | * released. This is the same as calling 43 | * setReleaseLabel(releaseLabel, Mode.BOTH) 44 | * 45 | * @param releaseLabel - CharSequence to display 46 | */ 47 | public void setReleaseLabel(CharSequence releaseLabel); 48 | 49 | /** 50 | * Set's the Sets the typeface and style in which the text should be 51 | * displayed. Please see 52 | * {@link android.widget.TextView#setTypeface(Typeface) 53 | * TextView#setTypeface(Typeface)}. 54 | */ 55 | public void setTextTypeface(Typeface tf); 56 | 57 | } 58 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/list/List_Jump_Activity.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.list; 2 | 3 | import android.content.Intent; 4 | import android.webkit.WebSettings; 5 | import android.webkit.WebView; 6 | import android.webkit.WebViewClient; 7 | 8 | import com.example.dllo.gift_present_0919.R; 9 | import com.example.dllo.gift_present_0919.baseaty.BaseAty; 10 | 11 | public class List_Jump_Activity extends BaseAty{ 12 | 13 | 14 | private WebView webView; 15 | 16 | @Override 17 | protected int setLayout() { 18 | return R.layout.activity_list_jump; 19 | } 20 | 21 | @Override 22 | protected void initView() { 23 | webView = bindView(R.id.list_webview); 24 | 25 | 26 | } 27 | 28 | @Override 29 | protected void initData() { 30 | Intent intent = getIntent(); 31 | String url = intent.getStringExtra("url"); 32 | 33 | 34 | WebSettings webSettings = webView.getSettings(); 35 | 36 | 37 | webView.getSettings().setJavaScriptEnabled(true); 38 | 39 | webView.getSettings().setUseWideViewPort(true); 40 | webView.getSettings().setLoadWithOverviewMode(true); 41 | webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true); 42 | webView.getSettings().setAppCacheEnabled(true); 43 | webView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK); 44 | webView.getSettings().setSupportZoom(true); 45 | webView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL); 46 | webView.getSettings().setDisplayZoomControls(true); 47 | 48 | webView.setWebViewClient(new WebViewClient() { 49 | @Override 50 | public boolean shouldOverrideUrlLoading(WebView view, String url) { 51 | return false; 52 | } 53 | }); 54 | webView.loadUrl(url); 55 | 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/classify/single/LeftAdapter.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.classify.single; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.BaseAdapter; 8 | import android.widget.TextView; 9 | 10 | import com.example.dllo.gift_present_0919.R; 11 | 12 | /** 13 | * Created by dllo on 16/9/29. 14 | */ 15 | public class LeftAdapter extends BaseAdapter { 16 | Context context; 17 | private SingleBean singleBean; 18 | 19 | public void setSingleBean(SingleBean singleBean) { 20 | this.singleBean = singleBean; 21 | } 22 | 23 | public LeftAdapter(Context context) { 24 | this.context = context; 25 | } 26 | 27 | @Override 28 | public int getCount() { 29 | return singleBean.getData().getCategories().size(); 30 | } 31 | 32 | @Override 33 | public Object getItem(int i) { 34 | return null; 35 | } 36 | 37 | @Override 38 | public long getItemId(int i) { 39 | return 0; 40 | } 41 | 42 | @Override 43 | public View getView(int i, View view, ViewGroup viewGroup) { 44 | ViewHolder viewHolder = null; 45 | if (view == null){ 46 | view = LayoutInflater.from(context).inflate(R.layout.left_listview,null); 47 | viewHolder = new ViewHolder(view); 48 | view.setTag(viewHolder); 49 | }else{ 50 | viewHolder = (ViewHolder) view.getTag(); 51 | } 52 | viewHolder.left_tv.setText(singleBean.getData().getCategories().get(i).getName()); 53 | return view; 54 | } 55 | 56 | private class ViewHolder { 57 | 58 | private final TextView left_tv; 59 | 60 | 61 | public ViewHolder(View view) { 62 | left_tv = (TextView) view.findViewById(R.id.left_tv); 63 | 64 | 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_relative_gift.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | 19 | 25 | 26 | 27 | 31 | 38 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_search.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 11 | 23 | 33 | 34 | 41 | 42 | 43 | 44 | 45 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/home/choose/GalleryAdapter.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.home.choose; 2 | 3 | import android.content.Context; 4 | import android.support.v7.widget.RecyclerView; 5 | import android.view.LayoutInflater; 6 | import android.view.View; 7 | import android.view.ViewGroup; 8 | import android.widget.ImageView; 9 | import android.widget.TextView; 10 | 11 | import com.example.dllo.gift_present_0919.R; 12 | import com.squareup.picasso.Picasso; 13 | 14 | import java.util.ArrayList; 15 | 16 | /** 17 | * Created by dllo on 16/9/23. 18 | */ 19 | public class GalleryAdapter extends RecyclerView.Adapter { 20 | 21 | Context context; 22 | private GalleryBean galleryBean; 23 | 24 | public GalleryAdapter(Context context) { 25 | this.context = context; 26 | } 27 | 28 | 29 | public void setGalleryBean(GalleryBean galleryBean) { 30 | this.galleryBean = galleryBean; 31 | } 32 | 33 | @Override 34 | public GalleryAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 35 | View view = LayoutInflater.from(context).inflate(R.layout.choose_gallery, parent, false); 36 | MyViewHolder viewHolder = new MyViewHolder(view); 37 | 38 | return viewHolder; 39 | } 40 | 41 | @Override 42 | public void onBindViewHolder(GalleryAdapter.MyViewHolder holder, int position) { 43 | Picasso.with(context).load(galleryBean.getData() 44 | .getSecondary_banners().get(position).getImage_url()).into(holder.iv); 45 | 46 | } 47 | @Override 48 | public int getItemCount() { 49 | return galleryBean.getData().getSecondary_banners().size(); 50 | } 51 | 52 | public class MyViewHolder extends RecyclerView.ViewHolder { 53 | 54 | private final ImageView iv; 55 | 56 | public MyViewHolder(View itemView) { 57 | super(itemView); 58 | iv = (ImageView) itemView.findViewById(R.id.gallery_image); 59 | 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/home/PopAdapter.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.home; 2 | 3 | import android.content.Context; 4 | import android.support.v7.widget.RecyclerView; 5 | import android.view.LayoutInflater; 6 | import android.view.View; 7 | import android.view.ViewGroup; 8 | import android.widget.BaseAdapter; 9 | import android.widget.TextView; 10 | 11 | import com.example.dllo.gift_present_0919.R; 12 | 13 | import java.util.ArrayList; 14 | 15 | /** 16 | * Created by dllo on 16/10/12. 17 | */ 18 | public class PopAdapter extends BaseAdapter{ 19 | Context context; 20 | ArrayList myHomeBeanArrayList; 21 | 22 | public void setMyHomeBeanArrayList(ArrayList myHomeBeanArrayList) { 23 | this.myHomeBeanArrayList = myHomeBeanArrayList; 24 | } 25 | 26 | public PopAdapter(Context context) { 27 | this.context = context; 28 | } 29 | 30 | @Override 31 | public int getCount() { 32 | return myHomeBeanArrayList.get(0).getData().getChannels().size(); 33 | } 34 | 35 | @Override 36 | public Object getItem(int i) { 37 | return null; 38 | } 39 | 40 | @Override 41 | public long getItemId(int i) { 42 | return 0; 43 | } 44 | 45 | @Override 46 | public View getView(int i, View view, ViewGroup viewGroup) { 47 | ViewHolder viewHolder = null; 48 | if (view == null){ 49 | view = LayoutInflater.from(context).inflate(R.layout.pop_item,null); 50 | viewHolder = new ViewHolder(view); 51 | view.setTag(viewHolder); 52 | }else{ 53 | viewHolder = (ViewHolder) view.getTag(); 54 | } 55 | viewHolder.tv_pop.setText(myHomeBeanArrayList.get(0).getData().getChannels().get(i).getName()); 56 | return view; 57 | } 58 | 59 | private class ViewHolder { 60 | 61 | private final TextView tv_pop; 62 | 63 | public ViewHolder(View view) { 64 | 65 | tv_pop = (TextView) view.findViewById(R.id.tv_pop); 66 | 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/ad/AdActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.ad; 2 | 3 | import android.content.Intent; 4 | import android.graphics.Bitmap; 5 | import android.graphics.BitmapFactory; 6 | import android.graphics.drawable.BitmapDrawable; 7 | import android.os.AsyncTask; 8 | import android.view.View; 9 | import android.widget.RelativeLayout; 10 | import android.widget.TextView; 11 | 12 | import com.example.dllo.gift_present_0919.baseaty.BaseAty; 13 | import com.example.dllo.gift_present_0919.R; 14 | import com.example.dllo.gift_present_0919.main.MainActivity; 15 | 16 | import java.io.IOException; 17 | import java.io.InputStream; 18 | import java.net.HttpURLConnection; 19 | import java.net.MalformedURLException; 20 | import java.net.URL; 21 | import java.util.Timer; 22 | import java.util.TimerTask; 23 | 24 | public class AdActivity extends BaseAty{ 25 | private TextView textView; 26 | 27 | Timer timer = new Timer(); 28 | private int recLen = 2; 29 | 30 | 31 | @Override 32 | protected int setLayout() { 33 | return R.layout.activity_ad; 34 | } 35 | 36 | @Override 37 | protected void initView() { 38 | textView = bindView(R.id.tv_time); 39 | 40 | } 41 | 42 | @Override 43 | protected void initData() { 44 | 45 | timer.schedule(task,1000,1000); 46 | 47 | 48 | } 49 | TimerTask task = new TimerTask() { 50 | @Override 51 | public void run() { 52 | runOnUiThread(new Runnable() { 53 | @Override 54 | public void run() { 55 | recLen--; 56 | textView.setText("跳过"+""+recLen); 57 | if (recLen < 0){ 58 | timer.cancel(); 59 | textView.setVisibility(View.GONE); 60 | Intent intent1 = new Intent(AdActivity.this,MainActivity.class); 61 | startActivity(intent1); 62 | finish(); 63 | } 64 | } 65 | }); 66 | } 67 | }; 68 | 69 | 70 | } 71 | 72 | 73 | -------------------------------------------------------------------------------- /librar/src/main/java/com/handmark/pulltorefresh/library/LoadingLayoutProxy.java: -------------------------------------------------------------------------------- 1 | package com.handmark.pulltorefresh.library; 2 | 3 | import java.util.HashSet; 4 | 5 | import android.graphics.Typeface; 6 | import android.graphics.drawable.Drawable; 7 | 8 | import com.handmark.pulltorefresh.library.internal.LoadingLayout; 9 | 10 | public class LoadingLayoutProxy implements ILoadingLayout { 11 | 12 | private final HashSet mLoadingLayouts; 13 | 14 | LoadingLayoutProxy() { 15 | mLoadingLayouts = new HashSet(); 16 | } 17 | 18 | /** 19 | * This allows you to add extra LoadingLayout instances to this proxy. This 20 | * is only necessary if you keep your own instances, and want to have them 21 | * included in any 22 | * {@link PullToRefreshBase#createLoadingLayoutProxy(boolean, boolean) 23 | * createLoadingLayoutProxy(...)} calls. 24 | * 25 | * @param layout - LoadingLayout to have included. 26 | */ 27 | public void addLayout(LoadingLayout layout) { 28 | if (null != layout) { 29 | mLoadingLayouts.add(layout); 30 | } 31 | } 32 | 33 | @Override 34 | public void setLastUpdatedLabel(CharSequence label) { 35 | for (LoadingLayout layout : mLoadingLayouts) { 36 | layout.setLastUpdatedLabel(label); 37 | } 38 | } 39 | 40 | @Override 41 | public void setLoadingDrawable(Drawable drawable) { 42 | for (LoadingLayout layout : mLoadingLayouts) { 43 | layout.setLoadingDrawable(drawable); 44 | } 45 | } 46 | 47 | @Override 48 | public void setRefreshingLabel(CharSequence refreshingLabel) { 49 | for (LoadingLayout layout : mLoadingLayouts) { 50 | layout.setRefreshingLabel(refreshingLabel); 51 | } 52 | } 53 | 54 | @Override 55 | public void setPullLabel(CharSequence label) { 56 | for (LoadingLayout layout : mLoadingLayouts) { 57 | layout.setPullLabel(label); 58 | } 59 | } 60 | 61 | @Override 62 | public void setReleaseLabel(CharSequence label) { 63 | for (LoadingLayout layout : mLoadingLayouts) { 64 | layout.setReleaseLabel(label); 65 | } 66 | } 67 | 68 | public void setTextTypeface(Typeface tf) { 69 | for (LoadingLayout layout : mLoadingLayouts) { 70 | layout.setTextTypeface(tf); 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/home/search/SearchAdapter.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.home.search; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.BaseAdapter; 8 | import android.widget.ImageView; 9 | import android.widget.TextView; 10 | 11 | import com.example.dllo.gift_present_0919.R; 12 | 13 | import java.util.ArrayList; 14 | 15 | /** 16 | * Created by dllo on 16/10/13. 17 | */ 18 | public class SearchAdapter extends BaseAdapter{ 19 | Context context; 20 | 21 | public SearchAdapter(ArrayList arrayList) { 22 | this.arrayList = arrayList; 23 | } 24 | 25 | ArrayList arrayList; 26 | 27 | 28 | 29 | public SearchAdapter(Context context) { 30 | this.context = context; 31 | } 32 | 33 | @Override 34 | public int getCount() { 35 | return arrayList == null ? 0 : arrayList.size(); 36 | } 37 | 38 | @Override 39 | public Object getItem(int i) { 40 | return null; 41 | } 42 | 43 | @Override 44 | public long getItemId(int i) { 45 | return 0; 46 | } 47 | 48 | @Override 49 | public View getView(int i, View view, ViewGroup viewGroup) { 50 | ViewHolder viewHolder = null; 51 | if (view == null){ 52 | view = LayoutInflater.from(context).inflate(R.layout.search_item,null); 53 | viewHolder = new ViewHolder(view); 54 | view.setTag(viewHolder); 55 | }else{ 56 | viewHolder = (ViewHolder) view.getTag(); 57 | } 58 | viewHolder.img_one.setImageResource(arrayList.get(i).getPic()); 59 | viewHolder.tv.setText(arrayList.get(i).getName()); 60 | viewHolder.img_two.setImageResource(arrayList.get(i).getImage()); 61 | 62 | 63 | return view; 64 | } 65 | 66 | private class ViewHolder { 67 | 68 | private final TextView tv; 69 | private final ImageView img_one; 70 | private final ImageView img_two; 71 | 72 | public ViewHolder(View view) { 73 | img_one = (ImageView) view.findViewById(R.id.search_image_one); 74 | tv = (TextView) view.findViewById(R.id.search_tv); 75 | img_two = (ImageView) view.findViewById(R.id.search_image_two); 76 | 77 | } 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /librar/src/main/java/com/handmark/pulltorefresh/library/internal/ViewCompat.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2011, 2012 Chris Banes. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | *******************************************************************************/ 16 | package com.handmark.pulltorefresh.library.internal; 17 | 18 | import android.annotation.TargetApi; 19 | import android.graphics.drawable.Drawable; 20 | import android.os.Build.VERSION; 21 | import android.os.Build.VERSION_CODES; 22 | import android.view.View; 23 | 24 | @SuppressWarnings("deprecation") 25 | public class ViewCompat { 26 | 27 | public static void postOnAnimation(View view, Runnable runnable) { 28 | if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN) { 29 | SDK16.postOnAnimation(view, runnable); 30 | } else { 31 | view.postDelayed(runnable, 16); 32 | } 33 | } 34 | 35 | public static void setBackground(View view, Drawable background) { 36 | if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN) { 37 | SDK16.setBackground(view, background); 38 | } else { 39 | view.setBackgroundDrawable(background); 40 | } 41 | } 42 | 43 | public static void setLayerType(View view, int layerType) { 44 | if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB) { 45 | SDK11.setLayerType(view, layerType); 46 | } 47 | } 48 | 49 | @TargetApi(11) 50 | static class SDK11 { 51 | 52 | public static void setLayerType(View view, int layerType) { 53 | view.setLayerType(layerType, null); 54 | } 55 | } 56 | 57 | @TargetApi(16) 58 | static class SDK16 { 59 | 60 | public static void postOnAnimation(View view, Runnable runnable) { 61 | view.postOnAnimation(runnable); 62 | } 63 | 64 | public static void setBackground(View view, Drawable background) { 65 | view.setBackground(background); 66 | } 67 | 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /app/src/main/res/layout/boy_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 9 | 15 | 21 | 27 | 28 | 33 | 34 | 35 | 40 | 45 | 50 | 51 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /app/src/main/res/layout/list_share.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 17 | 23 | 29 | 30 | 31 | 35 | 41 | 47 | 53 | 54 | 55 | 56 | 57 | 1` 58 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 15 | 16 | 17 | 21 | 31 | 40 | 41 | 42 | 52 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /app/src/main/res/layout/search_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 36 | 43 | 50 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /librar/src/main/res/layout/pull_to_refresh_header_vertical.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 17 | 18 | 23 | 24 | 32 | 33 | 34 | 40 | 41 | 48 | 49 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_invite.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 14 | 19 | 23 | 24 | 29 | 34 | 38 | 43 | 48 | 49 | 53 | 58 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/classify/srtategy/StraRecylerAdapter.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.classify.srtategy; 2 | 3 | import android.content.Context; 4 | import android.support.v7.widget.RecyclerView; 5 | import android.view.LayoutInflater; 6 | import android.view.View; 7 | import android.view.ViewGroup; 8 | import android.widget.ImageView; 9 | import android.widget.TextView; 10 | 11 | import com.example.dllo.gift_present_0919.R; 12 | import com.squareup.picasso.Picasso; 13 | 14 | /** 15 | * Created by dllo on 16/9/27. 16 | */ 17 | public class StraRecylerAdapter extends RecyclerView.Adapter { 18 | Context context; 19 | 20 | public void setStraRecylerBean(StraRecylerBean straRecylerBean) { 21 | this.straRecylerBean = straRecylerBean; 22 | } 23 | 24 | private StraRecylerBean straRecylerBean; 25 | public StraRecylerAdapter(Context context) { 26 | this.context = context; 27 | } 28 | 29 | @Override 30 | public StraRecylerAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 31 | View view = LayoutInflater.from(context).inflate(R.layout.stra_recyler_view,parent,false); 32 | MyViewHolder viewHolder = new MyViewHolder(view); 33 | 34 | return viewHolder; 35 | } 36 | 37 | @Override 38 | public void onBindViewHolder(StraRecylerAdapter.MyViewHolder holder, int position) { 39 | Picasso.with(context).load(straRecylerBean.getData().getColumns().get(position).getCover_image_url()).into(holder.stra_img); 40 | holder.tv_one.setText(straRecylerBean.getData().getColumns().get(position).getTitle()); 41 | holder.tv_two.setText(straRecylerBean.getData().getColumns().get(position).getAuthor()); 42 | holder.tv_three.setText(straRecylerBean.getData().getColumns().get(position).getSubtitle()); 43 | 44 | } 45 | 46 | @Override 47 | public int getItemCount() { 48 | return straRecylerBean.getData().getColumns().size(); 49 | } 50 | 51 | public class MyViewHolder extends RecyclerView.ViewHolder { 52 | 53 | private final ImageView stra_img; 54 | private final TextView tv_one; 55 | private final TextView tv_two; 56 | private final TextView tv_three; 57 | 58 | public MyViewHolder(View itemView) { 59 | super(itemView); 60 | stra_img = (ImageView) itemView.findViewById(R.id.stra_recyler_img); 61 | tv_one = (TextView) itemView.findViewById(R.id.stra_text1); 62 | tv_two = (TextView) itemView.findViewById(R.id.stra_text1); 63 | tv_three = (TextView) itemView.findViewById(R.id.stra_text3); 64 | 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_score.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 14 | 19 | 20 | 25 | 31 | 35 | 40 | 46 | 47 | 51 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /app/src/main/res/layout/choose_listview.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 10 | 16 | 22 | 28 | 29 | 34 | 35 | 36 | 41 | 46 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/mine/Mine_Set_Up_Activity.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.mine; 2 | 3 | import android.content.Intent; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.os.Bundle; 6 | import android.view.View; 7 | import android.widget.ImageView; 8 | 9 | import com.example.dllo.gift_present_0919.R; 10 | import com.example.dllo.gift_present_0919.baseaty.BaseAty; 11 | 12 | public class Mine_Set_Up_Activity extends BaseAty { 13 | 14 | 15 | private ImageView identity_image; 16 | private ImageView invite_image; 17 | private ImageView score_image; 18 | private ImageView idea_image; 19 | private ImageView relative_image; 20 | 21 | 22 | @Override 23 | protected int setLayout() { 24 | return R.layout.mine_set_up; 25 | } 26 | 27 | @Override 28 | protected void initView() { 29 | identity_image = bindView(R.id.identity_image); 30 | invite_image = bindView(R.id.invite_image); 31 | score_image = bindView(R.id.score_image); 32 | idea_image = bindView(R.id.idea_image); 33 | relative_image = bindView(R.id.relative_image); 34 | 35 | 36 | identity_image.setOnClickListener(new View.OnClickListener() { 37 | @Override 38 | public void onClick(View view) { 39 | Intent intent = new Intent(Mine_Set_Up_Activity.this,IdentityActivity.class); 40 | startActivity(intent); 41 | } 42 | }); 43 | invite_image.setOnClickListener(new View.OnClickListener() { 44 | @Override 45 | public void onClick(View view) { 46 | Intent intent1 = new Intent(Mine_Set_Up_Activity.this,InviteActivity.class); 47 | startActivity(intent1); 48 | } 49 | }); 50 | score_image.setOnClickListener(new View.OnClickListener() { 51 | @Override 52 | public void onClick(View view) { 53 | Intent intent2 = new Intent(Mine_Set_Up_Activity.this,ScoreActivity.class); 54 | startActivity(intent2); 55 | 56 | } 57 | }); 58 | idea_image.setOnClickListener(new View.OnClickListener() { 59 | @Override 60 | public void onClick(View view) { 61 | Intent intent3 = new Intent(Mine_Set_Up_Activity.this,IdealActivity.class); 62 | startActivity(intent3); 63 | 64 | } 65 | }); 66 | relative_image.setOnClickListener(new View.OnClickListener() { 67 | @Override 68 | public void onClick(View view) { 69 | Intent intent4 = new Intent(Mine_Set_Up_Activity.this,RelativeGiftActivity.class); 70 | startActivity(intent4); 71 | 72 | } 73 | }); 74 | 75 | 76 | } 77 | 78 | @Override 79 | protected void initData() { 80 | 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/main/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.main; 2 | 3 | import android.support.v4.app.FragmentManager; 4 | import android.support.v4.app.FragmentTransaction; 5 | import android.view.View; 6 | import android.widget.FrameLayout; 7 | import android.widget.RadioButton; 8 | 9 | import com.example.dllo.gift_present_0919.baseaty.BaseAty; 10 | import com.example.dllo.gift_present_0919.classify.ClassFragment; 11 | import com.example.dllo.gift_present_0919.home.HomeFragment; 12 | import com.example.dllo.gift_present_0919.list.ListFragment; 13 | import com.example.dllo.gift_present_0919.mine.MineFragment; 14 | import com.example.dllo.gift_present_0919.R; 15 | 16 | public class MainActivity extends BaseAty implements View.OnClickListener { 17 | 18 | 19 | private RadioButton button_home; 20 | private RadioButton button_list; 21 | private RadioButton button_class; 22 | private RadioButton button_mine; 23 | private FrameLayout frame_main; 24 | 25 | @Override 26 | protected int setLayout() { 27 | return R.layout.activity_main; 28 | } 29 | 30 | @Override 31 | protected void initView() { 32 | 33 | frame_main = bindView(R.id.frame_main); 34 | button_home = bindView(R.id.button_home); 35 | button_list = bindView(R.id.button_list); 36 | button_class = bindView(R.id.button_class); 37 | button_mine = bindView(R.id.button_mine); 38 | 39 | button_home.setOnClickListener(this); 40 | button_list.setOnClickListener(this); 41 | button_class.setOnClickListener(this); 42 | button_mine.setOnClickListener(this); 43 | 44 | } 45 | 46 | @Override 47 | protected void initData() { 48 | FragmentManager manager = getSupportFragmentManager(); 49 | FragmentTransaction transaction = manager.beginTransaction(); 50 | transaction.replace(R.id.frame_main,new HomeFragment()); 51 | button_home.setChecked(true); 52 | transaction.commit(); 53 | 54 | } 55 | 56 | @Override 57 | public void onClick(View view) { 58 | 59 | FragmentManager manager = getSupportFragmentManager(); 60 | FragmentTransaction transaction = manager.beginTransaction(); 61 | 62 | switch (view.getId()){ 63 | case R.id.button_home: 64 | transaction.replace(R.id.frame_main,new HomeFragment()); 65 | break; 66 | case R.id.button_list: 67 | transaction.replace(R.id.frame_main,new ListFragment()); 68 | break; 69 | case R.id.button_class: 70 | transaction.replace(R.id.frame_main,new ClassFragment()); 71 | break; 72 | case R.id.button_mine: 73 | transaction.replace(R.id.frame_main,new MineFragment()); 74 | break; 75 | } 76 | transaction.commit(); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /app/src/main/res/layout/class_stra_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 16 | 22 | 23 | 27 | 32 | 38 | 39 | 44 | 49 | 55 | 56 | 61 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/home/sendboys/BoyAdapter.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.home.sendboys; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.BaseAdapter; 8 | import android.widget.ImageView; 9 | import android.widget.TextView; 10 | 11 | import com.example.dllo.gift_present_0919.R; 12 | import com.squareup.picasso.Picasso; 13 | 14 | /** 15 | * Created by dllo on 16/10/1. 16 | */ 17 | public class BoyAdapter extends BaseAdapter{ 18 | Context context; 19 | private BoyBean boyBean; 20 | 21 | 22 | public void setGrilBean(BoyBean grilBean) { 23 | this. boyBean = grilBean; 24 | } 25 | 26 | public BoyAdapter(Context context) { 27 | this.context = context; 28 | } 29 | 30 | @Override 31 | public int getCount() { 32 | return boyBean.getData().getItems().size(); 33 | } 34 | 35 | @Override 36 | public Object getItem(int i) { 37 | return boyBean.getData().getItems().get(i); 38 | } 39 | 40 | @Override 41 | public long getItemId(int i) { 42 | return 0; 43 | } 44 | 45 | @Override 46 | public View getView(int i, View view, ViewGroup viewGroup) { 47 | ViewHolder viewHolder = null; 48 | if (view == null){ 49 | view = LayoutInflater.from(context).inflate(R.layout.boy_item,null); 50 | viewHolder = new ViewHolder(view); 51 | view.setTag(viewHolder); 52 | }else{ 53 | viewHolder =(ViewHolder) view.getTag(); 54 | } 55 | Picasso.with(context).load( boyBean.getData().getItems().get(i).getAuthor().getAvatar_url()).into(viewHolder.img_three); 56 | Picasso.with(context).load( boyBean.getData().getItems().get(i).getCover_image_url()).into(viewHolder.img_two); 57 | viewHolder.tv_one.setText( boyBean.getData().getItems().get(i).getAuthor().getNickname()); 58 | viewHolder.tv_four.setText( boyBean.getData().getItems().get(i).getTitle()); 59 | 60 | return view; 61 | } 62 | 63 | private class ViewHolder { 64 | private final TextView tv_one; 65 | private final TextView tv_two; 66 | // private final ImageView img_one; 67 | private final TextView tv_three; 68 | private final ImageView img_two; 69 | private final TextView tv_four; 70 | private final ImageView img_three; 71 | private final TextView tv_five; 72 | 73 | 74 | 75 | public ViewHolder(View view) { 76 | tv_one = (TextView) view.findViewById(R.id.choose_list_one); 77 | tv_two = (TextView) view.findViewById(R.id.choose_list_two); 78 | tv_three = (TextView) view.findViewById(R.id.choose_list_four); 79 | tv_four = (TextView) view.findViewById(R.id.choose_list_six); 80 | tv_five = (TextView) view.findViewById(R.id.choose_list_eight); 81 | img_two = (ImageView) view.findViewById(R.id.choose_list_five); 82 | // img_one = (ImageView) view.findViewById(R.id.choose_list_three); 83 | img_three = (ImageView) view.findViewById(R.id.choose_list_seven); 84 | 85 | 86 | } 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/list/ListTitleBean.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.list; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * Created by dllo on 16/9/25. 7 | */ 8 | public class ListTitleBean { 9 | 10 | /** 11 | * code : 200 12 | * data : {"ranks":[{"id":1,"mark_style":0,"name":"每日推荐","title":"每日推荐好礼:一天都不愿错过 ","update_at":1474819200},{"id":2,"mark_style":1,"name":"TOP100","title":"TOP100榜单,把最受欢迎的好礼打包送上","update_at":1474428178},{"id":3,"mark_style":1,"name":"独立原创榜","title":"礼物新星榜,最新最火单品推荐","update_at":1474816917},{"id":4,"mark_style":1,"name":"新星榜","title":"独立原创榜,帮你找到独一无二的好礼","update_at":1474816521}]} 13 | * message : OK 14 | */ 15 | 16 | private int code; 17 | private DataBean data; 18 | private String message; 19 | 20 | public int getCode() { 21 | return code; 22 | } 23 | 24 | public void setCode(int code) { 25 | this.code = code; 26 | } 27 | 28 | public DataBean getData() { 29 | return data; 30 | } 31 | 32 | public void setData(DataBean data) { 33 | this.data = data; 34 | } 35 | 36 | public String getMessage() { 37 | return message; 38 | } 39 | 40 | public void setMessage(String message) { 41 | this.message = message; 42 | } 43 | 44 | public static class DataBean { 45 | /** 46 | * id : 1 47 | * mark_style : 0 48 | * name : 每日推荐 49 | * title : 每日推荐好礼:一天都不愿错过 50 | * update_at : 1474819200 51 | */ 52 | 53 | private List ranks; 54 | 55 | public List getRanks() { 56 | return ranks; 57 | } 58 | 59 | public void setRanks(List ranks) { 60 | this.ranks = ranks; 61 | } 62 | 63 | public static class RanksBean { 64 | private int id; 65 | private int mark_style; 66 | private String name; 67 | private String title; 68 | private int update_at; 69 | 70 | public int getId() { 71 | return id; 72 | } 73 | 74 | public void setId(int id) { 75 | this.id = id; 76 | } 77 | 78 | public int getMark_style() { 79 | return mark_style; 80 | } 81 | 82 | public void setMark_style(int mark_style) { 83 | this.mark_style = mark_style; 84 | } 85 | 86 | public String getName() { 87 | return name; 88 | } 89 | 90 | public void setName(String name) { 91 | this.name = name; 92 | } 93 | 94 | public String getTitle() { 95 | return title; 96 | } 97 | 98 | public void setTitle(String title) { 99 | this.title = title; 100 | } 101 | 102 | public int getUpdate_at() { 103 | return update_at; 104 | } 105 | 106 | public void setUpdate_at(int update_at) { 107 | this.update_at = update_at; 108 | } 109 | } 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/dllo/gift_present_0919/home/choose/MyListAdapter.java: -------------------------------------------------------------------------------- 1 | package com.example.dllo.gift_present_0919.home.choose; 2 | 3 | import android.content.Context; 4 | import android.support.v7.widget.RecyclerView; 5 | import android.view.LayoutInflater; 6 | import android.view.View; 7 | import android.view.ViewGroup; 8 | import android.widget.BaseAdapter; 9 | import android.widget.ImageView; 10 | import android.widget.TextView; 11 | 12 | import com.example.dllo.gift_present_0919.R; 13 | import com.squareup.picasso.Picasso; 14 | 15 | /** 16 | * Created by dllo on 16/9/23. 17 | */ 18 | public class MyListAdapter extends BaseAdapter { 19 | Context context; 20 | private ListBean listBean; 21 | 22 | public MyListAdapter(Context context) { 23 | this.context = context; 24 | } 25 | 26 | public void setListBean(ListBean listBean) { 27 | this.listBean = listBean; 28 | } 29 | 30 | @Override 31 | public int getCount() { 32 | return listBean.getData().getItems().size(); 33 | } 34 | 35 | @Override 36 | public Object getItem(int i) { 37 | return listBean.getData().getItems().get(i); 38 | } 39 | 40 | @Override 41 | public long getItemId(int i) { 42 | return 0; 43 | } 44 | 45 | @Override 46 | public View getView(int i, View view, ViewGroup viewGroup) { 47 | ViewHolder viewHolder = null; 48 | if (view == null){ 49 | view = LayoutInflater.from(context).inflate(R.layout.choose_listview,null); 50 | viewHolder = new ViewHolder(view); 51 | view.setTag(viewHolder); 52 | }else{ 53 | viewHolder =(ViewHolder) view.getTag(); 54 | } 55 | 56 | 57 | 58 | Picasso.with(context).load(listBean.getData().getItems().get(i).getAuthor().getAvatar_url()).into(viewHolder.img_three); 59 | Picasso.with(context).load(listBean.getData().getItems().get(i+1).getCover_image_url()).into(viewHolder.img_two); 60 | viewHolder.tv_one.setText(listBean.getData().getItems().get(i).getAuthor().getNickname()); 61 | viewHolder.tv_four.setText(listBean.getData().getItems().get(i+1).getTitle()); 62 | 63 | return view; 64 | } 65 | 66 | private class ViewHolder { 67 | 68 | private final TextView tv_one; 69 | private final TextView tv_two; 70 | // private final ImageView img_one; 71 | private final TextView tv_three; 72 | private final ImageView img_two; 73 | private final TextView tv_four; 74 | private final ImageView img_three; 75 | private final TextView tv_five; 76 | 77 | public ViewHolder(View view) { 78 | tv_one = (TextView) view.findViewById(R.id.choose_list_one); 79 | tv_two = (TextView) view.findViewById(R.id.choose_list_two); 80 | tv_three = (TextView) view.findViewById(R.id.choose_list_four); 81 | tv_four = (TextView) view.findViewById(R.id.choose_list_six); 82 | tv_five = (TextView) view.findViewById(R.id.choose_list_eight); 83 | img_two = (ImageView) view.findViewById(R.id.choose_list_five); 84 | // img_one = (ImageView) view.findViewById(R.id.choose_list_three); 85 | img_three = (ImageView) view.findViewById(R.id.choose_list_seven); 86 | 87 | 88 | } 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /librar/src/main/java/com/handmark/pulltorefresh/library/extras/SoundPullEventListener.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2011, 2012 Chris Banes. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | *******************************************************************************/ 16 | package com.handmark.pulltorefresh.library.extras; 17 | 18 | import java.util.HashMap; 19 | 20 | import android.content.Context; 21 | import android.media.MediaPlayer; 22 | import android.view.View; 23 | 24 | import com.handmark.pulltorefresh.library.PullToRefreshBase; 25 | import com.handmark.pulltorefresh.library.PullToRefreshBase.Mode; 26 | import com.handmark.pulltorefresh.library.PullToRefreshBase.State; 27 | 28 | public class SoundPullEventListener implements PullToRefreshBase.OnPullEventListener { 29 | 30 | private final Context mContext; 31 | private final HashMap mSoundMap; 32 | 33 | private MediaPlayer mCurrentMediaPlayer; 34 | 35 | /** 36 | * Constructor 37 | * 38 | * @param context - Context 39 | */ 40 | public SoundPullEventListener(Context context) { 41 | mContext = context; 42 | mSoundMap = new HashMap(); 43 | } 44 | 45 | @Override 46 | public final void onPullEvent(PullToRefreshBase refreshView, State event, Mode direction) { 47 | Integer soundResIdObj = mSoundMap.get(event); 48 | if (null != soundResIdObj) { 49 | playSound(soundResIdObj.intValue()); 50 | } 51 | } 52 | 53 | /** 54 | * Set the Sounds to be played when a Pull Event happens. You specify which 55 | * sound plays for which events by calling this method multiple times for 56 | * each event. 57 | *

58 | * If you've already set a sound for a certain event, and add another sound 59 | * for that event, only the new sound will be played. 60 | * 61 | * @param event - The event for which the sound will be played. 62 | * @param resId - Resource Id of the sound file to be played (e.g. 63 | * R.raw.pull_sound) 64 | */ 65 | public void addSoundEvent(State event, int resId) { 66 | mSoundMap.put(event, resId); 67 | } 68 | 69 | /** 70 | * Clears all of the previously set sounds and events. 71 | */ 72 | public void clearSounds() { 73 | mSoundMap.clear(); 74 | } 75 | 76 | /** 77 | * Gets the current (or last) MediaPlayer instance. 78 | */ 79 | public MediaPlayer getCurrentMediaPlayer() { 80 | return mCurrentMediaPlayer; 81 | } 82 | 83 | private void playSound(int resId) { 84 | // Stop current player, if there's one playing 85 | if (null != mCurrentMediaPlayer) { 86 | mCurrentMediaPlayer.stop(); 87 | mCurrentMediaPlayer.release(); 88 | } 89 | 90 | mCurrentMediaPlayer = MediaPlayer.create(mContext, resId); 91 | if (null != mCurrentMediaPlayer) { 92 | mCurrentMediaPlayer.start(); 93 | } 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_identity.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 13 | 18 | 23 | 24 | 29 | 34 | 39 | 40 | 41 | 46 | 52 | 58 | 59 | 60 | 65 | 71 | 77 | 78 | 79 |