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
2af664df
Commit
2af664df
authored
Mar 22, 2022
by
郑娜伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加demo 测试控件
parent
01221ac0
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
69 additions
and
22 deletions
+69
-22
build.gradle
app/build.gradle
+9
-1
MainActivity.java
app/src/main/java/com/sobot/moduletest/MainActivity.java
+8
-1
MyApp.java
app/src/main/java/com/sobot/moduletest/MyApp.java
+6
-2
colors.xml
app/src/main/res/values/colors.xml
+12
-0
strings.xml
app/src/main/res/values/strings.xml
+18
-0
settings.gradle
settings.gradle
+1
-0
build.gradle
sobot_gson/build.gradle
+15
-0
ExampleUnitTest.java
sobot_gson/src/test/java/com/sobot/gson/ExampleUnitTest.java
+0
-18
No files found.
app/build.gradle
View file @
2af664df
...
...
@@ -12,7 +12,8 @@ android {
targetSdkVersion
28
versionCode
1
versionName
"1.0"
//添加此行
multiDexEnabled
true
}
buildTypes
{
...
...
@@ -30,8 +31,11 @@ android {
dependencies
{
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
implementation
'com.android.support:appcompat-v7:28.0.0'
implementation
'com.android.support:recyclerview-v7:28.0.0'
implementation
project
(
':sobot_common'
)
// implementation project(':sobot_widget')
implementation
'com.sobot.library:widget:0.1'
// api 'com.sobot.library:sobotcommon:1.0'
// api 'com.sobot.library:sobotcommon_x:1.0'
...
...
@@ -39,4 +43,7 @@ dependencies {
implementation
'com.sobot.chat:sobotsupport-glidev4:2.1'
implementation
'com.squareup.okhttp3:okhttp:4.4.0'
//添加此行
implementation
'com.android.support:multidex:1.0.3'
}
\ No newline at end of file
app/src/main/java/com/sobot/moduletest/MainActivity.java
View file @
2af664df
...
...
@@ -11,10 +11,12 @@ import com.sobot.common.ui.base.SobotBaseActivity;
import
com.sobot.common.ui.toast.SobotToastUtil
;
import
com.sobot.common.utils.SobotCommonApi
;
import
com.sobot.common.utils.SobotImageUtils
;
import
com.sobot.network.http.HttpUtils
;
import
com.sobot.network.http.db.SobotDownloadManager
;
import
com.sobot.pictureframe.SobotBitmapUtil
;
import
com.sobot.utils.SobotLogUtils
;
import
com.sobot.widget.refresh.layout.api.RefreshLayout
;
import
com.sobot.widget.refresh.layout.footer.ClassicsFooter
;
import
com.sobot.widget.refresh.layout.header.ClassicsHeader
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -76,6 +78,11 @@ public class MainActivity extends SobotBaseActivity {
// selectPicFromLocal();
// selectVedioFromLocal();
// openCamera();
RefreshLayout
refreshLayout
=
(
RefreshLayout
)
findViewById
(
R
.
id
.
refreshLayout
);
refreshLayout
.
setRefreshHeader
(
new
ClassicsHeader
(
this
));
refreshLayout
.
setRefreshFooter
(
new
ClassicsFooter
(
this
));
refreshLayout
.
setEnableLoadMore
(
false
);
}
@Override
...
...
app/src/main/java/com/sobot/moduletest/MyApp.java
View file @
2af664df
package
com
.
sobot
.
moduletest
;
import
android.app.Application
;
import
android.support.multidex.MultiDex
;
import
com.sobot.common.ui.SobotMarkConfig
;
import
com.sobot.common.utils.SobotCommonApi
;
...
...
@@ -17,11 +18,13 @@ public class MyApp extends Application {
@Override
public
void
onCreate
()
{
super
.
onCreate
();
// 主要是添加下面这句代码
MultiDex
.
install
(
this
);
SobotCommonApi
.
init
(
this
);
SobotCommonApi
.
setShowLogDebug
(
true
);
SobotCommonApi
.
setSwitchMarkStatus
(
SobotMarkConfig
.
LANDSCAPE_SCREEN
,
tru
e
);
SobotCommonApi
.
setSwitchMarkStatus
(
SobotMarkConfig
.
DISPLAY_INNOTCH
,
tru
e
);
SobotCommonApi
.
setSwitchMarkStatus
(
SobotMarkConfig
.
LANDSCAPE_SCREEN
,
fals
e
);
SobotCommonApi
.
setSwitchMarkStatus
(
SobotMarkConfig
.
DISPLAY_INNOTCH
,
fals
e
);
}
}
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
2af664df
...
...
@@ -7,4 +7,15 @@
<color
name=
"sobot_status_bar_color"
>
#FF4081
</color>
<color
name=
"sobot_color_title_bar_bg"
>
#FF4081
</color>
<!-- <!–下拉刷新 标题文字颜色–>-->
<!-- <color name="sobot_refresh_text_color">#303F9F</color>-->
<!-- <!–下拉刷新 更新时间文字颜色–>-->
<!-- <color name="sobot_refresh_text2_color">#303F9F</color>-->
<!-- <!–下拉刷新 背景颜色–>-->
<!-- <color name="sobot_refresh_bg_color">@color/sobot_white</color>-->
<!-- <!–下拉刷新 箭头控件颜色 –>-->
<!-- <color name="sobot_refresh_arrow_color">#FF4081</color>-->
<!-- <!–下拉刷新 加载中 旋转控件颜色–>-->
<!-- <color name="sobot_refresh_progress_color">#FF4081</color>-->
</resources>
\ No newline at end of file
app/src/main/res/values/strings.xml
View file @
2af664df
<resources>
<string
name=
"app_name"
>
Sobot_module_Dev
</string>
<!-- <string name="sobot_srl_header_pulling">下拉可以刷新111</string>-->
<!-- <string name="sobot_srl_header_refreshing">正在刷新111…</string>-->
<!-- <string name="sobot_srl_header_loading">正在加载111…</string>-->
<!-- <string name="sobot_srl_header_release">释放立即刷新111</string>-->
<!-- <string name="sobot_srl_header_finish">刷新完成111</string>-->
<!-- <string name="sobot_srl_header_failed">刷新失败</string>-->
<!-- <string name="sobot_srl_header_update">上次更新111 M-d HH:mm</string>-->
<!-- <string name="sobot_srl_header_secondary">释放进入二楼111</string>-->
<!-- <string name="sobot_srl_footer_pulling">上拉加载更多111</string>-->
<!-- <string name="sobot_srl_footer_release">释放立即加载111</string>-->
<!-- <string name="sobot_srl_footer_loading">正在加载111…</string>-->
<!-- <string name="sobot_srl_footer_refreshing">正在刷新111…</string>-->
<!-- <string name="sobot_srl_footer_finish">加载完成111</string>-->
<!-- <string name="sobot_srl_footer_failed">加载失败111</string>-->
<!-- <string name="sobot_srl_footer_nothing">没有更多数据了111</string>-->
</resources>
\ No newline at end of file
settings.gradle
View file @
2af664df
...
...
@@ -3,6 +3,7 @@ include ':sobot_network'
include
':sobot_utils'
include
':sobot_gson'
include
':sobot_common'
include
':sobot_widget'
include
':app'
rootProject
.
name
=
"Sobot_module_Dev"
sobot_gson/build.gradle
View file @
2af664df
...
...
@@ -8,6 +8,21 @@ android {
defaultConfig
{
minSdkVersion
14
}
//这里就是打jar包
task
makeJar
(
type:
Copy
)
{
//删除旧的jar包
delete
'build/libs/sobot_gson_1.1.jar'
//原地址
from
(
'build/intermediates/packaged-classes/release/'
)
//导出jar包的地址
into
(
'build/libs/'
)
//包含的jar包
include
(
'classes.jar'
)
//重命名jar包为mysdk
rename
(
'classes.jar'
,
'sobot_gson_1.1.jar'
)
}
makeJar
.
dependsOn
(
build
)
}
dependencies
{
...
...
sobot_gson/src/test/java/com/sobot/gson/ExampleUnitTest.java
deleted
100644 → 0
View file @
01221ac0
package
com
.
sobot
.
gson
;
import
org.junit.Test
;
import
static
org
.
junit
.
Assert
.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public
class
ExampleUnitTest
{
@Test
public
void
addition_isCorrect
()
{
assertEquals
(
4
,
2
+
2
);
}
}
\ No newline at end of file
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