├── libs ├── gson.jar ├── domob.jar ├── jpush.jar ├── umeng.jar ├── weibo.jar ├── weixin.jar ├── zxing-1.6.jar ├── iflytek-msc.jar ├── armeabi │ ├── libmsc.so │ ├── libsys.so │ ├── libbspatch.so │ └── liblocSDK3.so ├── baidu-location.jar ├── android-support-v4.jar └── baidu_byber-player.jar ├── res ├── raw │ └── zxing_beep.ogg ├── drawable-hdpi │ ├── loading.png │ ├── md_arrow.png │ ├── nav_bg.9.png │ ├── title_bg.png │ ├── dialog_bg.9.png │ ├── toast_bg.9.png │ ├── button_clicked.9.png │ ├── button_normal.9.png │ ├── md_arrow_right.png │ ├── nav_more_normal.png │ ├── nav_more_pressed.png │ ├── nav_stop_normal.png │ ├── nav_stop_pressed.png │ ├── slide_menu_bg.9.png │ ├── spinner_normal.9.png │ ├── button_disabled.9.png │ ├── button_selected.9.png │ ├── icon_explorer_file.png │ ├── icon_explorer_home.png │ ├── nav_goback_normal.png │ ├── nav_goback_pressed.png │ ├── nav_refresh_normal.png │ ├── pulltorefresh_flip.png │ ├── spinner_pressed.9.png │ ├── umeng_fb_list_icon.png │ ├── btn_dialog_normal.9.png │ ├── btn_dialog_pressed.9.png │ ├── icon_explorer_folder.png │ ├── nav_goback_disabled.png │ ├── nav_goforward_normal.png │ ├── nav_goforward_pressed.png │ ├── nav_refresh_pressed.png │ ├── pulltorefresh_rotate.png │ ├── umeng_fb_dev_bubble.9.png │ ├── umeng_fb_list_item.9.png │ ├── umeng_fb_write_icon.png │ ├── nav_goforward_disabled.png │ ├── umeng_fb_statusbar_icon.png │ ├── umeng_fb_user_bubble.9.png │ └── umeng_fb_list_item_pressed.9.png ├── drawable-mdpi │ ├── md_arrow.png │ ├── md_arrow_right.png │ ├── pulltorefresh_flip.png │ └── pulltorefresh_rotate.png ├── drawable-xhdpi │ ├── md_arrow.png │ ├── md_arrow_right.png │ ├── pulltorefresh_flip.png │ └── pulltorefresh_rotate.png ├── values │ ├── colors.xml │ ├── pulltorefresh_ids.xml │ ├── menudrawer_colors.xml │ ├── pulltorefresh_dimens.xml │ ├── arrays.xml │ ├── weibo_dimens.xml │ ├── zxing_strings.xml │ ├── zxing_colors.xml │ ├── baidu_location_strings.xml │ ├── pulltorefresh_strings.xml │ ├── menudrawer_ids.xml │ ├── umeng_common_strings.xml │ ├── weixin_strings.xml │ ├── menudrawer_styles.xml │ ├── baidu_player_strings.xml │ ├── zxing_ids.xml │ ├── umeng_update_string.xml │ ├── weibo_colors.xml │ ├── spinner_attrs.xml │ ├── weibo_strings.xml │ ├── listpager_attrs.xml │ ├── menudrawer_attrs.xml │ ├── viewflow_attrs.xml │ ├── strings.xml │ └── umeng_fb_strings.xml ├── drawable-hdpi-v14 │ ├── md_arrow.png │ └── md_arrow_right.png ├── drawable-mdpi-v14 │ ├── md_arrow.png │ └── md_arrow_right.png ├── drawable-xhdpi-v14 │ ├── md_arrow.png │ └── md_arrow_right.png ├── drawable │ ├── umeng_fb_blank_selector.xml │ ├── umeng_fb_bottom_banner.xml │ ├── umeng_fb_top_banner.xml │ ├── spinner.xml │ ├── btn_nav_more.xml │ ├── btn_nav_stop.xml │ ├── btn_dialog.xml │ ├── btn_nav_refresh.xml │ ├── umeng_fb_write_selector.xml │ ├── umeng_common_gradient_green.xml │ ├── umeng_common_gradient_orange.xml │ ├── umeng_common_gradient_red.xml │ ├── umeng_fb_see_list_selector.xml │ ├── umeng_fb_point_new.xml │ ├── progressbar.xml │ ├── umeng_fb_point_normal.xml │ ├── umeng_fb_list_item_selector.xml │ ├── umeng_fb_gray_frame.xml │ ├── btn_nav_goback.xml │ ├── btn_nav_goforward.xml │ └── btn_common.xml ├── anim │ ├── fade_in.xml │ ├── fade_out.xml │ ├── slide_in_from_top.xml │ ├── slide_out_to_bottom.xml │ ├── slide_out_to_top.xml │ ├── slide_in_from_bottom.xml │ ├── slide_out_to_left.xml │ ├── slide_out_to_right.xml │ ├── slide_in_from_left.xml │ ├── slide_in_from_right.xml │ ├── reload.xml │ ├── scale_fade_out.xml │ └── scale_fade_in.xml ├── values-zh-rCN │ ├── zxing_strings.xml │ ├── arrays.xml │ ├── baidu_location_strings.xml │ ├── pulltorefresh_strings.xml │ ├── weixin_strings.xml │ ├── umeng_common_strings.xml │ ├── baidu_player_strings.xml │ ├── umeng_update_string.xml │ ├── weibo_strings.xml │ ├── strings.xml │ └── umeng_fb_strings.xml ├── values-zh-rTW │ ├── zxing_strings.xml │ ├── arrays.xml │ ├── baidu_location_strings.xml │ ├── pulltorefresh_strings.xml │ ├── weixin_strings.xml │ ├── umeng_common_strings.xml │ ├── baidu_player_strings.xml │ ├── umeng_update_string.xml │ ├── weibo_strings.xml │ ├── strings.xml │ └── umeng_fb_strings.xml └── layout │ ├── spinner.xml │ ├── listpager_empty.xml │ ├── pulltorefresh_empty.xml │ ├── dialog_list_item2.xml │ ├── file_explorer.xml │ ├── toast.xml │ ├── pulltorefresh_header_horizontal.xml │ ├── file_explorer_item.xml │ ├── dialog_list_item1.xml │ ├── push.xml │ ├── zxing_scan.xml │ ├── dialog_loading.xml │ ├── umeng_fb_conversations.xml │ ├── umeng_fb_conversation_item.xml │ ├── dialog_list.xml │ ├── umeng_fb_list_item.xml │ ├── umeng_fb_conversations_item.xml │ └── umeng_fb_conversation.xml ├── src └── com │ └── rincliu │ └── library │ ├── common │ ├── persistence │ │ ├── image │ │ │ ├── core │ │ │ │ ├── assist │ │ │ │ │ ├── LoadedFrom.java │ │ │ │ │ ├── FlushedInputStream.java │ │ │ │ │ ├── QueueProcessingType.java │ │ │ │ │ ├── deque │ │ │ │ │ │ └── LIFOLinkedBlockingDeque.java │ │ │ │ │ ├── SimpleImageLoadingListener.java │ │ │ │ │ └── DiscCacheUtil.java │ │ │ │ ├── decode │ │ │ │ │ └── ImageDecoder.java │ │ │ │ ├── display │ │ │ │ │ ├── SimpleBitmapDisplayer.java │ │ │ │ │ ├── BitmapDisplayer.java │ │ │ │ │ └── FakeBitmapDisplayer.java │ │ │ │ ├── download │ │ │ │ │ ├── NetworkDeniedImageDownloader.java │ │ │ │ │ ├── SlowNetworkImageDownloader.java │ │ │ │ │ └── HttpClientImageDownloader.java │ │ │ │ └── process │ │ │ │ │ └── BitmapProcessor.java │ │ │ ├── cache │ │ │ │ ├── disc │ │ │ │ │ ├── naming │ │ │ │ │ │ ├── FileNameGenerator.java │ │ │ │ │ │ ├── HashCodeFileNameGenerator.java │ │ │ │ │ │ └── Md5FileNameGenerator.java │ │ │ │ │ ├── DiscCacheAware.java │ │ │ │ │ └── impl │ │ │ │ │ │ └── UnlimitedDiscCache.java │ │ │ │ └── memory │ │ │ │ │ ├── impl │ │ │ │ │ └── WeakMemoryCache.java │ │ │ │ │ └── MemoryCacheAware.java │ │ │ └── utils │ │ │ │ └── IoUtils.java │ │ ├── rootmanager │ │ │ ├── exception │ │ │ │ ├── InternalException.java │ │ │ │ └── PermissionException.java │ │ │ ├── utils │ │ │ │ └── RootUtils.java │ │ │ └── container │ │ │ │ └── Mount.java │ │ ├── afinal │ │ │ ├── db │ │ │ │ ├── table │ │ │ │ │ ├── Id.java │ │ │ │ │ ├── OneToMany.java │ │ │ │ │ ├── ManyToOne.java │ │ │ │ │ └── KeyValue.java │ │ │ │ └── sqlite │ │ │ │ │ ├── SqlInfo.java │ │ │ │ │ └── DbModel.java │ │ │ ├── exception │ │ │ │ ├── AfinalException.java │ │ │ │ ├── ViewException.java │ │ │ │ └── DbException.java │ │ │ ├── annotation │ │ │ │ ├── sqlite │ │ │ │ │ ├── Table.java │ │ │ │ │ ├── Transient.java │ │ │ │ │ ├── ManyToOne.java │ │ │ │ │ ├── OneToMany.java │ │ │ │ │ ├── Property.java │ │ │ │ │ └── Id.java │ │ │ │ └── view │ │ │ │ │ ├── Select.java │ │ │ │ │ └── ViewInject.java │ │ │ └── core │ │ │ │ └── FileNameGenerator.java │ │ └── zxing │ │ │ ├── view │ │ │ └── ViewfinderResultPointCallback.java │ │ │ ├── decoding │ │ │ └── FinishListener.java │ │ │ ├── camera │ │ │ ├── AutoFocusCallback.java │ │ │ └── PreviewCallback.java │ │ │ └── ScanDemoActivity.java │ └── reference │ │ ├── push │ │ ├── RLNotificationEntity.java │ │ └── RLNotificationActivity.java │ │ ├── analytics │ │ └── RLAnalyticsHelper.java │ │ └── update │ │ └── RLUpdateHelper.java │ ├── widget │ ├── menudrawer │ │ ├── Position.java │ │ ├── SmoothInterpolator.java │ │ ├── SinusoidalInterpolator.java │ │ ├── PeekInterpolator.java │ │ └── NoClickThroughFrameLayout.java │ ├── gestureimageview │ │ ├── MoveAnimationListener.java │ │ ├── ZoomAnimationListener.java │ │ ├── FlingAnimationListener.java │ │ ├── GestureImageViewListener.java │ │ ├── Animation.java │ │ ├── FlingListener.java │ │ ├── VectorF.java │ │ └── FlingAnimation.java │ ├── pulltorefresh │ │ ├── EmptyViewMethodAccessor.java │ │ ├── ILoadingLayout.java │ │ └── LoadingLayoutProxy.java │ ├── dialog │ │ └── RLLoadingDialog.java │ └── RLOnClickListener.java │ ├── util │ ├── RLJsonUtil.java │ ├── RLStrUtil.java │ └── RLUiUtil.java │ └── app │ └── RLCrashHandler.java └── README.md /libs/gson.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/gson.jar -------------------------------------------------------------------------------- /libs/domob.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/domob.jar -------------------------------------------------------------------------------- /libs/jpush.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/jpush.jar -------------------------------------------------------------------------------- /libs/umeng.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/umeng.jar -------------------------------------------------------------------------------- /libs/weibo.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/weibo.jar -------------------------------------------------------------------------------- /libs/weixin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/weixin.jar -------------------------------------------------------------------------------- /libs/zxing-1.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/zxing-1.6.jar -------------------------------------------------------------------------------- /libs/iflytek-msc.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/iflytek-msc.jar -------------------------------------------------------------------------------- /libs/armeabi/libmsc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/armeabi/libmsc.so -------------------------------------------------------------------------------- /libs/armeabi/libsys.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/armeabi/libsys.so -------------------------------------------------------------------------------- /libs/baidu-location.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/baidu-location.jar -------------------------------------------------------------------------------- /res/raw/zxing_beep.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/raw/zxing_beep.ogg -------------------------------------------------------------------------------- /libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/android-support-v4.jar -------------------------------------------------------------------------------- /libs/armeabi/libbspatch.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/armeabi/libbspatch.so -------------------------------------------------------------------------------- /libs/armeabi/liblocSDK3.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/armeabi/liblocSDK3.so -------------------------------------------------------------------------------- /libs/baidu_byber-player.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/libs/baidu_byber-player.jar -------------------------------------------------------------------------------- /res/drawable-hdpi/loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/loading.png -------------------------------------------------------------------------------- /res/drawable-hdpi/md_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/md_arrow.png -------------------------------------------------------------------------------- /res/drawable-hdpi/nav_bg.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/nav_bg.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/title_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/title_bg.png -------------------------------------------------------------------------------- /res/drawable-mdpi/md_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-mdpi/md_arrow.png -------------------------------------------------------------------------------- /res/drawable-hdpi/dialog_bg.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/dialog_bg.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/toast_bg.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/toast_bg.9.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/md_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-xhdpi/md_arrow.png -------------------------------------------------------------------------------- /res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #123456 4 | 5 | -------------------------------------------------------------------------------- /res/drawable-hdpi-v14/md_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi-v14/md_arrow.png -------------------------------------------------------------------------------- /res/drawable-mdpi-v14/md_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-mdpi-v14/md_arrow.png -------------------------------------------------------------------------------- /res/drawable-xhdpi-v14/md_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-xhdpi-v14/md_arrow.png -------------------------------------------------------------------------------- /res/drawable-hdpi/button_clicked.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/button_clicked.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/button_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/button_normal.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/md_arrow_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/md_arrow_right.png -------------------------------------------------------------------------------- /res/drawable-hdpi/nav_more_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/nav_more_normal.png -------------------------------------------------------------------------------- /res/drawable-hdpi/nav_more_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/nav_more_pressed.png -------------------------------------------------------------------------------- /res/drawable-hdpi/nav_stop_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/nav_stop_normal.png -------------------------------------------------------------------------------- /res/drawable-hdpi/nav_stop_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/nav_stop_pressed.png -------------------------------------------------------------------------------- /res/drawable-hdpi/slide_menu_bg.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/slide_menu_bg.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/spinner_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/spinner_normal.9.png -------------------------------------------------------------------------------- /res/drawable-mdpi/md_arrow_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-mdpi/md_arrow_right.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/md_arrow_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-xhdpi/md_arrow_right.png -------------------------------------------------------------------------------- /res/drawable-hdpi-v14/md_arrow_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi-v14/md_arrow_right.png -------------------------------------------------------------------------------- /res/drawable-hdpi/button_disabled.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/button_disabled.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/button_selected.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/button_selected.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/icon_explorer_file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/icon_explorer_file.png -------------------------------------------------------------------------------- /res/drawable-hdpi/icon_explorer_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/icon_explorer_home.png -------------------------------------------------------------------------------- /res/drawable-hdpi/nav_goback_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/nav_goback_normal.png -------------------------------------------------------------------------------- /res/drawable-hdpi/nav_goback_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/nav_goback_pressed.png -------------------------------------------------------------------------------- /res/drawable-hdpi/nav_refresh_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/nav_refresh_normal.png -------------------------------------------------------------------------------- /res/drawable-hdpi/pulltorefresh_flip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/pulltorefresh_flip.png -------------------------------------------------------------------------------- /res/drawable-hdpi/spinner_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/spinner_pressed.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/umeng_fb_list_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/umeng_fb_list_icon.png -------------------------------------------------------------------------------- /res/drawable-mdpi-v14/md_arrow_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-mdpi-v14/md_arrow_right.png -------------------------------------------------------------------------------- /res/drawable-mdpi/pulltorefresh_flip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-mdpi/pulltorefresh_flip.png -------------------------------------------------------------------------------- /res/drawable-hdpi/btn_dialog_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/btn_dialog_normal.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/btn_dialog_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/btn_dialog_pressed.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/icon_explorer_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/icon_explorer_folder.png -------------------------------------------------------------------------------- /res/drawable-hdpi/nav_goback_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/nav_goback_disabled.png -------------------------------------------------------------------------------- /res/drawable-hdpi/nav_goforward_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/nav_goforward_normal.png -------------------------------------------------------------------------------- /res/drawable-hdpi/nav_goforward_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/nav_goforward_pressed.png -------------------------------------------------------------------------------- /res/drawable-hdpi/nav_refresh_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/nav_refresh_pressed.png -------------------------------------------------------------------------------- /res/drawable-hdpi/pulltorefresh_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/pulltorefresh_rotate.png -------------------------------------------------------------------------------- /res/drawable-hdpi/umeng_fb_dev_bubble.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/umeng_fb_dev_bubble.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/umeng_fb_list_item.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/umeng_fb_list_item.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/umeng_fb_write_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/umeng_fb_write_icon.png -------------------------------------------------------------------------------- /res/drawable-mdpi/pulltorefresh_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-mdpi/pulltorefresh_rotate.png -------------------------------------------------------------------------------- /res/drawable-xhdpi-v14/md_arrow_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-xhdpi-v14/md_arrow_right.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/pulltorefresh_flip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-xhdpi/pulltorefresh_flip.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/pulltorefresh_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-xhdpi/pulltorefresh_rotate.png -------------------------------------------------------------------------------- /res/drawable-hdpi/nav_goforward_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/nav_goforward_disabled.png -------------------------------------------------------------------------------- /res/drawable-hdpi/umeng_fb_statusbar_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/umeng_fb_statusbar_icon.png -------------------------------------------------------------------------------- /res/drawable-hdpi/umeng_fb_user_bubble.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/umeng_fb_user_bubble.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/umeng_fb_list_item_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/Roid-lib-Rinc/master/res/drawable-hdpi/umeng_fb_list_item_pressed.9.png -------------------------------------------------------------------------------- /res/drawable/umeng_fb_blank_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /res/values/pulltorefresh_ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /res/anim/fade_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /res/anim/fade_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /res/values/menudrawer_colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #FF555555 5 | 6 | #00000000 7 | 8 | -------------------------------------------------------------------------------- /res/values/pulltorefresh_dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 24dp 5 | 12dp 6 | 7 | -------------------------------------------------------------------------------- /res/values-zh-rCN/zxing_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 请将二维码置于取景框内扫描 4 | 二维码扫描出错啦,请重新扫描 5 | 扫描结果 6 | -------------------------------------------------------------------------------- /res/values-zh-rTW/zxing_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 請將二維碼置於取景框內掃描 4 | 二維碼掃描出錯啦,請重新掃描 5 | 掃描結果 6 | -------------------------------------------------------------------------------- /res/values-zh-rCN/arrays.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 清空缓存 6 | 清空Cookie 7 | 清空浏览记录 8 | 9 | 10 | -------------------------------------------------------------------------------- /res/values-zh-rTW/arrays.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 清空緩存 6 | 清空Cookie 7 | 清空瀏覽記錄 8 | 9 | 10 | -------------------------------------------------------------------------------- /res/values/arrays.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Clean cache 6 | Clean cookie 7 | Clean history 8 | 9 | 10 | -------------------------------------------------------------------------------- /res/drawable/umeng_fb_bottom_banner.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | -------------------------------------------------------------------------------- /res/drawable/umeng_fb_top_banner.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | -------------------------------------------------------------------------------- /res/values/weibo_dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 30dp 4 | 30dp 5 | 30dp 6 | 15dp 7 | -------------------------------------------------------------------------------- /res/values/zxing_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Please keep your code in the window to scan. 4 | Scan failed.Please try again. 5 | Scan result 6 | -------------------------------------------------------------------------------- /res/values/zxing_colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #2477ab 4 | #60000000 5 | #c0ffff00 6 | #b0000000 7 | -------------------------------------------------------------------------------- /res/anim/slide_in_from_top.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /res/anim/slide_out_to_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /res/anim/slide_out_to_top.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /res/drawable/spinner.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /res/anim/slide_in_from_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /res/drawable/btn_nav_more.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | -------------------------------------------------------------------------------- /res/drawable/btn_nav_stop.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | -------------------------------------------------------------------------------- /res/drawable/btn_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /res/drawable/btn_nav_refresh.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | -------------------------------------------------------------------------------- /res/drawable/umeng_fb_write_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /res/drawable/umeng_common_gradient_green.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /res/drawable/umeng_common_gradient_orange.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /res/drawable/umeng_common_gradient_red.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /res/drawable/umeng_fb_see_list_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /res/anim/slide_out_to_left.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 8 | -------------------------------------------------------------------------------- /res/anim/slide_out_to_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 8 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/image/core/assist/LoadedFrom.java: -------------------------------------------------------------------------------- 1 | package com.rincliu.library.common.persistence.image.core.assist; 2 | 3 | /** 4 | * Source image loaded from. 5 | * 6 | * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) 7 | */ 8 | public enum LoadedFrom { 9 | NETWORK, DISC_CACHE, MEMORY_CACHE 10 | } 11 | -------------------------------------------------------------------------------- /res/anim/slide_in_from_left.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 8 | -------------------------------------------------------------------------------- /res/anim/slide_in_from_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 8 | -------------------------------------------------------------------------------- /res/drawable/umeng_fb_point_new.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /res/drawable/progressbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | -------------------------------------------------------------------------------- /res/drawable/umeng_fb_point_normal.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/menudrawer/Position.java: -------------------------------------------------------------------------------- 1 | package com.rincliu.library.widget.menudrawer; 2 | 3 | /** 4 | * Enums used for positioning the drawer. 5 | */ 6 | public enum Position { 7 | // Positions the drawer to the left of the content. 8 | LEFT, 9 | 10 | // Positions the drawer to the right of the content. 11 | RIGHT 12 | } 13 | -------------------------------------------------------------------------------- /res/anim/reload.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | -------------------------------------------------------------------------------- /res/drawable/umeng_fb_list_item_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/menudrawer/SmoothInterpolator.java: -------------------------------------------------------------------------------- 1 | package com.rincliu.library.widget.menudrawer; 2 | 3 | import android.view.animation.Interpolator; 4 | 5 | public class SmoothInterpolator implements Interpolator { 6 | 7 | @Override 8 | public float getInterpolation(float t) { 9 | t -= 1.0f; 10 | return t * t * t * t * t + 1.0f; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /res/values-zh-rCN/baidu_location_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 首次定位失败 5 | 扫描整合定位依据失败 6 | 网络异常 7 | 离线定位失败 8 | 服务端定位失败 9 | 10 | -------------------------------------------------------------------------------- /res/values-zh-rTW/baidu_location_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 首次定位失敗 5 | 掃描整合定位依據失敗 6 | 網絡異常 7 | 離線定位失敗 8 | 服務端定位失敗 9 | 10 | -------------------------------------------------------------------------------- /res/drawable/umeng_fb_gray_frame.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /res/drawable/btn_nav_goback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 9 | -------------------------------------------------------------------------------- /res/drawable/btn_nav_goforward.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 9 | -------------------------------------------------------------------------------- /res/values/baidu_location_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Failed in fisrt location 5 | Scan failed to integrate positioning basis 6 | Network exception 7 | Located failed with offline 8 | Located failed with server error 9 | 10 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/rootmanager/exception/InternalException.java: -------------------------------------------------------------------------------- 1 | 2 | package com.rincliu.library.common.persistence.rootmanager.exception; 3 | 4 | /** 5 | * This exception will be throwed when Root Manager internal error occured. 6 | * 7 | * @author Chris Jiang 8 | */ 9 | public class InternalException extends Exception { 10 | 11 | private static final long serialVersionUID = -4431771251773644144L; 12 | 13 | public InternalException(Throwable th) { 14 | super(th); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /res/values-zh-rCN/pulltorefresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 拖动可以刷新 5 | 释放可以刷新 6 | 拖动可以查看更多 7 | 释放可以查看更多 8 | 加载中… 9 | 没有数据 10 | 上次更新: 11 | 12 | -------------------------------------------------------------------------------- /res/values-zh-rTW/pulltorefresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 拖動可以刷新 5 | 釋放可以刷新 6 | 拖動可以查看更多 7 | 釋放可以查看更多 8 | 加載中… 9 | 沒有數據 10 | 上次更新: 11 | 12 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/rootmanager/exception/PermissionException.java: -------------------------------------------------------------------------------- 1 | 2 | package com.rincliu.library.common.persistence.rootmanager.exception; 3 | 4 | /** 5 | * This exception will be throwed when Root permission error occurs. 6 | * 7 | * @author Chris Jiang 8 | */ 9 | public class PermissionException extends Exception { 10 | 11 | private static final long serialVersionUID = -8713947214162841310L; 12 | 13 | public PermissionException(String error) { 14 | super(error); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /res/layout/spinner.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 13 | -------------------------------------------------------------------------------- /res/values/pulltorefresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Pull to refresh 5 | Release to refresh 6 | Pull to load more 7 | Release to load more 8 | loading… 9 | No data 10 | Updated at: 11 | 12 | -------------------------------------------------------------------------------- /res/values-zh-rCN/weixin_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 未安装微信 4 | 当前微信版本不支持此接口 5 | 当前微信版本不支持朋友圈 6 | 已成功分享到微信 7 | 同步到微信失败 8 | 已取消分享到微信 9 | 被拒绝 10 | 未知错误 11 | -------------------------------------------------------------------------------- /res/values-zh-rTW/weixin_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 未安裝微信 4 | 當前微信版本不支持此接口 5 | 當前微信版本不支持朋友圈 6 | 已成功分享到微信 7 | 同步到微信失敗 8 | 已取消分享到微信 9 | 被拒絕 10 | 未知錯誤 11 | -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/menudrawer/SinusoidalInterpolator.java: -------------------------------------------------------------------------------- 1 | package com.rincliu.library.widget.menudrawer; 2 | 3 | import android.view.animation.Interpolator; 4 | 5 | /** 6 | * Interpolator which, when drawn from 0 to 1, looks like half a sine-wave. Used for smoother opening/closing when 7 | * peeking at the drawer. 8 | */ 9 | public class SinusoidalInterpolator implements Interpolator { 10 | 11 | @Override 12 | public float getInterpolation(float input) { 13 | return (float) (0.5f + 0.5f * Math.sin(input * Math.PI - Math.PI / 2.f)); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /res/layout/listpager_empty.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 14 | -------------------------------------------------------------------------------- /res/layout/pulltorefresh_empty.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 14 | -------------------------------------------------------------------------------- /res/values-zh-rCN/umeng_common_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 正在下载中… 4 | 下载出错啦,请检查网络后继续。 5 | 暂停 6 | 继续 7 | 取消 8 | 正在下载: 9 | 请连接网络后再尝试! 10 | 下载失败 11 | 12 | -------------------------------------------------------------------------------- /res/values-zh-rTW/umeng_common_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 正在下載中… 4 | 下載出錯啦,請檢查網絡後繼續。 5 | 暫停 6 | 繼續 7 | 取消 8 | 正在下載: 9 | 請連接網絡後再嘗試! 10 | 下載失敗 11 | 12 | -------------------------------------------------------------------------------- /res/anim/scale_fade_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 17 | -------------------------------------------------------------------------------- /res/anim/scale_fade_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 17 | -------------------------------------------------------------------------------- /res/layout/dialog_list_item2.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 17 | -------------------------------------------------------------------------------- /res/layout/file_explorer.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 17 | -------------------------------------------------------------------------------- /res/drawable/btn_common.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /res/values-zh-rCN/baidu_player_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 下载中:\n 4 | 视频引擎已经安装过了 5 | 视频引擎已经在运行 6 | 非法的安装包 7 | 网络错误 8 | 未知错误 9 | 存储错误 10 | 视频引擎安装成功 11 | 没有视频引擎安装包 12 | 已停止 13 | -------------------------------------------------------------------------------- /res/values-zh-rTW/baidu_player_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 下載中:\n 4 | 視頻引擎已經安裝過了 5 | 視頻引擎已經在運行 6 | 非法的安裝包 7 | 網絡錯誤 8 | 未知錯誤 9 | 存儲錯誤 10 | 視頻引擎安裝成功 11 | 沒有視頻引擎安裝包 12 | 已停止 13 | -------------------------------------------------------------------------------- /res/layout/toast.xml: -------------------------------------------------------------------------------- 1 | 8 | 17 | -------------------------------------------------------------------------------- /res/values/menudrawer_ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /res/values/umeng_common_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | downloading… 4 | Download failed.Please check your network. 5 | Pause 6 | Continue 7 | Cancel 8 | downloading: 9 | Please check your network and try again! 10 | Download failed. 11 | 12 | -------------------------------------------------------------------------------- /res/layout/pulltorefresh_header_horizontal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 18 | 19 | -------------------------------------------------------------------------------- /res/layout/file_explorer_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 19 | -------------------------------------------------------------------------------- /res/values/weixin_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Weixin app is not installed. 4 | Interface is not been supported.Please update your Weixin app. 5 | Circle is not been supported.Please update your Weixin app. 6 | Your content has been shared to Weixin. 7 | Failed to send. 8 | Option has been canceled. 9 | Option has been refused. 10 | Unknown error occured. 11 | -------------------------------------------------------------------------------- /res/values/menudrawer_styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 13 | 14 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /res/values/baidu_player_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | downloading:\n 4 | Video engine already installed 5 | Video engine alread running 6 | Invalid apk 7 | Network error 8 | Unknown error 9 | IO error 10 | Video engine installed 11 | No new package for video engine 12 | Stopped 13 | -------------------------------------------------------------------------------- /res/values-zh-rTW/umeng_update_string.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 未聯網 4 | 應用程序有新版本更新 5 | 最新版本: 6 | 更新包大小: 7 | 新版本大小: 8 | (提示:非WIFI環境) 9 | 立即更新 10 | 應用更新 11 | 以後再說 12 | 正在更新中… 13 | 最新版本已下載,是否安裝? 14 | 没有更新 15 | 請求超時 16 | 沒有wifi連接, 只在wifi下更新 17 | -------------------------------------------------------------------------------- /res/values-zh-rCN/umeng_update_string.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 未联网 4 | 应用程序有新版本更新 5 | 最新版本: 6 | 更新包大小: 7 | 新版本大小: 8 | (提示:非WIFI环境) 9 | 立即更新 10 | 应用更新 11 | 以后再说 12 | 正在更新中… 13 | 最新版本已下载,是否安装? 14 | 没有更新 15 | 请求超时 16 | 没有wifi连接, 只在wifi下更新 17 | 18 | -------------------------------------------------------------------------------- /res/values/zxing_ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/db/table/Id.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.db.table; 17 | 18 | public class Id extends Property{ 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/menudrawer/PeekInterpolator.java: -------------------------------------------------------------------------------- 1 | package com.rincliu.library.widget.menudrawer; 2 | 3 | import android.view.animation.Interpolator; 4 | 5 | public class PeekInterpolator implements Interpolator { 6 | 7 | private static final SinusoidalInterpolator SINUSOIDAL_INTERPOLATOR = new SinusoidalInterpolator(); 8 | 9 | @Override 10 | public float getInterpolation(float input) { 11 | float result; 12 | 13 | if (input < 1.f / 3.f) { 14 | result = SINUSOIDAL_INTERPOLATOR.getInterpolation(input * 3); 15 | 16 | } else if (input > 2.f / 3.f) { 17 | final float val = ((input + 1.f / 3.f) - 1.f) * 3.f; 18 | result = 1.f - SINUSOIDAL_INTERPOLATOR.getInterpolation(val); 19 | 20 | } else { 21 | result = 1.f; 22 | } 23 | 24 | return result; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /res/values/umeng_update_string.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Network error 4 | New version 5 | Latest version: 6 | Update size: 7 | Target size: 8 | (Alert:GPRS condition) 9 | Update now 10 | App update 11 | Not now 12 | Updating… 13 | Download finished.Install now? 14 | No update 15 | Timeout 16 | No wifi connection 17 | 18 | -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/menudrawer/NoClickThroughFrameLayout.java: -------------------------------------------------------------------------------- 1 | package com.rincliu.library.widget.menudrawer; 2 | 3 | import android.content.Context; 4 | import android.util.AttributeSet; 5 | import android.view.MotionEvent; 6 | 7 | /** 8 | * FrameLayout which doesn't let touch events propagate to views positioned behind it in the view hierarchy. 9 | */ 10 | public class NoClickThroughFrameLayout extends BuildLayerFrameLayout { 11 | 12 | public NoClickThroughFrameLayout(Context context) { 13 | super(context); 14 | } 15 | 16 | public NoClickThroughFrameLayout(Context context, AttributeSet attrs) { 17 | super(context, attrs); 18 | } 19 | 20 | public NoClickThroughFrameLayout(Context context, AttributeSet attrs, int defStyle) { 21 | super(context, attrs, defStyle); 22 | } 23 | 24 | @Override 25 | public boolean onTouchEvent(MotionEvent event) { 26 | return true; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/gestureimageview/MoveAnimationListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Jason Polites 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.rincliu.library.widget.gestureimageview; 17 | 18 | 19 | /** 20 | * @author Jason Polites 21 | * 22 | */ 23 | public interface MoveAnimationListener { 24 | 25 | public void onMove(float x, float y); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/exception/AfinalException.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.exception; 17 | 18 | public class AfinalException extends RuntimeException { 19 | private static final long serialVersionUID = 1L; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/gestureimageview/ZoomAnimationListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Jason Polites 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.rincliu.library.widget.gestureimageview; 17 | 18 | 19 | /** 20 | * @author Jason Polites 21 | * 22 | */ 23 | public interface ZoomAnimationListener { 24 | public void onZoom(float scale, float x, float y); 25 | public void onComplete(); 26 | } 27 | -------------------------------------------------------------------------------- /res/values/weibo_colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | #00000000 22 | #333 23 | #9CCCF7 24 | -------------------------------------------------------------------------------- /res/layout/dialog_list_item1.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 16 | 23 | 27 | -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/gestureimageview/FlingAnimationListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Jason Polites 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.rincliu.library.widget.gestureimageview; 17 | 18 | 19 | /** 20 | * @author Jason Polites 21 | * 22 | */ 23 | public interface FlingAnimationListener { 24 | 25 | public void onMove(float x, float y); 26 | 27 | public void onComplete(); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /res/layout/push.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 11 | 15 | 21 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/com/rincliu/library/util/RLJsonUtil.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2013-2014, Rinc Liu (http://rincliu.com). 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.rincliu.library.util; 17 | 18 | import com.google.gsonx.Gson; 19 | import com.google.gsonx.GsonBuilder; 20 | 21 | public class RLJsonUtil { 22 | public static final Gson GSON = new GsonBuilder() 23 | .excludeFieldsWithoutExposeAnnotation() 24 | .enableComplexMapKeySerialization() 25 | .create(); 26 | } -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/gestureimageview/GestureImageViewListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Jason Polites 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.rincliu.library.widget.gestureimageview; 17 | 18 | /** 19 | * @author jasonpolites 20 | * 21 | */ 22 | public interface GestureImageViewListener { 23 | 24 | public void onTouch(float x, float y); 25 | 26 | public void onScale(float scale); 27 | 28 | public void onPosition(float x, float y); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /res/values/spinner_attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/image/core/assist/FlushedInputStream.java: -------------------------------------------------------------------------------- 1 | package com.rincliu.library.common.persistence.image.core.assist; 2 | 3 | import java.io.FilterInputStream; 4 | import java.io.IOException; 5 | import java.io.InputStream; 6 | 7 | /** 8 | * Many streams obtained over slow connection show this 9 | * problem. 10 | */ 11 | public class FlushedInputStream extends FilterInputStream { 12 | 13 | public FlushedInputStream(InputStream inputStream) { 14 | super(inputStream); 15 | } 16 | 17 | @Override 18 | public long skip(long n) throws IOException { 19 | long totalBytesSkipped = 0L; 20 | while (totalBytesSkipped < n) { 21 | long bytesSkipped = in.skip(n - totalBytesSkipped); 22 | if (bytesSkipped == 0L) { 23 | int by_te = read(); 24 | if (by_te < 0) { 25 | break; // we reached EOF 26 | } else { 27 | bytesSkipped = 1; // we read one byte 28 | } 29 | } 30 | totalBytesSkipped += bytesSkipped; 31 | } 32 | return totalBytesSkipped; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/db/table/OneToMany.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.db.table; 17 | 18 | public class OneToMany extends Property{ 19 | 20 | private Class oneClass; 21 | 22 | public Class getOneClass() { 23 | return oneClass; 24 | } 25 | 26 | public void setOneClass(Class oneClass) { 27 | this.oneClass = oneClass; 28 | } 29 | 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/db/table/ManyToOne.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.db.table; 17 | 18 | public class ManyToOne extends Property{ 19 | 20 | private Class manyClass; 21 | 22 | public Class getManyClass() { 23 | return manyClass; 24 | } 25 | 26 | public void setManyClass(Class manyClass) { 27 | this.manyClass = manyClass; 28 | } 29 | 30 | 31 | 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/gestureimageview/Animation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Jason Polites 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.rincliu.library.widget.gestureimageview; 17 | 18 | /** 19 | * @author Jason Polites 20 | * 21 | */ 22 | public interface Animation { 23 | 24 | /** 25 | * Transforms the view. 26 | * @param view 27 | * @param diffTime 28 | * @return true if this animation should remain active. False otherwise. 29 | */ 30 | public boolean update(GestureImageView view, long time); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /res/values-zh-rCN/weibo_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 注意 3 | 是否要删除这条微博? 4 | 5 | 6 | com_weibo_android 7 | 发送 8 | 拍照 9 | 关闭 10 | 新浪微博 11 | 请登录! 12 | 分享成功! 13 | 分享失败! 14 | 是否删除图片? 15 | 评论 16 | 转发 17 | 收藏 18 | 19 | 20 | 未知错误 21 | IO错误 22 | 授权已取消 23 | -------------------------------------------------------------------------------- /res/values-zh-rTW/weibo_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 注意 3 | 是否要刪除這條微博? 4 | 5 | 6 | com_weibo_android 7 | 發送 8 | 拍照 9 | 關閉 10 | 新浪微博 11 | 請登錄! 12 | 分享成功! 13 | 分享失敗! 14 | 是否刪除圖片? 15 | 評論 16 | 轉發 17 | 收藏 18 | 19 | 20 | 未知錯誤 21 | IO錯誤 22 | 授權已取消 23 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/annotation/sqlite/Table.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.annotation.sqlite; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | @Target(ElementType.TYPE) 24 | @Retention(RetentionPolicy.RUNTIME) 25 | public @interface Table { 26 | public String name(); 27 | } -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/annotation/sqlite/Transient.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.annotation.sqlite; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | 24 | @Target(ElementType.FIELD) 25 | @Retention(RetentionPolicy.RUNTIME) 26 | public @interface Transient { 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/annotation/sqlite/ManyToOne.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.annotation.sqlite; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | @Target(ElementType.FIELD) 24 | @Retention(RetentionPolicy.RUNTIME) 25 | public @interface ManyToOne { 26 | public String column() default ""; 27 | } 28 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/annotation/sqlite/OneToMany.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.annotation.sqlite; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | @Target(ElementType.FIELD) 24 | @Retention(RetentionPolicy.RUNTIME) 25 | public @interface OneToMany { 26 | 27 | public String manyColumn(); 28 | } 29 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/db/sqlite/SqlInfo.java: -------------------------------------------------------------------------------- 1 | package com.rincliu.library.common.persistence.afinal.db.sqlite; 2 | 3 | import java.util.LinkedList; 4 | 5 | public class SqlInfo { 6 | 7 | private String sql; 8 | private LinkedList bindArgs; 9 | 10 | public String getSql() { 11 | return sql; 12 | } 13 | public void setSql(String sql) { 14 | this.sql = sql; 15 | } 16 | 17 | public LinkedList getBindArgs() { 18 | return bindArgs; 19 | } 20 | public void setBindArgs(LinkedList bindArgs) { 21 | this.bindArgs = bindArgs; 22 | } 23 | 24 | public Object[] getBindArgsAsArray() { 25 | if(bindArgs!=null) 26 | return bindArgs.toArray(); 27 | return null; 28 | } 29 | 30 | public String[] getBindArgsAsStringArray() { 31 | if(bindArgs!=null){ 32 | String[] strings = new String[bindArgs.size()]; 33 | for(int i = 0;i(); 44 | 45 | bindArgs.add(obj); 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/image/core/assist/QueueProcessingType.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2011-2013 Sergey Tarasevich 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.rincliu.library.common.persistence.image.core.assist; 17 | 18 | /** 19 | * Queue processing type which will be used for display task processing 20 | * 21 | * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) 22 | * @since 1.6.3 23 | */ 24 | public enum QueueProcessingType { 25 | FIFO, LIFO 26 | } 27 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/annotation/view/Select.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.annotation.view; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | @Target(ElementType.FIELD) 24 | @Retention(RetentionPolicy.RUNTIME) 25 | public @interface Select { 26 | 27 | public String selected(); 28 | public String noSelected() default ""; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/exception/ViewException.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.exception; 17 | 18 | 19 | public class ViewException extends AfinalException { 20 | private static final long serialVersionUID = 1L; 21 | private String strMsg = null; 22 | public ViewException(String strExce) { 23 | strMsg = strExce; 24 | } 25 | 26 | public void printStackTrace() { 27 | if(strMsg!=null) 28 | System.err.println(strMsg); 29 | 30 | super.printStackTrace(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/annotation/sqlite/Property.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.annotation.sqlite; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | @Target(ElementType.FIELD) 24 | @Retention(RetentionPolicy.RUNTIME) 25 | public @interface Property { 26 | public String column() default ""; 27 | public String defaultValue() default ""; 28 | } 29 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/exception/DbException.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.exception; 17 | 18 | public class DbException extends AfinalException { 19 | private static final long serialVersionUID = 1L; 20 | private String strMsg = null; 21 | public DbException() {} 22 | 23 | public DbException(String strMsg) { 24 | this.strMsg = strMsg; 25 | } 26 | 27 | public void printStackTrace() { 28 | if(strMsg!=null) 29 | System.err.println(strMsg); 30 | 31 | super.printStackTrace(); 32 | } 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /res/values/weibo_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Attention 3 | Are yout sure to delete all? 4 | OK 5 | Cancel 6 | com_weibo_android 7 | Send 8 | Photo 9 | Close 10 | Weibo 11 | Please login! 12 | Send success. 13 | Send failed. 14 | Are you sure to delete photo? 15 | Comment 16 | Forward 17 | Favourite 18 | 19 | 20 | Unknown error. 21 | IO error. 22 | Auth canceled. 23 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/image/cache/disc/naming/FileNameGenerator.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2011-2013 Sergey Tarasevich 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.rincliu.library.common.persistence.image.cache.disc.naming; 17 | 18 | /** 19 | * Generates names for files at disc cache 20 | * 21 | * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) 22 | * @since 1.3.1 23 | */ 24 | public interface FileNameGenerator { 25 | 26 | /** Generates unique file name for image defined by URI */ 27 | public abstract String generate(String imageUri); 28 | } 29 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/zxing/view/ViewfinderResultPointCallback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 ZXing authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.rincliu.library.common.persistence.zxing.view; 18 | 19 | import com.google.zxing.ResultPoint; 20 | import com.google.zxing.ResultPointCallback; 21 | 22 | public final class ViewfinderResultPointCallback implements ResultPointCallback { 23 | 24 | private final ViewfinderView viewfinderView; 25 | 26 | public ViewfinderResultPointCallback(ViewfinderView viewfinderView) { 27 | this.viewfinderView = viewfinderView; 28 | } 29 | 30 | public void foundPossibleResultPoint(ResultPoint point) { 31 | viewfinderView.addPossibleResultPoint(point); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/annotation/sqlite/Id.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.annotation.sqlite; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | /** 23 | * @title Id主键配置 24 | * @description 不配置的时候默认找类的id或_id字段作为主键,column不配置的是默认为字段名 25 | * @author michael Young (www.YangFuhai.com) 26 | * @version 1.0 27 | * @created 2012-10-31 28 | */ 29 | @Target(ElementType.FIELD) 30 | @Retention(RetentionPolicy.RUNTIME) 31 | public @interface Id { 32 | public String column() default ""; 33 | } 34 | -------------------------------------------------------------------------------- /res/layout/zxing_scan.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | 16 | 17 | 21 | 22 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/image/cache/disc/naming/HashCodeFileNameGenerator.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2011-2013 Sergey Tarasevich 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.rincliu.library.common.persistence.image.cache.disc.naming; 17 | 18 | /** 19 | * Names image file as image URI {@linkplain String#hashCode() hashcode} 20 | * 21 | * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) 22 | * @since 1.3.1 23 | */ 24 | public class HashCodeFileNameGenerator implements FileNameGenerator { 25 | @Override 26 | public String generate(String imageUri) { 27 | return String.valueOf(imageUri.hashCode()); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /res/layout/dialog_loading.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 18 | 33 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/annotation/view/ViewInject.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.annotation.view; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | @Target(ElementType.FIELD) 24 | @Retention(RetentionPolicy.RUNTIME) 25 | public @interface ViewInject { 26 | public int id(); 27 | public String click() default ""; 28 | public String longClick() default ""; 29 | public String itemClick() default ""; 30 | public String itemLongClick() default ""; 31 | public Select select() default @Select(selected="") ; 32 | } 33 | -------------------------------------------------------------------------------- /res/layout/umeng_fb_conversations.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 7 | 8 | 12 | 13 | 20 | 21 | 22 | 26 | -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/gestureimageview/FlingListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Jason Polites 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.rincliu.library.widget.gestureimageview; 17 | 18 | import android.view.GestureDetector.SimpleOnGestureListener; 19 | import android.view.MotionEvent; 20 | 21 | 22 | /** 23 | * @author Jason Polites 24 | * 25 | */ 26 | public class FlingListener extends SimpleOnGestureListener { 27 | 28 | private float velocityX; 29 | private float velocityY; 30 | 31 | @Override 32 | public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { 33 | this.velocityX = velocityX; 34 | this.velocityY = velocityY; 35 | return true; 36 | } 37 | 38 | public float getVelocityX() { 39 | return velocityX; 40 | } 41 | 42 | public float getVelocityY() { 43 | return velocityY; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /res/values/listpager_attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/image/core/decode/ImageDecoder.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2013 Sergey Tarasevich 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.rincliu.library.common.persistence.image.core.decode; 17 | 18 | import android.graphics.Bitmap; 19 | 20 | import java.io.IOException; 21 | 22 | /** 23 | * Provide decoding image to result {@link Bitmap}. 24 | * 25 | * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) 26 | * @see ImageDecodingInfo 27 | * @since 1.8.3 28 | */ 29 | public interface ImageDecoder { 30 | 31 | /** 32 | * Decodes image to {@link Bitmap} according target size and other parameters. 33 | * 34 | * @param imageDecodingInfo 35 | * @return 36 | * @throws IOException 37 | */ 38 | Bitmap decode(ImageDecodingInfo imageDecodingInfo) throws IOException; 39 | } 40 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/image/core/display/SimpleBitmapDisplayer.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2011-2013 Sergey Tarasevich 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.rincliu.library.common.persistence.image.core.display; 17 | 18 | import android.graphics.Bitmap; 19 | import android.widget.ImageView; 20 | 21 | import com.rincliu.library.common.persistence.image.core.assist.LoadedFrom; 22 | 23 | /** 24 | * Just displays {@link Bitmap} in {@link ImageView} 25 | * 26 | * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) 27 | * @since 1.5.6 28 | */ 29 | public final class SimpleBitmapDisplayer implements BitmapDisplayer { 30 | @Override 31 | public Bitmap display(Bitmap bitmap, ImageView imageView, LoadedFrom loadedFrom) { 32 | imageView.setImageBitmap(bitmap); 33 | return bitmap; 34 | } 35 | } -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/zxing/decoding/FinishListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 ZXing authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.rincliu.library.common.persistence.zxing.decoding; 18 | 19 | import android.app.Activity; 20 | import android.content.DialogInterface; 21 | 22 | /** 23 | * Simple listener used to exit the app in a few cases. 24 | * 25 | */ 26 | public final class FinishListener 27 | implements DialogInterface.OnClickListener, DialogInterface.OnCancelListener, Runnable { 28 | 29 | private final Activity activityToFinish; 30 | 31 | public FinishListener(Activity activityToFinish) { 32 | this.activityToFinish = activityToFinish; 33 | } 34 | 35 | public void onCancel(DialogInterface dialogInterface) { 36 | run(); 37 | } 38 | 39 | public void onClick(DialogInterface dialogInterface, int i) { 40 | run(); 41 | } 42 | 43 | public void run() { 44 | activityToFinish.finish(); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/db/table/KeyValue.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.db.table; 17 | 18 | import java.text.SimpleDateFormat; 19 | 20 | public class KeyValue { 21 | private String key; 22 | private Object value; 23 | 24 | public KeyValue(String key, Object value) { 25 | this.key = key; 26 | this.value = value; 27 | } 28 | 29 | 30 | public KeyValue() {} 31 | 32 | 33 | public String getKey() { 34 | return key; 35 | } 36 | public void setKey(String key) { 37 | this.key = key; 38 | } 39 | private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 40 | public Object getValue() { 41 | if(value instanceof java.util.Date || value instanceof java.sql.Date){ 42 | return sdf.format(value); 43 | } 44 | return value; 45 | } 46 | public void setValue(Object value) { 47 | this.value = value; 48 | } 49 | 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/pulltorefresh/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.rincliu.library.widget.pulltorefresh; 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 | } -------------------------------------------------------------------------------- /src/com/rincliu/library/common/reference/push/RLNotificationEntity.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2013-2014, Rinc Liu (http://rincliu.com). 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.rincliu.library.common.reference.push; 17 | 18 | import java.io.Serializable; 19 | 20 | public class RLNotificationEntity implements Serializable{ 21 | private static final long serialVersionUID = 5874890670519802880L; 22 | private int id; 23 | private String title; 24 | private String content; 25 | private String extra; 26 | public int getId() { 27 | return id; 28 | } 29 | public void setId(int id) { 30 | this.id = id; 31 | } 32 | public String getTitle() { 33 | return title; 34 | } 35 | public void setTitle(String title) { 36 | this.title = title; 37 | } 38 | public String getContent() { 39 | return content; 40 | } 41 | public void setContent(String content) { 42 | this.content = content; 43 | } 44 | public String getExtra() { 45 | return extra; 46 | } 47 | public void setExtra(String extra) { 48 | this.extra = extra; 49 | } 50 | } -------------------------------------------------------------------------------- /res/layout/umeng_fb_conversation_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 9 | 13 | 17 | 23 | 24 | 27 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/image/cache/memory/impl/WeakMemoryCache.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2011-2013 Sergey Tarasevich 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.rincliu.library.common.persistence.image.cache.memory.impl; 17 | 18 | import android.graphics.Bitmap; 19 | 20 | import com.rincliu.library.common.persistence.image.cache.memory.BaseMemoryCache; 21 | 22 | import java.lang.ref.Reference; 23 | import java.lang.ref.WeakReference; 24 | 25 | /** 26 | * Memory cache with {@linkplain WeakReference weak references} to {@linkplain android.graphics.Bitmap bitmaps}
27 | *
28 | * NOTE: This cache uses only weak references for stored Bitmaps. 29 | * 30 | * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) 31 | * @since 1.5.3 32 | */ 33 | public class WeakMemoryCache extends BaseMemoryCache { 34 | @Override 35 | protected Reference createReference(Bitmap value) { 36 | return new WeakReference(value); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/image/cache/memory/MemoryCacheAware.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2011-2013 Sergey Tarasevich 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.rincliu.library.common.persistence.image.cache.memory; 17 | 18 | import java.util.Collection; 19 | 20 | /** 21 | * Interface for memory cache 22 | * 23 | * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) 24 | * @since 1.0.0 25 | */ 26 | public interface MemoryCacheAware { 27 | /** 28 | * Puts value into cache by key 29 | * 30 | * @return true - if value was put into cache successfully, false - if value was not put into 31 | * cache 32 | */ 33 | boolean put(K key, V value); 34 | 35 | /** Returns value by key. If there is no value for key then null will be returned. */ 36 | V get(K key); 37 | 38 | /** Removes item by key */ 39 | void remove(K key); 40 | 41 | /** Returns all keys of cache */ 42 | Collection keys(); 43 | 44 | /** Remove all items from cache */ 45 | void clear(); 46 | } 47 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/image/core/assist/deque/LIFOLinkedBlockingDeque.java: -------------------------------------------------------------------------------- 1 | package com.rincliu.library.common.persistence.image.core.assist.deque; 2 | 3 | import java.util.NoSuchElementException; 4 | 5 | /** 6 | * {@link LinkedBlockingDeque} using LIFO algorithm 7 | * 8 | * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) 9 | * @since 1.6.3 10 | */ 11 | public class LIFOLinkedBlockingDeque extends LinkedBlockingDeque { 12 | 13 | private static final long serialVersionUID = -4114786347960826192L; 14 | 15 | /** 16 | * Inserts the specified element at the front of this deque if it is possible to do so immediately without violating 17 | * capacity restrictions, returning true upon success and false if no space is currently 18 | * available. When using a capacity-restricted deque, this method is generally preferable to the {@link #addFirst 19 | * addFirst} method, which can fail to insert an element only by throwing an exception. 20 | * 21 | * @param e 22 | * the element to add 23 | * @throws ClassCastException 24 | * {@inheritDoc} 25 | * @throws NullPointerException 26 | * if the specified element is null 27 | * @throws IllegalArgumentException 28 | * {@inheritDoc} 29 | */ 30 | @Override 31 | public boolean offer(T e) { 32 | return super.offerFirst(e); 33 | } 34 | 35 | /** 36 | * Retrieves and removes the first element of this deque. This method differs from {@link #pollFirst pollFirst} only 37 | * in that it throws an exception if this deque is empty. 38 | * 39 | * @return the head of this deque 40 | * @throws NoSuchElementException 41 | * if this deque is empty 42 | */ 43 | @Override 44 | public T remove() { 45 | return super.removeFirst(); 46 | } 47 | } -------------------------------------------------------------------------------- /res/values/menudrawer_attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/image/utils/IoUtils.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2011-2013 Sergey Tarasevich 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.rincliu.library.common.persistence.image.utils; 17 | 18 | import java.io.Closeable; 19 | import java.io.IOException; 20 | import java.io.InputStream; 21 | import java.io.OutputStream; 22 | 23 | /** 24 | * Provides I/O operations 25 | * 26 | * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) 27 | * @since 1.0.0 28 | */ 29 | public final class IoUtils { 30 | 31 | private static final int BUFFER_SIZE = 32 * 1024; // 32 KB 32 | 33 | private IoUtils() { 34 | } 35 | 36 | public static void copyStream(InputStream is, OutputStream os) throws IOException { 37 | byte[] bytes = new byte[BUFFER_SIZE]; 38 | while (true) { 39 | int count = is.read(bytes, 0, BUFFER_SIZE); 40 | if (count == -1) { 41 | break; 42 | } 43 | os.write(bytes, 0, count); 44 | } 45 | } 46 | 47 | public static void closeSilently(Closeable closeable) { 48 | try { 49 | closeable.close(); 50 | } catch (Exception e) { 51 | // Do nothing 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /res/values/viewflow_attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/zxing/camera/AutoFocusCallback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 ZXing authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.rincliu.library.common.persistence.zxing.camera; 18 | 19 | import android.hardware.Camera; 20 | import android.os.Handler; 21 | import android.os.Message; 22 | import android.util.Log; 23 | 24 | final class AutoFocusCallback implements Camera.AutoFocusCallback { 25 | 26 | private static final String TAG = AutoFocusCallback.class.getSimpleName(); 27 | 28 | private static final long AUTOFOCUS_INTERVAL_MS = 1500L; 29 | 30 | private Handler autoFocusHandler; 31 | private int autoFocusMessage; 32 | 33 | void setHandler(Handler autoFocusHandler, int autoFocusMessage) { 34 | this.autoFocusHandler = autoFocusHandler; 35 | this.autoFocusMessage = autoFocusMessage; 36 | } 37 | 38 | public void onAutoFocus(boolean success, Camera camera) { 39 | if (autoFocusHandler != null) { 40 | Message message = autoFocusHandler.obtainMessage(autoFocusMessage, success); 41 | autoFocusHandler.sendMessageDelayed(message, AUTOFOCUS_INTERVAL_MS); 42 | autoFocusHandler = null; 43 | } else { 44 | Log.d(TAG, "Got auto-focus callback, but no handler for it"); 45 | } 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/afinal/db/sqlite/DbModel.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 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.rincliu.library.common.persistence.afinal.db.sqlite; 17 | 18 | import java.util.HashMap; 19 | 20 | public class DbModel { 21 | 22 | private HashMap dataMap = new HashMap(); 23 | 24 | public Object get(String column){ 25 | return dataMap.get(column); 26 | } 27 | 28 | public String getString(String column){ 29 | return String.valueOf(get(column)); 30 | } 31 | 32 | public int getInt(String column){ 33 | return Integer.valueOf(getString(column)); 34 | } 35 | 36 | public boolean getBoolean(String column){ 37 | return Boolean.valueOf(getString(column)); 38 | } 39 | 40 | public double getDouble(String column){ 41 | return Double.valueOf(getString(column)); 42 | } 43 | 44 | public float getFloat(String column){ 45 | return Float.valueOf(getString(column)); 46 | } 47 | 48 | public long getLong(String column){ 49 | return Long.valueOf(getString(column)); 50 | } 51 | 52 | public void set(String key,Object value){ 53 | dataMap.put(key, value); 54 | } 55 | 56 | public HashMap getDataMap(){ 57 | return dataMap; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/dialog/RLLoadingDialog.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2013-2014, Rinc Liu (http://rincliu.com). 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.rincliu.library.widget.dialog; 17 | 18 | import com.rincliu.library.R; 19 | import android.content.Context; 20 | import android.view.LayoutInflater; 21 | import android.view.View; 22 | import android.widget.TextView; 23 | 24 | public class RLLoadingDialog extends RLDialog{ 25 | private Context context; 26 | private TextView tv_msg; 27 | 28 | /** 29 | * 30 | * @param context 31 | */ 32 | public RLLoadingDialog(Context context) { 33 | super(context); 34 | this.context=context; 35 | super.createView(); 36 | super.setCanceledOnTouchOutside(false); 37 | } 38 | 39 | @Override 40 | protected View getView() { 41 | View view=LayoutInflater.from(context).inflate(R.layout.dialog_loading, null); 42 | tv_msg=(TextView) view.findViewById(R.id.tv_msg); 43 | return view; 44 | } 45 | 46 | /** 47 | * 48 | * @param msg 49 | */ 50 | public void setMessage(String msg){ 51 | tv_msg.setVisibility(View.VISIBLE); 52 | tv_msg.setText(msg); 53 | } 54 | 55 | /** 56 | * 57 | * @param msgStrResId 58 | */ 59 | public void setMessage(int msgStrResId){ 60 | setMessage(context.getString(msgStrResId)); 61 | } 62 | } -------------------------------------------------------------------------------- /src/com/rincliu/library/widget/pulltorefresh/ILoadingLayout.java: -------------------------------------------------------------------------------- 1 | package com.rincliu.library.widget.pulltorefresh; 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 | } -------------------------------------------------------------------------------- /src/com/rincliu/library/common/persistence/image/cache/disc/DiscCacheAware.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright 2011-2013 Sergey Tarasevich 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.rincliu.library.common.persistence.image.cache.disc; 17 | 18 | import java.io.File; 19 | 20 | /** 21 | * Interface for disc cache 22 | * 23 | * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) 24 | * @since 1.0.0 25 | */ 26 | public interface DiscCacheAware { 27 | /** 28 | * This method must not to save file on file system in fact. It is called after image was cached in cache directory 29 | * and it was decoded to bitmap in memory. Such order is required to prevent possible deletion of file after it was 30 | * cached on disc and before it was tried to decode to bitmap. 31 | */ 32 | void put(String key, File file); 33 | 34 | /** 35 | * Returns {@linkplain File file object} appropriate incoming key.
36 | * NOTE: Must not to return a null. Method must return specific {@linkplain File file object} for 37 | * incoming key whether file exists or not. 38 | */ 39 | File get(String key); 40 | 41 | /** Clears cache directory */ 42 | void clear(); 43 | } 44 | -------------------------------------------------------------------------------- /res/layout/dialog_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 16 | 20 | 32 | 37 |