Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sobot_module_Dev
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sobot_android
Sobot_module_Dev
Commits
d0ef2237
Commit
d0ef2237
authored
Dec 11, 2023
by
zhengnw@sobot.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android x 分支
parent
fffb7f32
Hide whitespace changes
Inline
Side-by-side
Showing
64 changed files
with
179 additions
and
163 deletions
+179
-163
build.gradle
app/build.gradle
+7
-6
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+1
-0
MyApp.java
app/src/main/java/com/sobot/moduletest/MyApp.java
+1
-1
activity_main.xml
app/src/main/res/layout/activity_main.xml
+1
-1
gradle.properties
gradle.properties
+2
-0
build.gradle
sobot_common/build.gradle
+3
-7
sobot-common-publish-mavencentral.gradle
sobot_common/sobot-common-publish-mavencentral.gradle
+1
-2
build.gradle
sobot_gson/build.gradle
+1
-1
build.gradle
sobot_network/build.gradle
+1
-2
build.gradle
sobot_pictureframe/build.gradle
+2
-2
sobot-picture-publish-mavencentral.gradle
sobot_pictureframe/sobot-picture-publish-mavencentral.gradle
+1
-2
SobotFrescoImageLoader.java
...n/java/com/sobot/pictureframe/SobotFrescoImageLoader.java
+2
-2
SobotGlideImageLoader.java
...in/java/com/sobot/pictureframe/SobotGlideImageLoader.java
+1
-1
SobotUILImageLoader.java
...main/java/com/sobot/pictureframe/SobotUILImageLoader.java
+1
-1
build.gradle
sobot_utils/build.gradle
+1
-1
build.gradle
sobot_widget/build.gradle
+3
-3
sobot-widget-publish-mavencentral.gradle
sobot_widget/sobot-widget-publish-mavencentral.gradle
+1
-4
ExternalLiveData.java
...et/src/main/java/androidx/lifecycle/ExternalLiveData.java
+10
-6
SobotPhotoView.java
...java/com/sobot/widget/image/photoview/SobotPhotoView.java
+1
-1
SobotLiveEventBus.java
.../java/com/sobot/widget/livedatabus/SobotLiveEventBus.java
+1
-1
Config.java
...c/main/java/com/sobot/widget/livedatabus/core/Config.java
+1
-1
LiveEventBusCore.java
...a/com/sobot/widget/livedatabus/core/LiveEventBusCore.java
+25
-9
Observable.java
...in/java/com/sobot/widget/livedatabus/core/Observable.java
+3
-3
AppUtils.java
...ain/java/com/sobot/widget/livedatabus/utils/AppUtils.java
+1
-1
SobotLoadingLayout.java
...ain/java/com/sobot/widget/loading/SobotLoadingLayout.java
+2
-2
SobotRefreshLayout.java
...a/com/sobot/widget/refresh/layout/SobotRefreshLayout.java
+9
-9
RefreshComponent.java
...com/sobot/widget/refresh/layout/api/RefreshComponent.java
+6
-6
RefreshContent.java
...a/com/sobot/widget/refresh/layout/api/RefreshContent.java
+1
-1
RefreshFooter.java
...va/com/sobot/widget/refresh/layout/api/RefreshFooter.java
+4
-4
RefreshKernel.java
...va/com/sobot/widget/refresh/layout/api/RefreshKernel.java
+5
-3
RefreshLayout.java
...va/com/sobot/widget/refresh/layout/api/RefreshLayout.java
+6
-6
ProgressDrawable.java
...obot/widget/refresh/layout/drawable/ProgressDrawable.java
+1
-1
ArrowDrawable.java
...com/sobot/widget/refresh/layout/footer/ArrowDrawable.java
+1
-1
ClassicsAbstract.java
.../sobot/widget/refresh/layout/footer/ClassicsAbstract.java
+5
-5
ClassicsFooter.java
...om/sobot/widget/refresh/layout/footer/ClassicsFooter.java
+2
-2
ClassicsHeader.java
...om/sobot/widget/refresh/layout/header/ClassicsHeader.java
+5
-5
DefaultRefreshFooterCreator.java
.../refresh/layout/listener/DefaultRefreshFooterCreator.java
+1
-1
DefaultRefreshHeaderCreator.java
.../refresh/layout/listener/DefaultRefreshHeaderCreator.java
+1
-1
DefaultRefreshInitializer.java
...et/refresh/layout/listener/DefaultRefreshInitializer.java
+1
-1
OnLoadMoreListener.java
...ot/widget/refresh/layout/listener/OnLoadMoreListener.java
+1
-1
OnRefreshListener.java
...bot/widget/refresh/layout/listener/OnRefreshListener.java
+1
-1
OnStateChangedListener.java
...idget/refresh/layout/listener/OnStateChangedListener.java
+5
-5
SimpleComponent.java
...m/sobot/widget/refresh/layout/simple/SimpleComponent.java
+3
-3
SimpleMultiListener.java
...bot/widget/refresh/layout/simple/SimpleMultiListener.java
+1
-1
SmartUtil.java
.../java/com/sobot/widget/refresh/layout/util/SmartUtil.java
+7
-7
RefreshContentWrapper.java
.../widget/refresh/layout/wrapper/RefreshContentWrapper.java
+4
-4
SobotBaseActivity.java
...main/java/com/sobot/widget/ui/base/SobotBaseActivity.java
+4
-4
BaseRecyclerAdapter.java
...com/sobot/widget/ui/calenderview/BaseRecyclerAdapter.java
+2
-2
BaseView.java
.../main/java/com/sobot/widget/ui/calenderview/BaseView.java
+1
-1
CalendarLayout.java
...java/com/sobot/widget/ui/calenderview/CalendarLayout.java
+2
-2
CalendarView.java
...n/java/com/sobot/widget/ui/calenderview/CalendarView.java
+3
-3
CalendarViewDelegate.java
...om/sobot/widget/ui/calenderview/CalendarViewDelegate.java
+1
-1
MonthViewPager.java
...java/com/sobot/widget/ui/calenderview/MonthViewPager.java
+3
-3
WeekViewPager.java
.../java/com/sobot/widget/ui/calenderview/WeekViewPager.java
+3
-3
YearRecyclerView.java
...va/com/sobot/widget/ui/calenderview/YearRecyclerView.java
+3
-3
YearView.java
.../main/java/com/sobot/widget/ui/calenderview/YearView.java
+1
-1
YearViewAdapter.java
...ava/com/sobot/widget/ui/calenderview/YearViewAdapter.java
+1
-1
YearViewPager.java
.../java/com/sobot/widget/ui/calenderview/YearViewPager.java
+3
-3
SobotFileProvider.java
.../java/com/sobot/widget/ui/provider/SobotFileProvider.java
+1
-1
EmailSpan.java
...get/src/main/java/com/sobot/widget/ui/rich/EmailSpan.java
+1
-1
SobotStatusBarUtils.java
...va/com/sobot/widget/ui/statusbar/SobotStatusBarUtils.java
+2
-2
StatusBarView.java
...ain/java/com/sobot/widget/ui/statusbar/StatusBarView.java
+1
-1
SobotResourceUtils.java
...in/java/com/sobot/widget/ui/utils/SobotResourceUtils.java
+1
-1
SobotWidgetUtils.java
...main/java/com/sobot/widget/ui/utils/SobotWidgetUtils.java
+2
-2
No files found.
app/build.gradle
View file @
d0ef2237
...
@@ -3,13 +3,13 @@ plugins {
...
@@ -3,13 +3,13 @@ plugins {
}
}
android
{
android
{
compileSdkVersion
29
compileSdkVersion
34
buildToolsVersion
"
29
.0.0"
buildToolsVersion
"
34
.0.0"
defaultConfig
{
defaultConfig
{
applicationId
"com.sobot.moduletest"
applicationId
"com.sobot.moduletest"
minSdkVersion
17
minSdkVersion
17
targetSdkVersion
29
targetSdkVersion
34
versionCode
1
versionCode
1
versionName
"1.0"
versionName
"1.0"
//添加此行
//添加此行
...
@@ -30,8 +30,8 @@ android {
...
@@ -30,8 +30,8 @@ android {
dependencies
{
dependencies
{
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
implementation
'
com.android.support:appcompat-v7:28
.0.0'
implementation
'
androidx.appcompat:appcompat:1
.0.0'
implementation
'
com.android.support:recyclerview-v7:28
.0.0'
implementation
'
androidx.recyclerview:recyclerview:1
.0.0'
implementation
project
(
':sobot_common'
)
implementation
project
(
':sobot_common'
)
implementation
project
(
':sobot_widget'
)
implementation
project
(
':sobot_widget'
)
...
@@ -47,6 +47,6 @@ dependencies {
...
@@ -47,6 +47,6 @@ dependencies {
implementation
'com.squareup.okhttp3:okhttp:4.4.0'
implementation
'com.squareup.okhttp3:okhttp:4.4.0'
//添加此行
//添加此行
implementation
'
com.android.support:multidex:1.0.3
'
implementation
'
androidx.multidex:multidex:2.0.0
'
}
}
\ No newline at end of file
app/src/main/AndroidManifest.xml
View file @
d0ef2237
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
android:supportsRtl=
"true"
>
android:supportsRtl=
"true"
>
<activity
<activity
android:name=
".MainActivity"
android:name=
".MainActivity"
android:exported=
"true"
android:configChanges=
"orientation|keyboardHidden|screenSize|touchscreen|navigation|locale|fontScale|uiMode|screenLayout|smallestScreenSize"
>
android:configChanges=
"orientation|keyboardHidden|screenSize|touchscreen|navigation|locale|fontScale|uiMode|screenLayout|smallestScreenSize"
>
<intent-filter>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<action
android:name=
"android.intent.action.MAIN"
/>
...
...
app/src/main/java/com/sobot/moduletest/MyApp.java
View file @
d0ef2237
package
com
.
sobot
.
moduletest
;
package
com
.
sobot
.
moduletest
;
import
android
.support
.multidex.MultiDexApplication
;
import
android
x
.multidex.MultiDexApplication
;
import
com.sobot.common.utils.SobotCommonApi
;
import
com.sobot.common.utils.SobotCommonApi
;
import
com.sobot.widget.SobotWidgetApi
;
import
com.sobot.widget.SobotWidgetApi
;
...
...
app/src/main/res/layout/activity_main.xml
View file @
d0ef2237
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<android
.support.v7
.widget.RecyclerView
<android
x.recyclerview
.widget.RecyclerView
android:id=
"@+id/recyclerView"
android:id=
"@+id/recyclerView"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
...
...
gradle.properties
View file @
d0ef2237
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
# http://www.gradle.org/docs/current/userguide/build_environment.html
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# The setting is particularly useful for tweaking memory settings.
android.enableJetifier
=
true
android.useAndroidX
=
true
org.gradle.jvmargs
=
-Xmx2048m -Dfile.encoding=UTF-8
org.gradle.jvmargs
=
-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# This option should only be used with decoupled projects. More details, visit
...
...
sobot_common/build.gradle
View file @
d0ef2237
...
@@ -3,7 +3,7 @@ plugins {
...
@@ -3,7 +3,7 @@ plugins {
}
}
android
{
android
{
compileSdkVersion
29
compileSdkVersion
34
defaultConfig
{
defaultConfig
{
minSdkVersion
14
minSdkVersion
14
...
@@ -32,15 +32,11 @@ dependencies {
...
@@ -32,15 +32,11 @@ dependencies {
// api project(':sobot_network')
// api project(':sobot_network')
// api project(':sobot_gson')
// api project(':sobot_gson')
api
'com.sobot.library:utils:1.1.3'
api
'com.sobot.library:utils:1.1.3'
api
'com.sobot.library:picture:1.1.5'
api
'com.sobot.library:picture
_x
:1.1.5'
api
'com.sobot.library:net:1.2.0'
api
'com.sobot.library:net:1.2.0'
api
'com.sobot.library:gson:1.1.1'
api
'com.sobot.library:gson:1.1.1'
// api 'com.sobot.library:utils:1.1.3'
// api 'com.sobot.library:picture_x:1.1.5'
// api 'com.sobot.library:net:1.2.0'
// api 'com.sobot.library:gson:1.1.1'
}
}
...
...
sobot_common/sobot-common-publish-mavencentral.gradle
View file @
d0ef2237
...
@@ -11,8 +11,7 @@ task androidSourcesJar(type: Jar) {
...
@@ -11,8 +11,7 @@ task androidSourcesJar(type: Jar) {
ext
{
ext
{
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'sobotcommon'
//项目名
PUBLISH_ARTIFACT_ID
=
'sobotcommon_x'
//项目名
// PUBLISH_ARTIFACT_ID = 'sobotcommon_x' //项目名
PUBLISH_VERSION
=
'1.4.3'
//版本号
PUBLISH_VERSION
=
'1.4.3'
//版本号
}
}
...
...
sobot_gson/build.gradle
View file @
d0ef2237
...
@@ -3,7 +3,7 @@ plugins {
...
@@ -3,7 +3,7 @@ plugins {
}
}
android
{
android
{
compileSdkVersion
29
compileSdkVersion
33
defaultConfig
{
defaultConfig
{
minSdkVersion
14
minSdkVersion
14
...
...
sobot_network/build.gradle
View file @
d0ef2237
apply
plugin:
'com.android.library'
apply
plugin:
'com.android.library'
android
{
android
{
buildToolsVersion
=
"29.0.3"
compileSdkVersion
=
33
compileSdkVersion
=
29
defaultConfig
{
defaultConfig
{
minSdkVersion
14
minSdkVersion
14
...
...
sobot_pictureframe/build.gradle
View file @
d0ef2237
...
@@ -3,7 +3,7 @@ plugins {
...
@@ -3,7 +3,7 @@ plugins {
}
}
android
{
android
{
compileSdkVersion
29
compileSdkVersion
33
defaultConfig
{
defaultConfig
{
minSdkVersion
14
minSdkVersion
14
...
@@ -27,7 +27,7 @@ android {
...
@@ -27,7 +27,7 @@ android {
}
}
dependencies
{
dependencies
{
compileOnly
'
com.android.support:support-v4:28
.0.0'
compileOnly
'
androidx.legacy:legacy-support-v4:1
.0.0'
compileOnly
'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compileOnly
'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compileOnly
'com.github.bumptech.glide:glide:3.8.0'
compileOnly
'com.github.bumptech.glide:glide:3.8.0'
compileOnly
'com.squareup.picasso:picasso:2.5.2'
compileOnly
'com.squareup.picasso:picasso:2.5.2'
...
...
sobot_pictureframe/sobot-picture-publish-mavencentral.gradle
View file @
d0ef2237
...
@@ -11,8 +11,7 @@ task androidSourcesJar(type: Jar) {
...
@@ -11,8 +11,7 @@ task androidSourcesJar(type: Jar) {
ext
{
ext
{
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'picture'
//项目名
PUBLISH_ARTIFACT_ID
=
'picture_x'
//项目名
//PUBLISH_ARTIFACT_ID = 'picture_x' //项目名
PUBLISH_VERSION
=
'1.1.5'
//版本号
PUBLISH_VERSION
=
'1.1.5'
//版本号
}
}
...
...
sobot_pictureframe/src/main/java/com/sobot/pictureframe/SobotFrescoImageLoader.java
View file @
d0ef2237
...
@@ -4,8 +4,8 @@ import android.content.Context;
...
@@ -4,8 +4,8 @@ import android.content.Context;
import
android.graphics.Bitmap
;
import
android.graphics.Bitmap
;
import
android.net.Uri
;
import
android.net.Uri
;
import
android.os.AsyncTask
;
import
android.os.AsyncTask
;
import
android
.support
.annotation.DrawableRes
;
import
android
x
.annotation.DrawableRes
;
import
android
.support
.annotation.Nullable
;
import
android
x
.annotation.Nullable
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
...
...
sobot_pictureframe/src/main/java/com/sobot/pictureframe/SobotGlideImageLoader.java
View file @
d0ef2237
...
@@ -2,7 +2,7 @@ package com.sobot.pictureframe;
...
@@ -2,7 +2,7 @@ package com.sobot.pictureframe;
import
android.content.Context
;
import
android.content.Context
;
import
android.graphics.Bitmap
;
import
android.graphics.Bitmap
;
import
android
.support
.annotation.DrawableRes
;
import
android
x
.annotation.DrawableRes
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
...
...
sobot_pictureframe/src/main/java/com/sobot/pictureframe/SobotUILImageLoader.java
View file @
d0ef2237
...
@@ -2,7 +2,7 @@ package com.sobot.pictureframe;
...
@@ -2,7 +2,7 @@ package com.sobot.pictureframe;
import
android.content.Context
;
import
android.content.Context
;
import
android.graphics.Bitmap
;
import
android.graphics.Bitmap
;
import
android
.support
.annotation.DrawableRes
;
import
android
x
.annotation.DrawableRes
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
...
...
sobot_utils/build.gradle
View file @
d0ef2237
...
@@ -3,7 +3,7 @@ plugins {
...
@@ -3,7 +3,7 @@ plugins {
}
}
android
{
android
{
compileSdkVersion
29
compileSdkVersion
33
defaultConfig
{
defaultConfig
{
minSdkVersion
14
minSdkVersion
14
...
...
sobot_widget/build.gradle
View file @
d0ef2237
...
@@ -3,7 +3,7 @@ plugins {
...
@@ -3,7 +3,7 @@ plugins {
}
}
android
{
android
{
compileSdkVersion
3
3
compileSdkVersion
3
4
defaultConfig
{
defaultConfig
{
minSdkVersion
17
minSdkVersion
17
...
@@ -12,8 +12,8 @@ android {
...
@@ -12,8 +12,8 @@ android {
dependencies
{
dependencies
{
api
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
api
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
compileOnly
'
com.android.support:appcompat-v7:28
.0.0'
compileOnly
'
androidx.appcompat:appcompat:1
.0.0'
compileOnly
'
com.android.support:recyclerview-v7:28
.0.0'
compileOnly
'
androidx.recyclerview:recyclerview:1
.0.0'
api
'com.sobot.library:utils:1.1.3'
api
'com.sobot.library:utils:1.1.3'
}
}
...
...
sobot_widget/sobot-widget-publish-mavencentral.gradle
View file @
d0ef2237
...
@@ -11,14 +11,11 @@ task androidSourcesJar(type: Jar) {
...
@@ -11,14 +11,11 @@ task androidSourcesJar(type: Jar) {
ext
{
ext
{
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'widget'
//项目名
PUBLISH_ARTIFACT_ID
=
'widget_x'
//项目名
// PUBLISH_ARTIFACT_ID = 'widget_x' //项目名
PUBLISH_VERSION
=
'1.1.3'
//版本号
PUBLISH_VERSION
=
'1.1.3'
//版本号
}
}
ext
[
"signing.keyId"
]
=
''
ext
[
"signing.keyId"
]
=
''
ext
[
"signing.password"
]
=
''
ext
[
"signing.password"
]
=
''
ext
[
"signing.secretKeyRingFile"
]
=
''
ext
[
"signing.secretKeyRingFile"
]
=
''
...
...
sobot_widget/src/main/java/android
/arch
/lifecycle/ExternalLiveData.java
→
sobot_widget/src/main/java/android
x
/lifecycle/ExternalLiveData.java
View file @
d0ef2237
package
android
.
arch
.
lifecycle
;
package
android
x
.
lifecycle
;
import
static
android
.
arch
.
lifecycle
.
Lifecycle
.
State
.
CREATED
;
import
static
android
.
arch
.
lifecycle
.
Lifecycle
.
State
.
DESTROYED
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Method
;
import
java.lang.reflect.Method
;
import
static
androidx
.
lifecycle
.
Lifecycle
.
State
.
CREATED
;
import
static
androidx
.
lifecycle
.
Lifecycle
.
State
.
DESTROYED
;
/**
* Created by liaohailiang on 2019/3/7.
*/
public
class
ExternalLiveData
<
T
>
extends
MutableLiveData
<
T
>
{
public
class
ExternalLiveData
<
T
>
extends
MutableLiveData
<
T
>
{
public
static
final
int
START_VERSION
=
LiveData
.
START_VERSION
;
public
static
final
int
START_VERSION
=
LiveData
.
START_VERSION
;
@Override
@Override
public
void
observe
(
@NonNull
LifecycleOwner
owner
,
@NonNull
Observer
<
T
>
observer
)
{
public
void
observe
(
@NonNull
LifecycleOwner
owner
,
@NonNull
Observer
<
?
super
T
>
observer
)
{
if
(
owner
.
getLifecycle
().
getCurrentState
()
==
DESTROYED
)
{
if
(
owner
.
getLifecycle
().
getCurrentState
()
==
DESTROYED
)
{
// ignore
// ignore
return
;
return
;
...
@@ -54,7 +58,7 @@ public class ExternalLiveData<T> extends MutableLiveData<T> {
...
@@ -54,7 +58,7 @@ public class ExternalLiveData<T> extends MutableLiveData<T> {
class
ExternalLifecycleBoundObserver
extends
LifecycleBoundObserver
{
class
ExternalLifecycleBoundObserver
extends
LifecycleBoundObserver
{
ExternalLifecycleBoundObserver
(
@NonNull
LifecycleOwner
owner
,
Observer
<
T
>
observer
)
{
ExternalLifecycleBoundObserver
(
@NonNull
LifecycleOwner
owner
,
Observer
<
?
super
T
>
observer
)
{
super
(
owner
,
observer
);
super
(
owner
,
observer
);
}
}
...
...
sobot_widget/src/main/java/com/sobot/widget/image/photoview/SobotPhotoView.java
View file @
d0ef2237
...
@@ -20,7 +20,7 @@ import android.graphics.Matrix;
...
@@ -20,7 +20,7 @@ import android.graphics.Matrix;
import
android.graphics.RectF
;
import
android.graphics.RectF
;
import
android.graphics.drawable.Drawable
;
import
android.graphics.drawable.Drawable
;
import
android.net.Uri
;
import
android.net.Uri
;
import
android
.support.v7
.widget.AppCompatImageView
;
import
android
x.appcompat
.widget.AppCompatImageView
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.GestureDetector
;
import
android.view.GestureDetector
;
...
...
sobot_widget/src/main/java/com/sobot/widget/livedatabus/SobotLiveEventBus.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
livedatabus
;
package
com
.
sobot
.
widget
.
livedatabus
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
com.sobot.widget.livedatabus.core.Config
;
import
com.sobot.widget.livedatabus.core.Config
;
import
com.sobot.widget.livedatabus.core.LiveEvent
;
import
com.sobot.widget.livedatabus.core.LiveEvent
;
...
...
sobot_widget/src/main/java/com/sobot/widget/livedatabus/core/Config.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
livedatabus
.
core
;
package
com
.
sobot
.
widget
.
livedatabus
.
core
;
import
android.content.Context
;
import
android.content.Context
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
com.sobot.widget.livedatabus.logger.Logger
;
import
com.sobot.widget.livedatabus.logger.Logger
;
import
com.sobot.widget.livedatabus.utils.AppUtils
;
import
com.sobot.widget.livedatabus.utils.AppUtils
;
...
...
sobot_widget/src/main/java/com/sobot/widget/livedatabus/core/LiveEventBusCore.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
livedatabus
.
core
;
package
com
.
sobot
.
widget
.
livedatabus
.
core
;
import
static
android
.
content
.
Context
.
RECEIVER_EXPORTED
;
import
android.annotation.SuppressLint
;
import
android.app.Application
;
import
android.app.Application
;
import
android.arch.lifecycle.ExternalLiveData
;
import
android.arch.lifecycle.Lifecycle
;
import
androidx.lifecycle.ExternalLiveData
;
import
android.arch.lifecycle.LifecycleOwner
;
import
androidx.lifecycle.Lifecycle
;
import
android.arch.lifecycle.LiveData
;
import
androidx.lifecycle.LifecycleOwner
;
import
android.arch.lifecycle.Observer
;
import
androidx.lifecycle.LiveData
;
import
androidx.lifecycle.Observer
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.content.IntentFilter
;
import
android.content.IntentFilter
;
import
android.os.Build
;
import
android.os.Build
;
import
android.os.Handler
;
import
android.os.Handler
;
import
android.os.Looper
;
import
android.os.Looper
;
import
android.support.annotation.MainThread
;
import
android.support.annotation.NonNull
;
import
androidx.annotation.MainThread
;
import
android.support.annotation.Nullable
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.Nullable
;
import
com.sobot.widget.livedatabus.ipc.consts.IpcConst
;
import
com.sobot.widget.livedatabus.ipc.consts.IpcConst
;
import
com.sobot.widget.livedatabus.ipc.core.ProcessorManager
;
import
com.sobot.widget.livedatabus.ipc.core.ProcessorManager
;
...
@@ -94,6 +101,7 @@ public final class LiveEventBusCore {
...
@@ -94,6 +101,7 @@ public final class LiveEventBusCore {
* first of all, call config to get the Config instance
* first of all, call config to get the Config instance
* then, call the method of Config to config LiveEventBus
* then, call the method of Config to config LiveEventBus
* call this method in Application.onCreate
* call this method in Application.onCreate
*
* @return Config
* @return Config
*/
*/
public
Config
config
()
{
public
Config
config
()
{
...
@@ -115,6 +123,7 @@ public final class LiveEventBusCore {
...
@@ -115,6 +123,7 @@ public final class LiveEventBusCore {
this
.
logger
.
setEnable
(
enable
);
this
.
logger
.
setEnable
(
enable
);
}
}
@SuppressLint
(
"WrongConstant"
)
void
registerReceiver
()
{
void
registerReceiver
()
{
if
(
isRegisterReceiver
)
{
if
(
isRegisterReceiver
)
{
return
;
return
;
...
@@ -124,6 +133,13 @@ public final class LiveEventBusCore {
...
@@ -124,6 +133,13 @@ public final class LiveEventBusCore {
IntentFilter
intentFilter
=
new
IntentFilter
();
IntentFilter
intentFilter
=
new
IntentFilter
();
intentFilter
.
addAction
(
IpcConst
.
ACTION
);
intentFilter
.
addAction
(
IpcConst
.
ACTION
);
application
.
registerReceiver
(
receiver
,
intentFilter
);
application
.
registerReceiver
(
receiver
,
intentFilter
);
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
TIRAMISU
)
{
application
.
registerReceiver
(
receiver
,
intentFilter
,
RECEIVER_EXPORTED
);
}
// api <= 32
else
{
application
.
registerReceiver
(
receiver
,
intentFilter
);
}
isRegisterReceiver
=
true
;
isRegisterReceiver
=
true
;
}
}
}
}
...
@@ -448,7 +464,7 @@ public final class LiveEventBusCore {
...
@@ -448,7 +464,7 @@ public final class LiveEventBusCore {
}
}
@Override
@Override
public
void
removeObserver
(
@NonNull
Observer
<
T
>
observer
)
{
public
void
removeObserver
(
@NonNull
Observer
<
?
super
T
>
observer
)
{
super
.
removeObserver
(
observer
);
super
.
removeObserver
(
observer
);
if
(
autoClear
()
&&
!
liveData
.
hasObservers
())
{
if
(
autoClear
()
&&
!
liveData
.
hasObservers
())
{
LiveEventBusCore
.
get
().
bus
.
remove
(
key
);
LiveEventBusCore
.
get
().
bus
.
remove
(
key
);
...
...
sobot_widget/src/main/java/com/sobot/widget/livedatabus/core/Observable.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
livedatabus
.
core
;
package
com
.
sobot
.
widget
.
livedatabus
.
core
;
import
android
.arch
.lifecycle.LifecycleOwner
;
import
android
x
.lifecycle.LifecycleOwner
;
import
android
.arch
.lifecycle.Observer
;
import
android
x
.lifecycle.Observer
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
public
interface
Observable
<
T
>
{
public
interface
Observable
<
T
>
{
...
...
sobot_widget/src/main/java/com/sobot/widget/livedatabus/utils/AppUtils.java
View file @
d0ef2237
...
@@ -7,7 +7,7 @@ import android.app.Application;
...
@@ -7,7 +7,7 @@ import android.app.Application;
import
android.app.Application.ActivityLifecycleCallbacks
;
import
android.app.Application.ActivityLifecycleCallbacks
;
import
android.content.Context
;
import
android.content.Context
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android
.support.v4
.content.FileProvider
;
import
android
x.core
.content.FileProvider
;
import
android.view.View
;
import
android.view.View
;
import
android.view.inputmethod.InputMethodManager
;
import
android.view.inputmethod.InputMethodManager
;
...
...
sobot_widget/src/main/java/com/sobot/widget/loading/SobotLoadingLayout.java
View file @
d0ef2237
...
@@ -21,8 +21,8 @@ import android.app.Fragment;
...
@@ -21,8 +21,8 @@ import android.app.Fragment;
import
android.content.Context
;
import
android.content.Context
;
import
android.content.res.TypedArray
;
import
android.content.res.TypedArray
;
import
android.graphics.drawable.Drawable
;
import
android.graphics.drawable.Drawable
;
import
android
.support
.annotation.DrawableRes
;
import
android
x
.annotation.DrawableRes
;
import
android
.support
.annotation.LayoutRes
;
import
android
x
.annotation.LayoutRes
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.util.TypedValue
;
import
android.util.TypedValue
;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/SobotRefreshLayout.java
View file @
d0ef2237
...
@@ -24,15 +24,15 @@ import android.graphics.Paint;
...
@@ -24,15 +24,15 @@ import android.graphics.Paint;
import
android.os.Build
;
import
android.os.Build
;
import
android.os.Handler
;
import
android.os.Handler
;
import
android.os.Looper
;
import
android.os.Looper
;
import
android
.support
.annotation.ColorInt
;
import
android
x
.annotation.ColorInt
;
import
android
.support
.annotation.ColorRes
;
import
android
x
.annotation.ColorRes
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support
.annotation.Nullable
;
import
android
x
.annotation.Nullable
;
import
android
.support.v4
.content.ContextCompat
;
import
android
x.core
.content.ContextCompat
;
import
android
.support.v4
.view.NestedScrollingChildHelper
;
import
android
x.core
.view.NestedScrollingChildHelper
;
import
android
.support.v4
.view.NestedScrollingParent
;
import
android
x.core
.view.NestedScrollingParent
;
import
android
.support.v4
.view.NestedScrollingParentHelper
;
import
android
x.core
.view.NestedScrollingParentHelper
;
import
android
.support.v4
.view.ViewCompat
;
import
android
x.core
.view.ViewCompat
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.Gravity
;
import
android.view.Gravity
;
import
android.view.MotionEvent
;
import
android.view.MotionEvent
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/api/RefreshComponent.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
refresh
.
layout
.
api
;
package
com
.
sobot
.
widget
.
refresh
.
layout
.
api
;
import
static
android
.
support
.
annotation
.
RestrictTo
.
Scope
.
LIBRARY
;
import
static
android
x
.
annotation
.
RestrictTo
.
Scope
.
LIBRARY
;
import
static
android
.
support
.
annotation
.
RestrictTo
.
Scope
.
LIBRARY_GROUP
;
import
static
android
x
.
annotation
.
RestrictTo
.
Scope
.
LIBRARY_GROUP
;
import
static
android
.
support
.
annotation
.
RestrictTo
.
Scope
.
SUBCLASSES
;
import
static
android
x
.
annotation
.
RestrictTo
.
Scope
.
SUBCLASSES
;
import
android
.support
.annotation.ColorInt
;
import
android
x
.annotation.ColorInt
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support
.annotation.RestrictTo
;
import
android
x
.annotation.RestrictTo
;
import
android.view.View
;
import
android.view.View
;
import
com.sobot.widget.refresh.layout.constant.SpinnerStyle
;
import
com.sobot.widget.refresh.layout.constant.SpinnerStyle
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/api/RefreshContent.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
refresh
.
layout
.
api
;
package
com
.
sobot
.
widget
.
refresh
.
layout
.
api
;
import
android.animation.ValueAnimator.AnimatorUpdateListener
;
import
android.animation.ValueAnimator.AnimatorUpdateListener
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android.view.MotionEvent
;
import
android.view.MotionEvent
;
import
android.view.View
;
import
android.view.View
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/api/RefreshFooter.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
refresh
.
layout
.
api
;
package
com
.
sobot
.
widget
.
refresh
.
layout
.
api
;
import
static
android
.
support
.
annotation
.
RestrictTo
.
Scope
.
LIBRARY
;
import
static
android
x
.
annotation
.
RestrictTo
.
Scope
.
LIBRARY
;
import
static
android
.
support
.
annotation
.
RestrictTo
.
Scope
.
LIBRARY_GROUP
;
import
static
android
x
.
annotation
.
RestrictTo
.
Scope
.
LIBRARY_GROUP
;
import
static
android
.
support
.
annotation
.
RestrictTo
.
Scope
.
SUBCLASSES
;
import
static
android
x
.
annotation
.
RestrictTo
.
Scope
.
SUBCLASSES
;
import
android
.support
.annotation.RestrictTo
;
import
android
x
.annotation.RestrictTo
;
/**
/**
* 刷新底部
* 刷新底部
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/api/RefreshKernel.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
refresh
.
layout
.
api
;
package
com
.
sobot
.
widget
.
refresh
.
layout
.
api
;
import
android.animation.ValueAnimator
;
import
android.animation.ValueAnimator
;
import
android.support.annotation.NonNull
;
import
androidx.annotation.NonNull
;
import
androidx.swiperefreshlayout.widget.SwipeRefreshLayout
;
import
com.sobot.widget.refresh.layout.constant.RefreshState
;
import
com.sobot.widget.refresh.layout.constant.RefreshState
;
...
@@ -37,7 +39,7 @@ public interface RefreshKernel {
...
@@ -37,7 +39,7 @@ public interface RefreshKernel {
/**
/**
* 移动视图到指定位置
* 移动视图到指定位置
* moveSpinner 的取名来自 谷歌官方的 {@link
android.support.v4.widget.
SwipeRefreshLayout}
* moveSpinner 的取名来自 谷歌官方的 {@link SwipeRefreshLayout}
* @param spinner 位置 (px)
* @param spinner 位置 (px)
* @param isDragging true 手指正在拖动 false 回弹动画执行
* @param isDragging true 手指正在拖动 false 回弹动画执行
* @return RefreshKernel
* @return RefreshKernel
...
@@ -46,7 +48,7 @@ public interface RefreshKernel {
...
@@ -46,7 +48,7 @@ public interface RefreshKernel {
/**
/**
* 执行动画使视图位移到指定的 位置
* 执行动画使视图位移到指定的 位置
* moveSpinner 的取名来自 谷歌官方的 {@link
android.support.v4.widget.
SwipeRefreshLayout}
* moveSpinner 的取名来自 谷歌官方的 {@link SwipeRefreshLayout}
* @param endSpinner 指定的结束位置 (px)
* @param endSpinner 指定的结束位置 (px)
* @return ValueAnimator 如果没有执行动画 null
* @return ValueAnimator 如果没有执行动画 null
*/
*/
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/api/RefreshLayout.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
refresh
.
layout
.
api
;
package
com
.
sobot
.
widget
.
refresh
.
layout
.
api
;
import
android
.support
.annotation.ColorInt
;
import
android
x
.annotation.ColorInt
;
import
android
.support
.annotation.ColorRes
;
import
android
x
.annotation.ColorRes
;
import
android
.support
.annotation.FloatRange
;
import
android
x
.annotation.FloatRange
;
import
android
.support
.annotation.IdRes
;
import
android
x
.annotation.IdRes
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support
.annotation.Nullable
;
import
android
x
.annotation.Nullable
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.view.animation.Interpolator
;
import
android.view.animation.Interpolator
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/drawable/ProgressDrawable.java
View file @
d0ef2237
...
@@ -7,7 +7,7 @@ import android.graphics.Path;
...
@@ -7,7 +7,7 @@ import android.graphics.Path;
import
android.graphics.Rect
;
import
android.graphics.Rect
;
import
android.graphics.drawable.Animatable
;
import
android.graphics.drawable.Animatable
;
import
android.graphics.drawable.Drawable
;
import
android.graphics.drawable.Drawable
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
/**
/**
* 旋转动画
* 旋转动画
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/footer/ArrowDrawable.java
View file @
d0ef2237
...
@@ -4,7 +4,7 @@ import android.graphics.Canvas;
...
@@ -4,7 +4,7 @@ import android.graphics.Canvas;
import
android.graphics.Path
;
import
android.graphics.Path
;
import
android.graphics.Rect
;
import
android.graphics.Rect
;
import
android.graphics.drawable.Drawable
;
import
android.graphics.drawable.Drawable
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
com.sobot.widget.refresh.layout.drawable.PaintDrawable
;
import
com.sobot.widget.refresh.layout.drawable.PaintDrawable
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/footer/ClassicsAbstract.java
View file @
d0ef2237
...
@@ -7,11 +7,11 @@ import android.graphics.Bitmap;
...
@@ -7,11 +7,11 @@ import android.graphics.Bitmap;
import
android.graphics.drawable.Animatable
;
import
android.graphics.drawable.Animatable
;
import
android.graphics.drawable.BitmapDrawable
;
import
android.graphics.drawable.BitmapDrawable
;
import
android.graphics.drawable.Drawable
;
import
android.graphics.drawable.Drawable
;
import
android
.support
.annotation.ColorInt
;
import
android
x
.annotation.ColorInt
;
import
android
.support
.annotation.ColorRes
;
import
android
x
.annotation.ColorRes
;
import
android
.support
.annotation.DrawableRes
;
import
android
x
.annotation.DrawableRes
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support.v4
.content.ContextCompat
;
import
android
x.core
.content.ContextCompat
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/footer/ClassicsFooter.java
View file @
d0ef2237
...
@@ -2,8 +2,8 @@ package com.sobot.widget.refresh.layout.footer;
...
@@ -2,8 +2,8 @@ package com.sobot.widget.refresh.layout.footer;
import
android.content.Context
;
import
android.content.Context
;
import
android.content.res.TypedArray
;
import
android.content.res.TypedArray
;
import
android
.support
.annotation.ColorInt
;
import
android
x
.annotation.ColorInt
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.util.TypedValue
;
import
android.util.TypedValue
;
import
android.view.View
;
import
android.view.View
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/header/ClassicsHeader.java
View file @
d0ef2237
...
@@ -6,11 +6,11 @@ import android.annotation.SuppressLint;
...
@@ -6,11 +6,11 @@ import android.annotation.SuppressLint;
import
android.content.Context
;
import
android.content.Context
;
import
android.content.SharedPreferences
;
import
android.content.SharedPreferences
;
import
android.content.res.TypedArray
;
import
android.content.res.TypedArray
;
import
android
.support
.annotation.ColorInt
;
import
android
x
.annotation.ColorInt
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support.v4
.app.Fragment
;
import
android
x.fragment
.app.Fragment
;
import
android
.support.v4
.app.FragmentActivity
;
import
android
x.fragment
.app.FragmentActivity
;
import
android
.support.v4
.app.FragmentManager
;
import
android
x.fragment
.app.FragmentManager
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.util.TypedValue
;
import
android.util.TypedValue
;
import
android.view.View
;
import
android.view.View
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/listener/DefaultRefreshFooterCreator.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
refresh
.
layout
.
listener
;
package
com
.
sobot
.
widget
.
refresh
.
layout
.
listener
;
import
android.content.Context
;
import
android.content.Context
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
com.sobot.widget.refresh.layout.api.RefreshFooter
;
import
com.sobot.widget.refresh.layout.api.RefreshFooter
;
import
com.sobot.widget.refresh.layout.api.RefreshLayout
;
import
com.sobot.widget.refresh.layout.api.RefreshLayout
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/listener/DefaultRefreshHeaderCreator.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
refresh
.
layout
.
listener
;
package
com
.
sobot
.
widget
.
refresh
.
layout
.
listener
;
import
android.content.Context
;
import
android.content.Context
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
com.sobot.widget.refresh.layout.api.RefreshHeader
;
import
com.sobot.widget.refresh.layout.api.RefreshHeader
;
import
com.sobot.widget.refresh.layout.api.RefreshLayout
;
import
com.sobot.widget.refresh.layout.api.RefreshLayout
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/listener/DefaultRefreshInitializer.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
refresh
.
layout
.
listener
;
package
com
.
sobot
.
widget
.
refresh
.
layout
.
listener
;
import
android.content.Context
;
import
android.content.Context
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
com.sobot.widget.refresh.layout.api.RefreshLayout
;
import
com.sobot.widget.refresh.layout.api.RefreshLayout
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/listener/OnLoadMoreListener.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
refresh
.
layout
.
listener
;
package
com
.
sobot
.
widget
.
refresh
.
layout
.
listener
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
com.sobot.widget.refresh.layout.api.RefreshLayout
;
import
com.sobot.widget.refresh.layout.api.RefreshLayout
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/listener/OnRefreshListener.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
refresh
.
layout
.
listener
;
package
com
.
sobot
.
widget
.
refresh
.
layout
.
listener
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
com.sobot.widget.refresh.layout.api.RefreshLayout
;
import
com.sobot.widget.refresh.layout.api.RefreshLayout
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/listener/OnStateChangedListener.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
refresh
.
layout
.
listener
;
package
com
.
sobot
.
widget
.
refresh
.
layout
.
listener
;
import
static
android
.
support
.
annotation
.
RestrictTo
.
Scope
.
LIBRARY
;
import
static
android
x
.
annotation
.
RestrictTo
.
Scope
.
LIBRARY
;
import
static
android
.
support
.
annotation
.
RestrictTo
.
Scope
.
LIBRARY_GROUP
;
import
static
android
x
.
annotation
.
RestrictTo
.
Scope
.
LIBRARY_GROUP
;
import
static
android
.
support
.
annotation
.
RestrictTo
.
Scope
.
SUBCLASSES
;
import
static
android
x
.
annotation
.
RestrictTo
.
Scope
.
SUBCLASSES
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support
.annotation.RestrictTo
;
import
android
x
.annotation.RestrictTo
;
import
com.sobot.widget.refresh.layout.api.RefreshLayout
;
import
com.sobot.widget.refresh.layout.api.RefreshLayout
;
import
com.sobot.widget.refresh.layout.constant.RefreshState
;
import
com.sobot.widget.refresh.layout.constant.RefreshState
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/simple/SimpleComponent.java
View file @
d0ef2237
...
@@ -4,9 +4,9 @@ import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
...
@@ -4,9 +4,9 @@ import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
import
android.content.Context
;
import
android.content.Context
;
import
android
.support
.annotation.ColorInt
;
import
android
x
.annotation.ColorInt
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support
.annotation.Nullable
;
import
android
x
.annotation.Nullable
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/simple/SimpleMultiListener.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
refresh
.
layout
.
simple
;
package
com
.
sobot
.
widget
.
refresh
.
layout
.
simple
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
com.sobot.widget.refresh.layout.api.RefreshFooter
;
import
com.sobot.widget.refresh.layout.api.RefreshFooter
;
import
com.sobot.widget.refresh.layout.api.RefreshHeader
;
import
com.sobot.widget.refresh.layout.api.RefreshHeader
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/util/SmartUtil.java
View file @
d0ef2237
...
@@ -6,13 +6,13 @@ import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
...
@@ -6,13 +6,13 @@ import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
import
android.content.res.Resources
;
import
android.content.res.Resources
;
import
android.graphics.PointF
;
import
android.graphics.PointF
;
import
android.os.Build
;
import
android.os.Build
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support.v4
.view.NestedScrollingChild
;
import
android
x.core
.view.NestedScrollingChild
;
import
android
.support.v4
.view.NestedScrollingParent
;
import
android
x.core
.view.NestedScrollingParent
;
import
android
.support.v4
.view.ScrollingView
;
import
android
x.core
.view.ScrollingView
;
import
android
.support.v4.view
.ViewPager
;
import
android
x.viewpager.widget
.ViewPager
;
import
android
.support.v4
.widget.NestedScrollView
;
import
android
x.core
.widget.NestedScrollView
;
import
android
.support.v7
.widget.RecyclerView
;
import
android
x.recyclerview
.widget.RecyclerView
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.view.animation.Interpolator
;
import
android.view.animation.Interpolator
;
...
...
sobot_widget/src/main/java/com/sobot/widget/refresh/layout/wrapper/RefreshContentWrapper.java
View file @
d0ef2237
...
@@ -9,10 +9,10 @@ import static com.sobot.widget.refresh.layout.util.SmartUtil.scrollListBy;
...
@@ -9,10 +9,10 @@ import static com.sobot.widget.refresh.layout.util.SmartUtil.scrollListBy;
import
android.animation.ValueAnimator
;
import
android.animation.ValueAnimator
;
import
android.animation.ValueAnimator.AnimatorUpdateListener
;
import
android.animation.ValueAnimator.AnimatorUpdateListener
;
import
android.graphics.PointF
;
import
android.graphics.PointF
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support.v4
.view.NestedScrollingChild
;
import
android
x.core
.view.NestedScrollingChild
;
import
android
.support.v4
.view.NestedScrollingParent
;
import
android
x.core
.view.NestedScrollingParent
;
import
android
.support.v4.view
.ViewPager
;
import
android
x.viewpager.widget
.ViewPager
;
import
android.view.Gravity
;
import
android.view.Gravity
;
import
android.view.MotionEvent
;
import
android.view.MotionEvent
;
import
android.view.View
;
import
android.view.View
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/base/SobotBaseActivity.java
View file @
d0ef2237
...
@@ -12,10 +12,10 @@ import android.hardware.Camera;
...
@@ -12,10 +12,10 @@ import android.hardware.Camera;
import
android.os.Build
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.os.LocaleList
;
import
android.os.LocaleList
;
import
android
.support
.annotation.Nullable
;
import
android
x
.annotation.Nullable
;
import
android
.support.v4
.app.ActivityCompat
;
import
android
x.core
.app.ActivityCompat
;
import
android
.support.v4
.app.FragmentActivity
;
import
android
x.fragment
.app.FragmentActivity
;
import
android
.support.v4
.content.ContextCompat
;
import
android
x.core
.content.ContextCompat
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.util.DisplayMetrics
;
import
android.util.DisplayMetrics
;
import
android.view.View
;
import
android.view.View
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/calenderview/BaseRecyclerAdapter.java
View file @
d0ef2237
...
@@ -16,8 +16,8 @@
...
@@ -16,8 +16,8 @@
package
com
.
sobot
.
widget
.
ui
.
calenderview
;
package
com
.
sobot
.
widget
.
ui
.
calenderview
;
import
android.content.Context
;
import
android.content.Context
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support.v7
.widget.RecyclerView
;
import
android
x.recyclerview
.widget.RecyclerView
;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/calenderview/BaseView.java
View file @
d0ef2237
...
@@ -19,7 +19,7 @@ package com.sobot.widget.ui.calenderview;
...
@@ -19,7 +19,7 @@ package com.sobot.widget.ui.calenderview;
import
android.content.Context
;
import
android.content.Context
;
import
android.graphics.Color
;
import
android.graphics.Color
;
import
android.graphics.Paint
;
import
android.graphics.Paint
;
import
android
.support
.annotation.Nullable
;
import
android
x
.annotation.Nullable
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.MotionEvent
;
import
android.view.MotionEvent
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/calenderview/CalendarLayout.java
View file @
d0ef2237
...
@@ -26,8 +26,8 @@ import android.content.Context;
...
@@ -26,8 +26,8 @@ import android.content.Context;
import
android.content.res.TypedArray
;
import
android.content.res.TypedArray
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.os.Parcelable
;
import
android.os.Parcelable
;
import
android
.support
.annotation.Nullable
;
import
android
x
.annotation.Nullable
;
import
android
.support.v7
.widget.RecyclerView
;
import
android
x.recyclerview
.widget.RecyclerView
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.MotionEvent
;
import
android.view.MotionEvent
;
import
android.view.VelocityTracker
;
import
android.view.VelocityTracker
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/calenderview/CalendarView.java
View file @
d0ef2237
...
@@ -20,9 +20,9 @@ import android.animation.AnimatorListenerAdapter;
...
@@ -20,9 +20,9 @@ import android.animation.AnimatorListenerAdapter;
import
android.content.Context
;
import
android.content.Context
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.os.Parcelable
;
import
android.os.Parcelable
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support
.annotation.Nullable
;
import
android
x
.annotation.Nullable
;
import
android
.support.v4.view
.ViewPager
;
import
android
x.viewpager.widget
.ViewPager
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/calenderview/CalendarViewDelegate.java
View file @
d0ef2237
...
@@ -18,7 +18,7 @@ package com.sobot.widget.ui.calenderview;
...
@@ -18,7 +18,7 @@ package com.sobot.widget.ui.calenderview;
import
android.content.Context
;
import
android.content.Context
;
import
android.content.res.TypedArray
;
import
android.content.res.TypedArray
;
import
android.graphics.Color
;
import
android.graphics.Color
;
import
android
.support
.annotation.Nullable
;
import
android
x
.annotation.Nullable
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/calenderview/MonthViewPager.java
View file @
d0ef2237
...
@@ -17,9 +17,9 @@ package com.sobot.widget.ui.calenderview;
...
@@ -17,9 +17,9 @@ package com.sobot.widget.ui.calenderview;
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
import
android.content.Context
;
import
android.content.Context
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support.v4.view
.PagerAdapter
;
import
android
x.viewpager.widget
.PagerAdapter
;
import
android
.support.v4.view
.ViewPager
;
import
android
x.viewpager.widget
.ViewPager
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.MotionEvent
;
import
android.view.MotionEvent
;
import
android.view.View
;
import
android.view.View
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/calenderview/WeekViewPager.java
View file @
d0ef2237
...
@@ -17,9 +17,9 @@ package com.sobot.widget.ui.calenderview;
...
@@ -17,9 +17,9 @@ package com.sobot.widget.ui.calenderview;
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
import
android.content.Context
;
import
android.content.Context
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support.v4.view
.PagerAdapter
;
import
android
x.viewpager.widget
.PagerAdapter
;
import
android
.support.v4.view
.ViewPager
;
import
android
x.viewpager.widget
.ViewPager
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.MotionEvent
;
import
android.view.MotionEvent
;
import
android.view.View
;
import
android.view.View
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/calenderview/YearRecyclerView.java
View file @
d0ef2237
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
package
com
.
sobot
.
widget
.
ui
.
calenderview
;
package
com
.
sobot
.
widget
.
ui
.
calenderview
;
import
android.content.Context
;
import
android.content.Context
;
import
android
.support
.annotation.Nullable
;
import
android
x
.annotation.Nullable
;
import
android
.support.v7
.widget.GridLayoutManager
;
import
android
x.recyclerview
.widget.GridLayoutManager
;
import
android
.support.v7
.widget.RecyclerView
;
import
android
x.recyclerview
.widget.RecyclerView
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/calenderview/YearView.java
View file @
d0ef2237
...
@@ -20,7 +20,7 @@ import android.graphics.Canvas;
...
@@ -20,7 +20,7 @@ import android.graphics.Canvas;
import
android.graphics.Color
;
import
android.graphics.Color
;
import
android.graphics.Paint
;
import
android.graphics.Paint
;
import
android.graphics.Rect
;
import
android.graphics.Rect
;
import
android
.support
.annotation.Nullable
;
import
android
x
.annotation.Nullable
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.View
;
import
android.view.View
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/calenderview/YearViewAdapter.java
View file @
d0ef2237
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
package
com
.
sobot
.
widget
.
ui
.
calenderview
;
package
com
.
sobot
.
widget
.
ui
.
calenderview
;
import
android.content.Context
;
import
android.content.Context
;
import
android
.support.v7
.widget.RecyclerView
;
import
android
x.recyclerview
.widget.RecyclerView
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/calenderview/YearViewPager.java
View file @
d0ef2237
...
@@ -17,9 +17,9 @@ package com.sobot.widget.ui.calenderview;
...
@@ -17,9 +17,9 @@ package com.sobot.widget.ui.calenderview;
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
import
android.content.Context
;
import
android.content.Context
;
import
android
.support
.annotation.NonNull
;
import
android
x
.annotation.NonNull
;
import
android
.support.v4.view
.PagerAdapter
;
import
android
x.viewpager.widget
.PagerAdapter
;
import
android
.support.v4.view
.ViewPager
;
import
android
x.viewpager.widget
.ViewPager
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.Display
;
import
android.view.Display
;
import
android.view.MotionEvent
;
import
android.view.MotionEvent
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/provider/SobotFileProvider.java
View file @
d0ef2237
package
com
.
sobot
.
widget
.
ui
.
provider
;
package
com
.
sobot
.
widget
.
ui
.
provider
;
import
android
.support.v4
.content.FileProvider
;
import
android
x.core
.content.FileProvider
;
public
class
SobotFileProvider
extends
FileProvider
{
public
class
SobotFileProvider
extends
FileProvider
{
}
}
sobot_widget/src/main/java/com/sobot/widget/ui/rich/EmailSpan.java
View file @
d0ef2237
...
@@ -2,7 +2,7 @@ package com.sobot.widget.ui.rich;
...
@@ -2,7 +2,7 @@ package com.sobot.widget.ui.rich;
import
android.app.Activity
;
import
android.app.Activity
;
import
android.content.Context
;
import
android.content.Context
;
import
android
.support.v4
.app.ShareCompat
;
import
android
x.core
.app.ShareCompat
;
import
android.text.TextPaint
;
import
android.text.TextPaint
;
import
android.text.style.ClickableSpan
;
import
android.text.style.ClickableSpan
;
import
android.view.View
;
import
android.view.View
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/statusbar/SobotStatusBarUtils.java
View file @
d0ef2237
...
@@ -5,8 +5,8 @@ import android.app.Activity;
...
@@ -5,8 +5,8 @@ import android.app.Activity;
import
android.graphics.Color
;
import
android.graphics.Color
;
import
android.os.Build
;
import
android.os.Build
;
import
android.os.Environment
;
import
android.os.Environment
;
import
android
.support
.annotation.ColorInt
;
import
android
x
.annotation.ColorInt
;
import
android
.support
.annotation.IdRes
;
import
android
x
.annotation.IdRes
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.view.Window
;
import
android.view.Window
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/statusbar/StatusBarView.java
View file @
d0ef2237
...
@@ -2,7 +2,7 @@ package com.sobot.widget.ui.statusbar;
...
@@ -2,7 +2,7 @@ package com.sobot.widget.ui.statusbar;
import
android.content.Context
;
import
android.content.Context
;
import
android.os.Build
;
import
android.os.Build
;
import
android
.support
.annotation.Nullable
;
import
android
x
.annotation.Nullable
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.View
;
import
android.view.View
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/utils/SobotResourceUtils.java
View file @
d0ef2237
...
@@ -3,7 +3,7 @@ package com.sobot.widget.ui.utils;
...
@@ -3,7 +3,7 @@ package com.sobot.widget.ui.utils;
import
android.content.Context
;
import
android.content.Context
;
import
android.graphics.Color
;
import
android.graphics.Color
;
import
android.os.Environment
;
import
android.os.Environment
;
import
android
.support.v4
.content.ContextCompat
;
import
android
x.core
.content.ContextCompat
;
import
java.io.BufferedReader
;
import
java.io.BufferedReader
;
import
java.io.FileInputStream
;
import
java.io.FileInputStream
;
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/utils/SobotWidgetUtils.java
View file @
d0ef2237
...
@@ -10,8 +10,8 @@ import android.net.Uri;
...
@@ -10,8 +10,8 @@ import android.net.Uri;
import
android.os.Build
;
import
android.os.Build
;
import
android.os.Environment
;
import
android.os.Environment
;
import
android.provider.MediaStore
;
import
android.provider.MediaStore
;
import
android
.support.v4
.app.Fragment
;
import
android
x.fragment
.app.Fragment
;
import
android
.support.v4
.content.FileProvider
;
import
android
x.core
.content.FileProvider
;
import
com.sobot.utils.SobotIOUtils
;
import
com.sobot.utils.SobotIOUtils
;
import
com.sobot.widget.ui.SobotBaseConstant
;
import
com.sobot.widget.ui.SobotBaseConstant
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment