Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
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
杨凯
YDL-Component-Medical
Commits
7c6c5b5e
Commit
7c6c5b5e
authored
3 years ago
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : 改发布
parent
86c77660
Hide whitespace changes
Inline
Side-by-side
Showing
49 changed files
with
84 additions
and
1764 deletions
+84
-1764
TUICallingEntranceActivity.java
app/src/main/java/com/ydl/component/rtc/TUICallingEntranceActivity.java
+0
-6
config.gradle
config.gradle
+7
-4
build.gradle
ydl-platform/build.gradle
+1
-0
build.gradle
ydl-tuicore/build.gradle
+0
-10
modular.gradle
ydl-tuicore/modular.gradle
+24
-0
AndroidManifest.xml
ydl-tuicore/src/main/AndroidManifest.xml
+3
-12
ServiceInitializer.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/ServiceInitializer.java
+0
-92
TUIThemeManager.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/TUIThemeManager.java
+0
-7
TRTCCalling.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/calling/trtccalling/model/TRTCCalling.java
+16
-12
TRTCGroupAudioLayoutManager.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/calling/trtccalling/ui/audiocall/audiolayout/TRTCGroupAudioLayoutManager.java
+18
-6
VideoCallingActivity.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/calling/videocall/VideoCallingActivity.java
+11
-4
YDLInvitionActivity.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/calling/videocall/YDLInvitionActivity.java
+3
-2
NoticeLayout.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/NoticeLayout.java
+0
-71
TitleBarLayout.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/TitleBarLayout.java
+0
-147
BaseLightActivity.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/activities/BaseLightActivity.java
+0
-32
SelectionActivity.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/activities/SelectionActivity.java
+0
-244
UserIconView.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/gatherimage/UserIconView.java
+0
-67
ILayout.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/interfaces/ILayout.java
+0
-20
INoticeLayout.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/interfaces/INoticeLayout.java
+0
-42
ITitleBarLayout.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/interfaces/ITitleBarLayout.java
+0
-118
IUIKitCallback.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/interfaces/IUIKitCallback.java
+0
-13
Menu.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/menu/Menu.java
+0
-180
core_default_group_icon_light.png
ydl-tuicore/src/main/res-light/drawable-xxhdpi/core_default_group_icon_light.png
+0
-0
core_default_user_icon_light.png
ydl-tuicore/src/main/res-light/drawable-xxhdpi/core_default_user_icon_light.png
+0
-0
core_selected_icon_light.png
ydl-tuicore/src/main/res-light/drawable-xxhdpi/core_selected_icon_light.png
+0
-0
core_title_bar_back_light.png
ydl-tuicore/src/main/res-light/drawable-xxhdpi/core_title_bar_back_light.png
+0
-0
core_title_bar_bg_light.xml
ydl-tuicore/src/main/res-light/drawable/core_title_bar_bg_light.xml
+0
-10
light_colors.xml
ydl-tuicore/src/main/res-light/values/light_colors.xml
+0
-30
light_styles.xml
ydl-tuicore/src/main/res-light/values/light_styles.xml
+0
-38
core_default_group_icon_lively.png
ydl-tuicore/src/main/res-lively/drawable-xxhdpi/core_default_group_icon_lively.png
+0
-0
core_default_user_icon_lively.png
ydl-tuicore/src/main/res-lively/drawable-xxhdpi/core_default_user_icon_lively.png
+0
-0
core_selected_icon_lively.png
ydl-tuicore/src/main/res-lively/drawable-xxhdpi/core_selected_icon_lively.png
+0
-0
core_title_bar_back_lively.png
ydl-tuicore/src/main/res-lively/drawable-xxhdpi/core_title_bar_back_lively.png
+0
-0
core_title_bar_bg_lively.xml
ydl-tuicore/src/main/res-lively/drawable/core_title_bar_bg_lively.xml
+0
-9
lively_colors.xml
ydl-tuicore/src/main/res-lively/values/lively_colors.xml
+0
-30
lively_styles.xml
ydl-tuicore/src/main/res-lively/values/lively_styles.xml
+0
-38
core_default_group_icon_serious.png
ydl-tuicore/src/main/res-serious/drawable-xxhdpi/core_default_group_icon_serious.png
+0
-0
core_default_user_icon_serious.png
ydl-tuicore/src/main/res-serious/drawable-xxhdpi/core_default_user_icon_serious.png
+0
-0
core_selected_icon_serious.png
ydl-tuicore/src/main/res-serious/drawable-xxhdpi/core_selected_icon_serious.png
+0
-0
core_title_bar_back_serious.png
ydl-tuicore/src/main/res-serious/drawable-xxhdpi/core_title_bar_back_serious.png
+0
-0
core_title_bar_bg_serious.xml
ydl-tuicore/src/main/res-serious/drawable/core_title_bar_bg_serious.xml
+0
-10
serious_colors.xml
ydl-tuicore/src/main/res-serious/values/serious_colors.xml
+0
-30
serious_styles.xml
ydl-tuicore/src/main/res-serious/values/serious_styles.xml
+0
-39
tuicore_selection_activity.xml
ydl-tuicore/src/main/res/layout/tuicore_selection_activity.xml
+0
-28
strings.xml
ydl-tuicore/src/main/res/values-en/strings.xml
+0
-51
im_error_msg.xml
ydl-tuicore/src/main/res/values-zh-rCN/im_error_msg.xml
+0
-288
strings.xml
ydl-tuicore/src/main/res/values-zh-rCN/strings.xml
+0
-19
strings.xml
ydl-tuicore/src/main/res/values-zh/strings.xml
+0
-50
attrs.xml
ydl-tuicore/src/main/res/values/attrs.xml
+1
-5
No files found.
app/src/main/java/com/ydl/component/rtc/TUICallingEntranceActivity.java
View file @
7c6c5b5e
...
@@ -159,12 +159,6 @@ public class TUICallingEntranceActivity extends Activity {
...
@@ -159,12 +159,6 @@ public class TUICallingEntranceActivity extends Activity {
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
startCallSomeone
();
startCallSomeone
();
// TRTCCalling.sharedInstance(TUICallingEntranceActivity.this).setmCurSponsorForMe("1");
// TRTCCalling.sharedInstance(TUICallingEntranceActivity.this).enterTRTCRoom(75, TRTCCalling.TYPE_VIDEO_CALL);
// TRTCCalling.sharedInstance(TUICallingEntranceActivity.this).reject();
// String[] userIDs = new String[]{"130954238"};
// TUICallingImpl.sharedInstance(TUICallingEntranceActivity.this)
// .internalCall(userIDs, "1", "74");
}
}
});
});
}
}
...
...
This diff is collapsed.
Click to expand it.
config.gradle
View file @
7c6c5b5e
...
@@ -33,9 +33,10 @@ ext {
...
@@ -33,9 +33,10 @@ ext {
//-------------- 功能组件 --------------
//-------------- 功能组件 --------------
//mdt 组件
//mdt 组件
"ydl-tuicore"
:
"0.0.3"
,
"ydl-tuicore"
:
"0.0.9"
,
"m-tuicore-ydl"
:
"0.0.10"
,
//第一步
//第一步
"ydl-platform"
:
"0.0.40.
89
"
,
"ydl-platform"
:
"0.0.40.
90
"
,
//第二步 若干
//第二步 若干
"ydl-webview"
:
"0.0.38.58"
,
"ydl-webview"
:
"0.0.38.58"
,
...
@@ -117,9 +118,10 @@ ext {
...
@@ -117,9 +118,10 @@ ext {
"m-dynamic-api"
:
"0.0.3.71"
,
"m-dynamic-api"
:
"0.0.3.71"
,
//-------------- 功能组件 --------------
//-------------- 功能组件 --------------
//mdt组件
//mdt组件
"ydl-tuicore"
:
"0.0.3"
,
"ydl-tuicore"
:
"0.0.9"
,
"m-tuicore-ydl"
:
"0.0.10"
,
//第一步
//第一步
"ydl-platform"
:
"0.0.40.
89
"
,
"ydl-platform"
:
"0.0.40.
90
"
,
//第二步 若干
//第二步 若干
"ydl-webview"
:
"0.0.38.58"
,
"ydl-webview"
:
"0.0.38.58"
,
...
@@ -286,6 +288,7 @@ ext {
...
@@ -286,6 +288,7 @@ ext {
//基础组件 <<--- 先发这个,发完改这里的版本号
//基础组件 <<--- 先发这个,发完改这里的版本号
"ydl-platform"
:
"com.ydl:ydl-platform:${ydlCompileVersion["
ydl
-
platform
"]}@aar"
,
"ydl-platform"
:
"com.ydl:ydl-platform:${ydlCompileVersion["
ydl
-
platform
"]}@aar"
,
"ydl-tuicore"
:
"com.ydl:ydl-tuicore:${ydlCompileVersion["
ydl
-
tuicore
"]}@aar"
,
"ydl-tuicore"
:
"com.ydl:ydl-tuicore:${ydlCompileVersion["
ydl
-
tuicore
"]}@aar"
,
"m-tuicore-ydl"
:
"com.ydl:m-tuicore-ydl:${ydlCompileVersion["
m
-
tuicore
-
ydl
"]}@aar"
,
//功能组件 <<--- 再发这些,发完改这里的版本号
//功能组件 <<--- 再发这些,发完改这里的版本号
"ydl-webview"
:
"com.ydl:ydl-webview:${ydlCompileVersion["
ydl
-
webview
"]}@aar"
,
"ydl-webview"
:
"com.ydl:ydl-webview:${ydlCompileVersion["
ydl
-
webview
"]}@aar"
,
"ydl-media"
:
"com.ydl:ydl-media:${ydlCompileVersion["
ydl
-
media
"]}@aar"
,
"ydl-media"
:
"com.ydl:ydl-media:${ydlCompileVersion["
ydl
-
media
"]}@aar"
,
...
...
This diff is collapsed.
Click to expand it.
ydl-platform/build.gradle
View file @
7c6c5b5e
...
@@ -88,6 +88,7 @@ dependencies {
...
@@ -88,6 +88,7 @@ dependencies {
exclude
group:
'org.jetbrains.kotlin'
,
module:
'kotlin-stdlib'
exclude
group:
'org.jetbrains.kotlin'
,
module:
'kotlin-stdlib'
exclude
group:
'org.jetbrains.kotlin'
,
module:
'kotlin-stdlib-jdk7'
exclude
group:
'org.jetbrains.kotlin'
,
module:
'kotlin-stdlib-jdk7'
exclude
group:
'org.jetbrains.kotlin'
,
module:
'kotlin-stdlib-common'
exclude
group:
'org.jetbrains.kotlin'
,
module:
'kotlin-stdlib-common'
exclude
group:
'com.ydl'
,
module:
'pictureselector'
}
}
api
rootProject
.
ext
.
dependencies
[
"ydl-utils"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-utils"
]
...
...
This diff is collapsed.
Click to expand it.
ydl-tuicore/build.gradle
View file @
7c6c5b5e
...
@@ -7,8 +7,6 @@ apply plugin: 'kotlin-android'
...
@@ -7,8 +7,6 @@ apply plugin: 'kotlin-android'
apply
plugin:
'kotlin-android-extensions'
apply
plugin:
'kotlin-android-extensions'
apply
plugin:
'kotlin-kapt'
apply
plugin:
'kotlin-kapt'
apply
from:
"../maven_push.gradle"
android
{
android
{
compileSdkVersion
rootProject
.
ext
.
android
[
"compileSdkVersion"
]
compileSdkVersion
rootProject
.
ext
.
android
[
"compileSdkVersion"
]
buildToolsVersion
rootProject
.
ext
.
android
[
"buildToolsVersion"
]
buildToolsVersion
rootProject
.
ext
.
android
[
"buildToolsVersion"
]
...
@@ -29,14 +27,6 @@ android {
...
@@ -29,14 +27,6 @@ android {
targetCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
}
// 主题资源文件夹
sourceSets
{
main
{
res
.
srcDirs
+=
"src/main/res-light"
res
.
srcDirs
+=
"src/main/res-lively"
res
.
srcDirs
+=
"src/main/res-serious"
}
}
}
}
dependencies
{
dependencies
{
...
...
This diff is collapsed.
Click to expand it.
ydl-tuicore/modular.gradle
0 → 100644
View file @
7c6c5b5e
modular
{
//模块包名
packageName
"com.tencent.qcloud.tuicore"
// 模块发布需要的参数
publish
{
modules
{
xlzx
{
groupId
=
"com.ydl"
artifactId
=
"m-tuicore-xlzx"
// 上报的 心理咨询 业务模块 aar 包的版本号
version
=
rootProject
.
ext
.
ydlPublishVersion
[
childProject
.
getName
()]
}
ydl
{
groupId
=
"com.ydl"
artifactId
=
"m-tuicore-ydl"
// 上报的 壹点灵 业务模块 aar 包的版本号
version
=
rootProject
.
ext
.
ydlPublishVersion
[
childProject
.
getName
()]
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/AndroidManifest.xml
View file @
7c6c5b5e
...
@@ -3,15 +3,7 @@
...
@@ -3,15 +3,7 @@
package=
"com.tencent.qcloud.tuicore"
>
package=
"com.tencent.qcloud.tuicore"
>
<application>
<application>
<activity
android:name=
".component.activities.SelectionActivity"
android:screenOrientation=
"portrait"
/>
<provider
android:name=
".ServiceInitializer"
android:authorities=
"${applicationId}.TUICore.Init"
android:enabled=
"true"
android:exported=
"false"
/>
<provider
<provider
android:name=
".util.TUIFileProvider"
android:name=
".util.TUIFileProvider"
...
@@ -27,13 +19,11 @@
...
@@ -27,13 +19,11 @@
<activity
<activity
android:name=
".calling.videocall.VideoCallingActivity"
android:name=
".calling.videocall.VideoCallingActivity"
android:launchMode=
"singleTask"
android:launchMode=
"singleTask"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
android:theme=
"@style/Theme.AppCompat.NoActionBar"
/>
<!--接听界面-->
<!--接听界面-->
<activity
<activity
android:name=
".calling.videocall.YDLInvitionActivity"
android:name=
".calling.videocall.YDLInvitionActivity"
android:launchMode=
"singleTask"
android:launchMode=
"singleTask"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
android:theme=
"@style/Theme.AppCompat.NoActionBar"
/>
</application>
</application>
</manifest>
</manifest>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/ServiceInitializer.java
deleted
100644 → 0
View file @
86c77660
package
com
.
tencent
.
qcloud
.
tuicore
;
import
android.content.ContentProvider
;
import
android.content.ContentValues
;
import
android.content.Context
;
import
android.database.Cursor
;
import
android.net.Uri
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.Nullable
;
/**
* 各模块如果需要初始化,需要实现此类的 init 方法,并在 Manifest 文件中以 ContentProvider 的形式注册。
*/
public
class
ServiceInitializer
extends
ContentProvider
{
/**
* 应用启动时自动调起的初始化方法
* @param context applicationContext
*/
public
void
init
(
Context
context
)
{}
/**
* 获取轻量版主题资源 id
*/
public
int
getLightThemeResId
()
{
return
0
;
}
/**
* 获取活泼版主题资源 id
*/
public
int
getLivelyThemeResId
()
{
return
0
;
}
/**
* 获取严肃版主题资源 id
*/
public
int
getSeriousThemeResId
()
{
return
0
;
}
/////////////////////////////////////////////////////////////////////////////////
// 以下方法无需重写 //
/////////////////////////////////////////////////////////////////////////////////
@Override
public
boolean
onCreate
()
{
Context
appContext
=
getContext
().
getApplicationContext
();
// 路由初始化
TUIRouter
.
init
(
appContext
);
// 公共配置初始化
TUIConfig
.
init
(
appContext
);
// 皮肤语言初始化
TUIThemeManager
.
addLightTheme
(
getLightThemeResId
());
TUIThemeManager
.
addLivelyTheme
(
getLivelyThemeResId
());
TUIThemeManager
.
addSeriousTheme
(
getSeriousThemeResId
());
TUIThemeManager
.
setTheme
(
appContext
);
// 子类初始化,包括监听注册、扩展注册等。
init
(
appContext
);
return
false
;
}
@Nullable
@Override
public
Cursor
query
(
@NonNull
Uri
uri
,
@Nullable
String
[]
projection
,
@Nullable
String
selection
,
@Nullable
String
[]
selectionArgs
,
@Nullable
String
sortOrder
)
{
return
null
;
}
@Nullable
@Override
public
String
getType
(
@NonNull
Uri
uri
)
{
return
null
;
}
@Nullable
@Override
public
Uri
insert
(
@NonNull
Uri
uri
,
@Nullable
ContentValues
values
)
{
return
null
;
}
@Override
public
int
delete
(
@NonNull
Uri
uri
,
@Nullable
String
selection
,
@Nullable
String
[]
selectionArgs
)
{
return
0
;
}
@Override
public
int
update
(
@NonNull
Uri
uri
,
@Nullable
ContentValues
values
,
@Nullable
String
selection
,
@Nullable
String
[]
selectionArgs
)
{
return
0
;
}
}
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/TUIThemeManager.java
View file @
7c6c5b5e
...
@@ -228,13 +228,6 @@ public class TUIThemeManager {
...
@@ -228,13 +228,6 @@ public class TUIThemeManager {
}
}
Resources
.
Theme
theme
=
context
.
getTheme
();
Resources
.
Theme
theme
=
context
.
getTheme
();
if
(
theme
==
null
)
{
if
(
theme
==
null
)
{
if
(
currentTheme
==
THEME_LIVELY
)
{
context
.
setTheme
(
R
.
style
.
TUIBaseLivelyTheme
);
}
else
if
(
currentTheme
==
THEME_SERIOUS
)
{
context
.
setTheme
(
R
.
style
.
TUIBaseSeriousTheme
);
}
else
{
context
.
setTheme
(
R
.
style
.
TUIBaseLightTheme
);
}
theme
=
context
.
getTheme
();
theme
=
context
.
getTheme
();
}
}
mergeTheme
(
theme
);
mergeTheme
(
theme
);
...
...
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/calling/trtccalling/model/TRTCCalling.java
View file @
7c6c5b5e
...
@@ -325,13 +325,17 @@ public class TRTCCalling {
...
@@ -325,13 +325,17 @@ public class TRTCCalling {
final
UserModel
userModel
=
UserModelManager
.
getInstance
().
getUserModel
();
final
UserModel
userModel
=
UserModelManager
.
getInstance
().
getUserModel
();
Intent
intent
=
new
Intent
(
mContext
,
YDLInvitionActivity
.
class
);
for
(
String
s
:
inviteeList
)
{
intent
.
putExtra
(
Constant
.
ROOM_ID
,
groupID
);
if
(
s
.
equals
(
userModel
.
userId
)){
intent
.
putExtra
(
Constant
.
USER_ID
,
userModel
.
userId
);
Intent
intent
=
new
Intent
(
mContext
,
YDLInvitionActivity
.
class
);
intent
.
putExtra
(
Constant
.
INVITE_ID
,
inviter
);
intent
.
putExtra
(
Constant
.
ROOM_ID
,
groupID
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
intent
.
putExtra
(
Constant
.
USER_ID
,
userModel
.
userId
);
intent
.
putExtra
(
Constant
.
INVITE_ID
,
inviter
);
mContext
.
startActivity
(
intent
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
mContext
.
startActivity
(
intent
);
}
}
// handleRecvCallModel(inviteID, inviter, groupID, inviteeList, data);
// handleRecvCallModel(inviteID, inviter, groupID, inviteeList, data);
}
}
...
@@ -1170,11 +1174,11 @@ public class TRTCCalling {
...
@@ -1170,11 +1174,11 @@ public class TRTCCalling {
}
}
final
UserModel
userModel
=
UserModelManager
.
getInstance
().
getUserModel
();
final
UserModel
userModel
=
UserModelManager
.
getInstance
().
getUserModel
();
Intent
intent
=
new
Intent
(
mContext
,
YDLInvitionActivity
.
class
);
//
Intent intent = new Intent(mContext, YDLInvitionActivity.class);
intent
.
putExtra
(
Constant
.
ROOM_ID
,
groupId
);
//
intent.putExtra(Constant.ROOM_ID, groupId);
intent
.
putExtra
(
Constant
.
USER_ID
,
userModel
.
userId
);
//
intent.putExtra(Constant.USER_ID, userModel.userId);
intent
.
putExtra
(
Constant
.
INVITE_ID
,
userIdList
.
get
(
0
));
//
intent.putExtra(Constant.INVITE_ID, userIdList.get(0));
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
//
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
// internalCall(userIdList, type, groupId);
// internalCall(userIdList, type, groupId);
}
}
...
...
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/calling/trtccalling/ui/audiocall/audiolayout/TRTCGroupAudioLayoutManager.java
View file @
7c6c5b5e
...
@@ -98,7 +98,9 @@ public class TRTCGroupAudioLayoutManager extends RelativeLayout {
...
@@ -98,7 +98,9 @@ public class TRTCGroupAudioLayoutManager extends RelativeLayout {
* 根据 userId 找到已经分配的 View
* 根据 userId 找到已经分配的 View
*/
*/
public
TRTCGroupAudioLayout
findAudioCallLayout
(
String
userId
)
{
public
TRTCGroupAudioLayout
findAudioCallLayout
(
String
userId
)
{
if
(
userId
==
null
)
return
null
;
if
(
userId
==
null
)
{
return
null
;
}
for
(
TRTCLayoutEntity
layoutEntity
:
mLayoutEntityList
)
{
for
(
TRTCLayoutEntity
layoutEntity
:
mLayoutEntityList
)
{
if
(
layoutEntity
.
userId
.
equals
(
userId
))
{
if
(
layoutEntity
.
userId
.
equals
(
userId
))
{
return
layoutEntity
.
layout
;
return
layoutEntity
.
layout
;
...
@@ -115,7 +117,9 @@ public class TRTCGroupAudioLayoutManager extends RelativeLayout {
...
@@ -115,7 +117,9 @@ public class TRTCGroupAudioLayoutManager extends RelativeLayout {
*/
*/
public
TRTCGroupAudioLayout
allocAudioCallLayout
(
String
userId
)
{
public
TRTCGroupAudioLayout
allocAudioCallLayout
(
String
userId
)
{
Log
.
d
(
TAG
,
"allocAudioCallLayout:"
+
userId
);
Log
.
d
(
TAG
,
"allocAudioCallLayout:"
+
userId
);
if
(
userId
==
null
)
return
null
;
if
(
userId
==
null
)
{
return
null
;
}
if
(
mCount
>
MAX_USER
)
{
if
(
mCount
>
MAX_USER
)
{
return
null
;
return
null
;
}
}
...
@@ -141,7 +145,9 @@ public class TRTCGroupAudioLayoutManager extends RelativeLayout {
...
@@ -141,7 +145,9 @@ public class TRTCGroupAudioLayoutManager extends RelativeLayout {
* @param userId
* @param userId
*/
*/
public
void
recyclerAudioCallLayout
(
String
userId
)
{
public
void
recyclerAudioCallLayout
(
String
userId
)
{
if
(
userId
==
null
)
return
;
if
(
userId
==
null
)
{
return
;
}
Iterator
iterator
=
mLayoutEntityList
.
iterator
();
Iterator
iterator
=
mLayoutEntityList
.
iterator
();
while
(
iterator
.
hasNext
())
{
while
(
iterator
.
hasNext
())
{
TRTCLayoutEntity
item
=
(
TRTCLayoutEntity
)
iterator
.
next
();
TRTCLayoutEntity
item
=
(
TRTCLayoutEntity
)
iterator
.
next
();
...
@@ -167,7 +173,9 @@ public class TRTCGroupAudioLayoutManager extends RelativeLayout {
...
@@ -167,7 +173,9 @@ public class TRTCGroupAudioLayoutManager extends RelativeLayout {
* @param audioVolume
* @param audioVolume
*/
*/
public
void
updateAudioVolume
(
String
userId
,
int
audioVolume
)
{
public
void
updateAudioVolume
(
String
userId
,
int
audioVolume
)
{
if
(
userId
==
null
)
return
;
if
(
userId
==
null
)
{
return
;
}
for
(
TRTCLayoutEntity
entity
:
mLayoutEntityList
)
{
for
(
TRTCLayoutEntity
entity
:
mLayoutEntityList
)
{
if
(
entity
.
layout
.
getVisibility
()
==
VISIBLE
)
{
if
(
entity
.
layout
.
getVisibility
()
==
VISIBLE
)
{
if
(
userId
.
equals
(
entity
.
userId
))
{
if
(
userId
.
equals
(
entity
.
userId
))
{
...
@@ -179,14 +187,18 @@ public class TRTCGroupAudioLayoutManager extends RelativeLayout {
...
@@ -179,14 +187,18 @@ public class TRTCGroupAudioLayoutManager extends RelativeLayout {
private
TRTCLayoutEntity
findEntity
(
TRTCGroupAudioLayout
layout
)
{
private
TRTCLayoutEntity
findEntity
(
TRTCGroupAudioLayout
layout
)
{
for
(
TRTCLayoutEntity
entity
:
mLayoutEntityList
)
{
for
(
TRTCLayoutEntity
entity
:
mLayoutEntityList
)
{
if
(
entity
.
layout
==
layout
)
return
entity
;
if
(
entity
.
layout
==
layout
)
{
return
entity
;
}
}
}
return
null
;
return
null
;
}
}
private
TRTCLayoutEntity
findEntity
(
String
userId
)
{
private
TRTCLayoutEntity
findEntity
(
String
userId
)
{
for
(
TRTCLayoutEntity
entity
:
mLayoutEntityList
)
{
for
(
TRTCLayoutEntity
entity
:
mLayoutEntityList
)
{
if
(
entity
.
userId
.
equals
(
userId
))
return
entity
;
if
(
entity
.
userId
.
equals
(
userId
))
{
return
entity
;
}
}
}
return
null
;
return
null
;
}
}
...
...
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/calling/videocall/VideoCallingActivity.java
View file @
7c6c5b5e
...
@@ -63,7 +63,6 @@ public class VideoCallingActivity extends TRTCBaseActivity implements View.OnCli
...
@@ -63,7 +63,6 @@ public class VideoCallingActivity extends TRTCBaseActivity implements View.OnCli
private
int
mUserCount
=
0
;
private
int
mUserCount
=
0
;
private
String
mRoomId
;
private
String
mRoomId
;
private
String
mUserId
;
private
String
mUserId
;
private
String
mInviteId
;
private
boolean
mAudioRouteFlag
=
true
;
private
boolean
mAudioRouteFlag
=
true
;
...
@@ -97,9 +96,7 @@ public class VideoCallingActivity extends TRTCBaseActivity implements View.OnCli
...
@@ -97,9 +96,7 @@ public class VideoCallingActivity extends TRTCBaseActivity implements View.OnCli
if
(
intent
.
getStringExtra
(
Constant
.
ROOM_ID
)
!=
null
)
{
if
(
intent
.
getStringExtra
(
Constant
.
ROOM_ID
)
!=
null
)
{
mRoomId
=
intent
.
getStringExtra
(
Constant
.
ROOM_ID
);
mRoomId
=
intent
.
getStringExtra
(
Constant
.
ROOM_ID
);
}
}
if
(
intent
.
getStringExtra
(
Constant
.
INVITE_ID
)
!=
null
)
{
mInviteId
=
intent
.
getStringExtra
(
Constant
.
INVITE_ID
);
}
}
}
}
}
...
@@ -295,12 +292,22 @@ public class VideoCallingActivity extends TRTCBaseActivity implements View.OnCli
...
@@ -295,12 +292,22 @@ public class VideoCallingActivity extends TRTCBaseActivity implements View.OnCli
}
}
/**
/**
* 离开房间
* */
@Override
public
void
onExitRoom
(
int
reason
)
{
super
.
onExitRoom
(
reason
);
finish
();
}
/**
* 网络质量的实时统计回调
* 网络质量的实时统计回调
* @param localQuality
* @param localQuality
* @param remoteQuality
* @param remoteQuality
*/
*/
@Override
@Override
public
void
onNetworkQuality
(
TRTCCloudDef
.
TRTCQuality
localQuality
,
ArrayList
<
TRTCCloudDef
.
TRTCQuality
>
remoteQuality
)
{
public
void
onNetworkQuality
(
TRTCCloudDef
.
TRTCQuality
localQuality
,
ArrayList
<
TRTCCloudDef
.
TRTCQuality
>
remoteQuality
)
{
Log
.
e
(
TAG
,
"网络质量的实时统计回调 userId:"
+
localQuality
.
userId
+
"uid:"
+
localQuality
.
quality
+
remoteQuality
.
get
(
0
).
userId
+
"quality:"
+
localQuality
.
quality
+
remoteQuality
.
get
(
0
).
quality
);
// if (remoteQuality.size()>0){
// if (remoteQuality.size()>0){
// refreshNetWorkStatus(remoteQuality);
// refreshNetWorkStatus(remoteQuality);
// }
// }
...
...
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/calling/videocall/YDLInvitionActivity.java
View file @
7c6c5b5e
...
@@ -113,7 +113,6 @@ public class YDLInvitionActivity extends TRTCBaseActivity {
...
@@ -113,7 +113,6 @@ public class YDLInvitionActivity extends TRTCBaseActivity {
Intent
intent
=
new
Intent
(
YDLInvitionActivity
.
this
,
VideoCallingActivity
.
class
);
Intent
intent
=
new
Intent
(
YDLInvitionActivity
.
this
,
VideoCallingActivity
.
class
);
intent
.
putExtra
(
Constant
.
ROOM_ID
,
mRoomId
);
intent
.
putExtra
(
Constant
.
ROOM_ID
,
mRoomId
);
intent
.
putExtra
(
Constant
.
USER_ID
,
mUserId
);
intent
.
putExtra
(
Constant
.
USER_ID
,
mUserId
);
intent
.
putExtra
(
Constant
.
INVITE_ID
,
mInviteId
);
startActivity
(
intent
);
startActivity
(
intent
);
finish
();
finish
();
}
}
...
@@ -133,7 +132,9 @@ public class YDLInvitionActivity extends TRTCBaseActivity {
...
@@ -133,7 +132,9 @@ public class YDLInvitionActivity extends TRTCBaseActivity {
return
;
return
;
}
}
ImageLoader
.
loadImage
(
this
,
mIvAvatar
,
model
.
userAvatar
,
R
.
drawable
.
ic_avatar
);
ImageLoader
.
loadImage
(
this
,
mIvAvatar
,
model
.
userAvatar
,
R
.
drawable
.
ic_avatar
);
mTvName
.
setText
(
model
.
userName
);
if
(
model
.
userName
!=
null
)
{
mTvName
.
setText
(
model
.
userName
);
}
}
}
@Override
@Override
...
...
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/NoticeLayout.java
deleted
100644 → 0
View file @
86c77660
package
com
.
tencent
.
qcloud
.
tuicore
.
component
;
import
android.content.Context
;
import
android.util.AttributeSet
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
import
androidx.annotation.Nullable
;
import
com.tencent.qcloud.tuicore.R
;
import
com.tencent.qcloud.tuicore.component.interfaces.INoticeLayout
;
public
class
NoticeLayout
extends
RelativeLayout
implements
INoticeLayout
{
private
TextView
mContentText
;
private
TextView
mContentExtraText
;
private
boolean
mAwaysShow
;
public
NoticeLayout
(
Context
context
)
{
super
(
context
);
init
();
}
public
NoticeLayout
(
Context
context
,
@Nullable
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
init
();
}
public
NoticeLayout
(
Context
context
,
@Nullable
AttributeSet
attrs
,
int
defStyleAttr
)
{
super
(
context
,
attrs
,
defStyleAttr
);
init
();
}
private
void
init
()
{
inflate
(
getContext
(),
R
.
layout
.
notice_layout
,
this
);
mContentText
=
findViewById
(
R
.
id
.
notice_content
);
mContentExtraText
=
findViewById
(
R
.
id
.
notice_content_extra
);
}
@Override
public
TextView
getContent
()
{
return
mContentText
;
}
@Override
public
TextView
getContentExtra
()
{
return
mContentExtraText
;
}
@Override
public
void
setOnNoticeClickListener
(
OnClickListener
l
)
{
setOnClickListener
(
l
);
}
@Override
public
void
setVisibility
(
int
visibility
)
{
if
(
mAwaysShow
)
{
super
.
setVisibility
(
VISIBLE
);
}
else
{
super
.
setVisibility
(
visibility
);
}
}
@Override
public
void
alwaysShow
(
boolean
show
)
{
mAwaysShow
=
show
;
if
(
mAwaysShow
)
{
super
.
setVisibility
(
VISIBLE
);
}
}
}
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/TitleBarLayout.java
deleted
100644 → 0
View file @
86c77660
package
com
.
tencent
.
qcloud
.
tuicore
.
component
;
import
android.content.Context
;
import
android.util.AttributeSet
;
import
android.view.ViewGroup
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
import
androidx.annotation.Nullable
;
import
com.tencent.qcloud.tuicore.R
;
import
com.tencent.qcloud.tuicore.TUIThemeManager
;
import
com.tencent.qcloud.tuicore.component.interfaces.ITitleBarLayout
;
import
com.tencent.qcloud.tuicore.util.ScreenUtil
;
public
class
TitleBarLayout
extends
LinearLayout
implements
ITitleBarLayout
{
private
LinearLayout
mLeftGroup
;
private
LinearLayout
mRightGroup
;
private
TextView
mLeftTitle
;
private
TextView
mCenterTitle
;
private
TextView
mRightTitle
;
private
ImageView
mLeftIcon
;
private
ImageView
mRightIcon
;
private
RelativeLayout
mTitleLayout
;
private
UnreadCountTextView
unreadCountTextView
;
public
TitleBarLayout
(
Context
context
)
{
super
(
context
);
init
();
}
public
TitleBarLayout
(
Context
context
,
@Nullable
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
init
();
}
public
TitleBarLayout
(
Context
context
,
@Nullable
AttributeSet
attrs
,
int
defStyleAttr
)
{
super
(
context
,
attrs
,
defStyleAttr
);
init
();
}
private
void
init
()
{
inflate
(
getContext
(),
R
.
layout
.
title_bar_layout
,
this
);
mTitleLayout
=
findViewById
(
R
.
id
.
page_title_layout
);
mLeftGroup
=
findViewById
(
R
.
id
.
page_title_left_group
);
mRightGroup
=
findViewById
(
R
.
id
.
page_title_right_group
);
mLeftTitle
=
findViewById
(
R
.
id
.
page_title_left_text
);
mRightTitle
=
findViewById
(
R
.
id
.
page_title_right_text
);
mCenterTitle
=
findViewById
(
R
.
id
.
page_title
);
mLeftIcon
=
findViewById
(
R
.
id
.
page_title_left_icon
);
mRightIcon
=
findViewById
(
R
.
id
.
page_title_right_icon
);
unreadCountTextView
=
findViewById
(
R
.
id
.
new_message_total_unread
);
LayoutParams
params
=
(
LayoutParams
)
mTitleLayout
.
getLayoutParams
();
params
.
height
=
ScreenUtil
.
getPxByDp
(
50
);
mTitleLayout
.
setLayoutParams
(
params
);
setBackgroundResource
(
TUIThemeManager
.
getAttrResId
(
getContext
(),
R
.
attr
.
core_title_bar_bg
));
int
iconSize
=
ScreenUtil
.
dip2px
(
20
);
ViewGroup
.
LayoutParams
iconParams
=
mLeftIcon
.
getLayoutParams
();
iconParams
.
width
=
iconSize
;
iconParams
.
height
=
iconSize
;
mLeftIcon
.
setLayoutParams
(
iconParams
);
iconParams
=
mRightIcon
.
getLayoutParams
();
iconParams
.
width
=
iconSize
;
iconParams
.
height
=
iconSize
;
mRightIcon
.
setLayoutParams
(
iconParams
);
}
@Override
public
void
setOnLeftClickListener
(
OnClickListener
listener
)
{
mLeftGroup
.
setOnClickListener
(
listener
);
}
@Override
public
void
setOnRightClickListener
(
OnClickListener
listener
)
{
mRightGroup
.
setOnClickListener
(
listener
);
}
@Override
public
void
setTitle
(
String
title
,
Position
position
)
{
switch
(
position
)
{
case
LEFT:
mLeftTitle
.
setText
(
title
);
break
;
case
RIGHT:
mRightTitle
.
setText
(
title
);
break
;
case
MIDDLE:
mCenterTitle
.
setText
(
title
);
break
;
}
}
@Override
public
LinearLayout
getLeftGroup
()
{
return
mLeftGroup
;
}
@Override
public
LinearLayout
getRightGroup
()
{
return
mRightGroup
;
}
@Override
public
ImageView
getLeftIcon
()
{
return
mLeftIcon
;
}
@Override
public
void
setLeftIcon
(
int
resId
)
{
mLeftIcon
.
setBackgroundResource
(
resId
);
}
@Override
public
ImageView
getRightIcon
()
{
return
mRightIcon
;
}
@Override
public
void
setRightIcon
(
int
resId
)
{
mRightIcon
.
setBackgroundResource
(
resId
);
}
@Override
public
TextView
getLeftTitle
()
{
return
mLeftTitle
;
}
@Override
public
TextView
getMiddleTitle
()
{
return
mCenterTitle
;
}
@Override
public
TextView
getRightTitle
()
{
return
mRightTitle
;
}
public
UnreadCountTextView
getUnreadCountTextView
()
{
return
unreadCountTextView
;
}
}
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/activities/BaseLightActivity.java
deleted
100644 → 0
View file @
86c77660
package
com
.
tencent
.
qcloud
.
tuicore
.
component
.
activities
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.view.WindowManager
;
import
androidx.annotation.Nullable
;
import
androidx.appcompat.app.AppCompatActivity
;
import
com.tencent.qcloud.tuicore.R
;
import
com.tencent.qcloud.tuicore.TUIThemeManager
;
import
com.tencent.qcloud.tuicore.interfaces.ITUIThemeChangeable
;
public
class
BaseLightActivity
extends
AppCompatActivity
implements
ITUIThemeChangeable
{
@Override
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
LOLLIPOP
)
{
getWindow
().
clearFlags
(
WindowManager
.
LayoutParams
.
FLAG_TRANSLUCENT_NAVIGATION
);
getWindow
().
addFlags
(
WindowManager
.
LayoutParams
.
FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS
);
getWindow
().
setStatusBarColor
(
getResources
().
getColor
(
TUIThemeManager
.
getAttrResId
(
this
,
R
.
attr
.
core_header_start_color
)));
getWindow
().
setNavigationBarColor
(
getResources
().
getColor
(
R
.
color
.
navigation_bar_color
));
int
vis
=
getWindow
().
getDecorView
().
getSystemUiVisibility
();
vis
|=
View
.
SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
;
vis
|=
View
.
SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
;
getWindow
().
getDecorView
().
setSystemUiVisibility
(
vis
);
}
}
}
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/activities/SelectionActivity.java
deleted
100644 → 0
View file @
86c77660
package
com
.
tencent
.
qcloud
.
tuicore
.
component
.
activities
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.text.InputFilter
;
import
android.text.TextUtils
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.EditText
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
androidx.annotation.NonNull
;
import
androidx.recyclerview.widget.DividerItemDecoration
;
import
androidx.recyclerview.widget.RecyclerView
;
import
com.tencent.qcloud.tuicore.R
;
import
com.tencent.qcloud.tuicore.component.CustomLinearLayoutManager
;
import
com.tencent.qcloud.tuicore.component.TitleBarLayout
;
import
com.tencent.qcloud.tuicore.component.interfaces.ITitleBarLayout
;
import
com.tencent.qcloud.tuicore.interfaces.ITUIThemeChangeable
;
import
java.util.ArrayList
;
public
class
SelectionActivity
extends
BaseLightActivity
{
private
static
OnResultReturnListener
sOnResultReturnListener
;
private
RecyclerView
selectListView
;
private
SelectAdapter
selectListAdapter
;
private
EditText
input
;
private
int
mSelectionType
;
private
ArrayList
<
String
>
selectList
=
new
ArrayList
<>();
private
int
selectedItem
=
-
1
;
private
OnItemClickListener
onItemClickListener
;
private
boolean
needConfirm
=
true
;
private
boolean
returnNow
=
true
;
public
static
void
startTextSelection
(
Context
context
,
Bundle
bundle
,
OnResultReturnListener
listener
)
{
bundle
.
putInt
(
Selection
.
TYPE
,
Selection
.
TYPE_TEXT
);
startSelection
(
context
,
bundle
,
listener
);
}
public
static
void
startListSelection
(
Context
context
,
Bundle
bundle
,
OnResultReturnListener
listener
)
{
bundle
.
putInt
(
Selection
.
TYPE
,
Selection
.
TYPE_LIST
);
startSelection
(
context
,
bundle
,
listener
);
}
private
static
void
startSelection
(
Context
context
,
Bundle
bundle
,
OnResultReturnListener
listener
)
{
Intent
intent
=
new
Intent
(
context
,
SelectionActivity
.
class
);
intent
.
putExtra
(
Selection
.
CONTENT
,
bundle
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
context
.
startActivity
(
intent
);
sOnResultReturnListener
=
listener
;
}
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
tuicore_selection_activity
);
final
TitleBarLayout
titleBar
=
findViewById
(
R
.
id
.
edit_title_bar
);
selectListView
=
findViewById
(
R
.
id
.
select_list
);
selectListAdapter
=
new
SelectAdapter
();
selectListView
.
setAdapter
(
selectListAdapter
);
selectListView
.
setLayoutManager
(
new
CustomLinearLayoutManager
(
this
));
DividerItemDecoration
dividerItemDecoration
=
new
DividerItemDecoration
(
this
,
DividerItemDecoration
.
VERTICAL
);
dividerItemDecoration
.
setDrawable
(
getResources
().
getDrawable
(
R
.
drawable
.
core_list_divider
));
selectListView
.
addItemDecoration
(
dividerItemDecoration
);
onItemClickListener
=
new
OnItemClickListener
()
{
@Override
public
void
onClick
(
int
position
)
{
selectedItem
=
position
;
selectListAdapter
.
setSelectedItem
(
position
);
selectListAdapter
.
notifyDataSetChanged
();
if
(!
needConfirm
)
{
echoClick
();
}
}
};
input
=
findViewById
(
R
.
id
.
edit_content_et
);
Bundle
bundle
=
getIntent
().
getBundleExtra
(
Selection
.
CONTENT
);
switch
(
bundle
.
getInt
(
Selection
.
TYPE
))
{
case
Selection
.
TYPE_TEXT
:
selectListView
.
setVisibility
(
View
.
GONE
);
String
defaultString
=
bundle
.
getString
(
Selection
.
INIT_CONTENT
);
int
limit
=
bundle
.
getInt
(
Selection
.
LIMIT
);
if
(!
TextUtils
.
isEmpty
(
defaultString
))
{
input
.
setText
(
defaultString
);
input
.
setSelection
(
defaultString
.
length
());
}
if
(
limit
>
0
)
{
input
.
setFilters
(
new
InputFilter
[]{
new
InputFilter
.
LengthFilter
(
limit
)});
}
break
;
case
Selection
.
TYPE_LIST
:
input
.
setVisibility
(
View
.
GONE
);
ArrayList
<
String
>
list
=
bundle
.
getStringArrayList
(
Selection
.
LIST
);
selectedItem
=
bundle
.
getInt
(
Selection
.
DEFAULT_SELECT_ITEM_INDEX
);
if
(
list
==
null
||
list
.
size
()
==
0
)
{
return
;
}
selectList
.
clear
();
selectList
.
addAll
(
list
);
selectListAdapter
.
setSelectedItem
(
selectedItem
);
selectListAdapter
.
setData
(
selectList
);
selectListAdapter
.
notifyDataSetChanged
();
break
;
default
:
finish
();
return
;
}
mSelectionType
=
bundle
.
getInt
(
Selection
.
TYPE
);
final
String
title
=
bundle
.
getString
(
Selection
.
TITLE
);
needConfirm
=
bundle
.
getBoolean
(
Selection
.
NEED_CONFIRM
,
true
);
returnNow
=
bundle
.
getBoolean
(
Selection
.
RETURN_NOW
,
true
);
titleBar
.
setTitle
(
title
,
ITitleBarLayout
.
Position
.
MIDDLE
);
titleBar
.
setOnLeftClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
finish
();
}
});
titleBar
.
getRightIcon
().
setVisibility
(
View
.
GONE
);
if
(
needConfirm
)
{
titleBar
.
getRightTitle
().
setText
(
getResources
().
getString
(
R
.
string
.
sure
));
titleBar
.
setOnRightClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
echoClick
();
}
});
}
else
{
titleBar
.
getRightGroup
().
setVisibility
(
View
.
GONE
);
}
}
private
void
echoClick
()
{
switch
(
mSelectionType
)
{
case
Selection
.
TYPE_TEXT
:
if
(
sOnResultReturnListener
!=
null
)
{
sOnResultReturnListener
.
onReturn
(
input
.
getText
().
toString
());
}
break
;
case
Selection
.
TYPE_LIST
:
if
(
sOnResultReturnListener
!=
null
)
{
sOnResultReturnListener
.
onReturn
(
selectedItem
);
}
break
;
}
if
(
returnNow
)
{
finish
();
}
}
@Override
protected
void
onStop
()
{
super
.
onStop
();
sOnResultReturnListener
=
null
;
}
class
SelectAdapter
extends
RecyclerView
.
Adapter
<
SelectAdapter
.
SelectViewHolder
>
{
int
selectedItem
=
-
1
;
ArrayList
<
String
>
data
=
new
ArrayList
<>();
public
void
setData
(
ArrayList
<
String
>
data
)
{
this
.
data
.
clear
();
this
.
data
.
addAll
(
data
);
}
public
void
setSelectedItem
(
int
selectedItem
)
{
this
.
selectedItem
=
selectedItem
;
}
@NonNull
@Override
public
SelectViewHolder
onCreateViewHolder
(
@NonNull
ViewGroup
parent
,
int
viewType
)
{
View
view
=
LayoutInflater
.
from
(
SelectionActivity
.
this
).
inflate
(
R
.
layout
.
core_select_item_layout
,
parent
,
false
);
return
new
SelectViewHolder
(
view
);
}
@Override
public
void
onBindViewHolder
(
@NonNull
SelectViewHolder
holder
,
int
position
)
{
String
nameStr
=
data
.
get
(
position
);
holder
.
name
.
setText
(
nameStr
);
if
(
selectedItem
==
position
)
{
holder
.
selectedIcon
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
holder
.
selectedIcon
.
setVisibility
(
View
.
GONE
);
}
holder
.
itemView
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
onItemClickListener
.
onClick
(
position
);
}
});
}
@Override
public
int
getItemCount
()
{
return
data
.
size
();
}
class
SelectViewHolder
extends
RecyclerView
.
ViewHolder
{
TextView
name
;
ImageView
selectedIcon
;
public
SelectViewHolder
(
@NonNull
View
itemView
)
{
super
(
itemView
);
name
=
itemView
.
findViewById
(
R
.
id
.
name
);
selectedIcon
=
itemView
.
findViewById
(
R
.
id
.
selected_icon
);
}
}
}
public
interface
OnResultReturnListener
{
void
onReturn
(
Object
res
);
}
public
interface
OnItemClickListener
{
void
onClick
(
int
position
);
}
public
static
class
Selection
{
public
static
final
String
SELECT_ALL
=
"select_all"
;
public
static
final
String
CONTENT
=
"content"
;
public
static
final
String
TYPE
=
"type"
;
public
static
final
String
TITLE
=
"title"
;
public
static
final
String
INIT_CONTENT
=
"init_content"
;
public
static
final
String
DEFAULT_SELECT_ITEM_INDEX
=
"default_select_item_index"
;
public
static
final
String
LIST
=
"list"
;
public
static
final
String
LIMIT
=
"limit"
;
public
static
final
String
NEED_CONFIRM
=
"needConfirm"
;
public
static
final
String
RETURN_NOW
=
"returnNow"
;
public
static
final
int
TYPE_TEXT
=
1
;
public
static
final
int
TYPE_LIST
=
2
;
}
}
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/gatherimage/UserIconView.java
deleted
100644 → 0
View file @
86c77660
package
com
.
tencent
.
qcloud
.
tuicore
.
component
.
gatherimage
;
import
android.content.Context
;
import
android.content.res.TypedArray
;
import
android.util.AttributeSet
;
import
android.widget.RelativeLayout
;
import
com.tencent.qcloud.tuicore.R
;
import
java.util.List
;
public
class
UserIconView
extends
RelativeLayout
{
private
SynthesizedImageView
mIconView
;
private
int
mDefaultImageResId
;
private
int
mIconRadius
;
public
UserIconView
(
Context
context
)
{
super
(
context
);
init
(
null
);
}
public
UserIconView
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
init
(
attrs
);
}
public
UserIconView
(
Context
context
,
AttributeSet
attrs
,
int
defStyleAttr
)
{
super
(
context
,
attrs
,
defStyleAttr
);
init
(
attrs
);
}
private
void
init
(
AttributeSet
attributeSet
)
{
inflate
(
getContext
(),
R
.
layout
.
profile_icon_view
,
this
);
if
(
attributeSet
!=
null
)
{
TypedArray
ta
=
getContext
().
obtainStyledAttributes
(
attributeSet
,
R
.
styleable
.
UserIconView
);
if
(
null
!=
ta
)
{
mDefaultImageResId
=
ta
.
getResourceId
(
R
.
styleable
.
UserIconView_default_image
,
mDefaultImageResId
);
mIconRadius
=
ta
.
getDimensionPixelSize
(
R
.
styleable
.
UserIconView_image_radius
,
mIconRadius
);
ta
.
recycle
();
}
}
mIconView
=
findViewById
(
R
.
id
.
profile_icon
);
if
(
mDefaultImageResId
>
0
)
{
mIconView
.
defaultImage
(
mDefaultImageResId
);
}
if
(
mIconRadius
>
0
)
{
mIconView
.
setRadius
(
mIconRadius
);
}
}
public
void
setDefaultImageResId
(
int
resId
)
{
mDefaultImageResId
=
resId
;
mIconView
.
defaultImage
(
resId
);
}
public
void
setRadius
(
int
radius
)
{
mIconRadius
=
radius
;
mIconView
.
setRadius
(
mIconRadius
);
}
public
void
setIconUrls
(
List
<
Object
>
iconUrls
)
{
mIconView
.
displayImage
(
iconUrls
).
load
(
null
);
}
}
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/interfaces/ILayout.java
deleted
100644 → 0
View file @
86c77660
package
com
.
tencent
.
qcloud
.
tuicore
.
component
.
interfaces
;
import
com.tencent.qcloud.tuicore.component.TitleBarLayout
;
public
interface
ILayout
{
/**
* 获取标题栏
*
* @return
*/
TitleBarLayout
getTitleBar
();
/**
* 设置该 Layout 的父容器
*
* @param parent
*/
void
setParentLayout
(
Object
parent
);
}
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/interfaces/INoticeLayout.java
deleted
100644 → 0
View file @
86c77660
package
com
.
tencent
.
qcloud
.
tuicore
.
component
.
interfaces
;
import
android.view.View
;
import
android.widget.TextView
;
/**
* 通知区域 {@link NoticeLayout} 位置固定,只能显示或隐藏,位置不会随聊天内容的滚动而变化,可以用来展示<br>
* 待处理的群消息,或者一些广播等。该区域分为两部分,可以用来展示内容主题以及辅助主题。可以设置点击事件来<br>
* 响应用户操作。
*/
public
interface
INoticeLayout
{
/**
* 获取通知的主题信息 View
*
* @return
*/
TextView
getContent
();
/**
* 获取通知的进一步操作 View
*
* @return
*/
TextView
getContentExtra
();
/**
* 设置通知的点击事件
*
* @param l
*/
void
setOnNoticeClickListener
(
View
.
OnClickListener
l
);
/**
* 设置通知区域是否一直显示
*
* @param show 一直显示为 true
*/
void
alwaysShow
(
boolean
show
);
}
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/interfaces/ITitleBarLayout.java
deleted
100644 → 0
View file @
86c77660
package
com
.
tencent
.
qcloud
.
tuicore
.
component
.
interfaces
;
import
android.view.View
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
/**
* 会话列表窗口 {@link ConversationLayout}、聊天窗口 {@link ChatLayout} 等都自带标题栏,<br>
* 标题栏设计为左中右三部分标题,左边可为图片+文字,中间为文字,右边也可为图片+文字,这些区域返回的都是标准的<br>
* Android View,可以根据业务需要对这些 View 进行交互响应处理。
*/
public
interface
ITitleBarLayout
{
/**
* 设置左边标题的点击事件
*
* @param listener
*/
void
setOnLeftClickListener
(
View
.
OnClickListener
listener
);
/**
* 设置右边标题的点击事件
*
* @param listener
*/
void
setOnRightClickListener
(
View
.
OnClickListener
listener
);
/**
* 设置标题
*
* @param title 标题内容
* @param position 标题位置
*/
void
setTitle
(
String
title
,
Position
position
);
/**
* 返回左边标题区域
*
* @return
*/
LinearLayout
getLeftGroup
();
/**
* 返回右边标题区域
*
* @return
*/
LinearLayout
getRightGroup
();
/**
* 返回左边标题的图片
*
* @return
*/
ImageView
getLeftIcon
();
/**
* 设置左边标题的图片
*
* @param resId
*/
void
setLeftIcon
(
int
resId
);
/**
* 返回右边标题的图片
*
* @return
*/
ImageView
getRightIcon
();
/**
* 设置右边标题的图片
*
* @param resId
*/
void
setRightIcon
(
int
resId
);
/**
* 返回左边标题的文字
*
* @return
*/
TextView
getLeftTitle
();
/**
* 返回中间标题的文字
*
* @return
*/
TextView
getMiddleTitle
();
/**
* 返回右边标题的文字
*
* @return
*/
TextView
getRightTitle
();
/**
* 标题区域的枚举值
*/
enum
Position
{
/**
* 左边标题
*/
LEFT
,
/**
* 中间标题
*/
MIDDLE
,
/**
* 右边标题
*/
RIGHT
}
}
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/interfaces/IUIKitCallback.java
deleted
100644 → 0
View file @
86c77660
package
com
.
tencent
.
qcloud
.
tuicore
.
component
.
interfaces
;
/**
* UIKit回调的通用接口类
*/
public
abstract
class
IUIKitCallback
<
T
>
{
public
abstract
void
onSuccess
(
T
data
);
public
abstract
void
onError
(
String
module
,
int
errCode
,
String
errMsg
);
public
void
onProgress
(
Object
data
)
{}
}
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/component/menu/Menu.java
deleted
100644 → 0
View file @
86c77660
package
com
.
tencent
.
qcloud
.
tuicore
.
component
.
menu
;
import
android.app.Activity
;
import
android.graphics.Canvas
;
import
android.graphics.Color
;
import
android.graphics.ColorFilter
;
import
android.graphics.Paint
;
import
android.graphics.Path
;
import
android.graphics.PixelFormat
;
import
android.graphics.RectF
;
import
android.graphics.drawable.ColorDrawable
;
import
android.graphics.drawable.Drawable
;
import
android.view.Gravity
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.WindowManager
;
import
android.widget.AdapterView
;
import
android.widget.ListView
;
import
android.widget.PopupWindow
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.Nullable
;
import
com.tencent.qcloud.tuicore.R
;
import
com.tencent.qcloud.tuicore.component.action.PopMenuAction
;
import
com.tencent.qcloud.tuicore.component.action.PopMenuAdapter
;
import
com.tencent.qcloud.tuicore.util.ScreenUtil
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
Menu
{
// 阴影宽度
private
static
final
int
SHADOW_WIDTH
=
10
;
private
static
final
int
Y_OFFSET
=
4
;
// 更多menu
private
ListView
mMenuList
;
private
PopMenuAdapter
mMenuAdapter
;
private
PopupWindow
mMenuWindow
;
private
List
<
PopMenuAction
>
mActions
=
new
ArrayList
<>();
private
Activity
mActivity
;
private
View
mAttachView
;
public
Menu
(
Activity
activity
,
View
attach
)
{
mActivity
=
activity
;
mAttachView
=
attach
;
}
public
void
setMenuAction
(
List
<
PopMenuAction
>
menuActions
)
{
mActions
.
clear
();
mActions
.
addAll
(
menuActions
);
}
public
boolean
isShowing
()
{
if
(
mMenuWindow
==
null
)
{
return
false
;
}
return
mMenuWindow
.
isShowing
();
}
public
void
hide
()
{
mMenuWindow
.
dismiss
();
}
public
void
show
()
{
if
(
mActions
==
null
||
mActions
.
size
()
==
0
)
{
return
;
}
mMenuWindow
=
new
PopupWindow
(
mActivity
);
mMenuWindow
.
setWidth
(
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
);
mMenuWindow
.
setHeight
(
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
);
mMenuWindow
.
setBackgroundDrawable
(
new
ColorDrawable
());
mMenuAdapter
=
new
PopMenuAdapter
();
mMenuAdapter
.
setDataSource
(
mActions
);
View
menuView
=
LayoutInflater
.
from
(
mActivity
).
inflate
(
R
.
layout
.
core_pop_menu
,
null
);
// 设置布局文件
mMenuWindow
.
setContentView
(
menuView
);
mMenuList
=
menuView
.
findViewById
(
R
.
id
.
menu_pop_list
);
mMenuList
.
setAdapter
(
mMenuAdapter
);
mMenuList
.
setOnItemClickListener
(
new
AdapterView
.
OnItemClickListener
()
{
@Override
public
void
onItemClick
(
AdapterView
<?>
parent
,
View
view
,
int
position
,
long
id
)
{
PopMenuAction
action
=
(
PopMenuAction
)
mMenuAdapter
.
getItem
(
position
);
if
(
action
!=
null
&&
action
.
getActionClickListener
()
!=
null
)
{
action
.
getActionClickListener
().
onActionClick
(
position
,
mActions
.
get
(
position
));
}
}
});
int
paddingLeftRight
=
ScreenUtil
.
dip2px
(
15.0f
);
int
paddingTopBottom
=
ScreenUtil
.
dip2px
(
12.0f
);
int
itemWidth
=
mActivity
.
getResources
().
getDimensionPixelSize
(
R
.
dimen
.
core_pop_menu_item_width
);
int
itemHeight
=
mActivity
.
getResources
().
getDimensionPixelSize
(
R
.
dimen
.
core_pop_menu_item_height
);
float
anchorWidth
=
mAttachView
.
getWidth
();
float
anchorHeight
=
mAttachView
.
getHeight
();
mMenuWindow
.
getContentView
().
measure
(
View
.
MeasureSpec
.
UNSPECIFIED
,
View
.
MeasureSpec
.
UNSPECIFIED
);
int
[]
location
=
new
int
[
2
];
mAttachView
.
getLocationOnScreen
(
location
);
int
rowCount
=
mActions
.
size
();
int
indicatorHeight
=
mActivity
.
getResources
().
getDimensionPixelOffset
(
R
.
dimen
.
core_pop_menu_indicator_height
);
int
popWidth
=
itemWidth
+
paddingLeftRight
*
2
-
SHADOW_WIDTH
;
int
popHeight
=
itemHeight
*
rowCount
+
paddingTopBottom
*
2
-
SHADOW_WIDTH
;
float
indicatorX
=
anchorWidth
/
2
;
int
screenWidth
=
ScreenUtil
.
getScreenWidth
(
mActivity
);
int
x
=
location
[
0
];
int
y
;
float
xOffset
=
anchorWidth
/
2
;
// 如果是在右边,小箭头 x 坐标和 弹窗 x 位置都要变化
if
(
location
[
0
]
*
2
+
anchorWidth
>
screenWidth
)
{
indicatorX
=
popWidth
-
anchorWidth
/
2
-
xOffset
;
x
=
(
int
)
(
location
[
0
]
+
anchorWidth
-
popWidth
+
xOffset
);
}
y
=
(
int
)
(
location
[
1
]
+
anchorHeight
)
+
Y_OFFSET
;
popHeight
=
popHeight
-
indicatorHeight
;
Drawable
backgroundDrawable
=
getBackgroundDrawable
(
popWidth
,
popHeight
,
indicatorX
,
indicatorHeight
,
16
);
menuView
.
setBackground
(
backgroundDrawable
);
// 设置pop获取焦点,如果为false点击返回按钮会退出当前Activity,如果pop中有Editor的话,focusable必须要为true
mMenuWindow
.
setFocusable
(
true
);
// 设置pop可点击,为false点击事件无效,默认为true
mMenuWindow
.
setTouchable
(
true
);
// 设置点击pop外侧消失,默认为false;在focusable为true时点击外侧始终消失
mMenuWindow
.
setOutsideTouchable
(
true
);
// 相对于 + 号正下面,同时可以设置偏移量
mMenuWindow
.
showAtLocation
(
mAttachView
,
Gravity
.
NO_GRAVITY
,
x
,
y
);
}
/**
* 绘制带小三角的弹窗背景
*/
public
Drawable
getBackgroundDrawable
(
final
float
widthPixel
,
final
float
heightPixel
,
float
indicatorX
,
float
indicatorHeight
,
float
radius
)
{
int
borderWidth
=
SHADOW_WIDTH
;
Path
path
=
new
Path
();
Drawable
drawable
=
new
Drawable
()
{
@Override
public
void
draw
(
@NonNull
Canvas
canvas
)
{
Paint
paint
=
new
Paint
();
paint
.
setColor
(
Color
.
WHITE
);
paint
.
setStyle
(
Paint
.
Style
.
FILL
);
paint
.
setShadowLayer
(
borderWidth
,
0
,
0
,
0xFFAAAAAA
);
path
.
addRoundRect
(
new
RectF
(
borderWidth
,
indicatorHeight
+
borderWidth
,
widthPixel
-
borderWidth
,
heightPixel
+
indicatorHeight
-
borderWidth
),
radius
,
radius
,
Path
.
Direction
.
CW
);
path
.
moveTo
(
indicatorX
-
indicatorHeight
,
indicatorHeight
+
borderWidth
);
path
.
lineTo
(
indicatorX
,
borderWidth
);
path
.
lineTo
(
indicatorX
+
indicatorHeight
,
indicatorHeight
+
borderWidth
);
path
.
close
();
canvas
.
drawPath
(
path
,
paint
);
}
@Override
public
void
setAlpha
(
int
alpha
)
{
}
@Override
public
void
setColorFilter
(
@Nullable
ColorFilter
colorFilter
)
{
}
@Override
public
int
getOpacity
()
{
return
PixelFormat
.
TRANSLUCENT
;
}
};
return
drawable
;
}
}
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-light/drawable-xxhdpi/core_default_group_icon_light.png
deleted
100644 → 0
View file @
86c77660
2.84 KB
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-light/drawable-xxhdpi/core_default_user_icon_light.png
deleted
100644 → 0
View file @
86c77660
46.1 KB
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-light/drawable-xxhdpi/core_selected_icon_light.png
deleted
100644 → 0
View file @
86c77660
5 KB
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-light/drawable-xxhdpi/core_title_bar_back_light.png
deleted
100644 → 0
View file @
86c77660
1.27 KB
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-light/drawable/core_title_bar_bg_light.xml
deleted
100644 → 0
View file @
86c77660
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<gradient
android:startColor=
"?attr/core_header_end_color"
android:endColor=
"?attr/core_header_end_color"
/>
</shape>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-light/values/light_colors.xml
deleted
100644 → 0
View file @
86c77660
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- 颜色规范 start -->
<color
name=
"core_light_bg_title_text_color_light"
>
#FF000000
</color>
<color
name=
"core_light_bg_primary_text_color_light"
>
#FF444444
</color>
<color
name=
"core_light_bg_secondary_text_color_light"
>
#FF888888
</color>
<color
name=
"core_light_bg_secondary2_text_color_light"
>
#FF999999
</color>
<color
name=
"core_light_bg_disable_text_color_light"
>
#FFBBBBBB
</color>
<color
name=
"core_dark_bg_primary_text_color_light"
>
#FFFFFFFF
</color>
<color
name=
"core_primary_bg_color_light"
>
#FFFFFFFF
</color>
<color
name=
"core_bg_color_light"
>
#FFF2F3F5
</color>
<color
name=
"core_primary_color_light"
>
#FF147AFF
</color>
<color
name=
"core_error_tip_color_light"
>
#FFFF584C
</color>
<color
name=
"core_success_tip_color_light"
>
#FF26CB3E
</color>
<color
name=
"core_bubble_bg_color_light"
>
#FFDCEAFD
</color>
<color
name=
"core_divide_color_light"
>
#FFE5E5E5
</color>
<color
name=
"core_border_color_light"
>
#FFDDDDDD
</color>
<color
name=
"core_header_start_color_light"
>
#FFEBF0F6
</color>
<color
name=
"core_header_end_color_light"
>
#FFEBF0F6
</color>
<color
name=
"core_btn_normal_color_light"
>
#FF147AFF
</color>
<color
name=
"core_btn_pressed_color_light"
>
#FF0064E7
</color>
<color
name=
"core_btn_disable_color_light"
>
#4D147AFF
</color>
<!-- 颜色规范 end -->
<color
name=
"core_title_bar_text_bg_light"
>
#FF000000
</color>
</resources>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-light/values/light_styles.xml
deleted
100644 → 0
View file @
86c77660
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style
name=
"TUIBaseLightTheme"
>
<!-- 颜色规范 start -->
<item
name=
"core_light_bg_title_text_color"
>
@color/core_light_bg_title_text_color_light
</item>
<item
name=
"core_light_bg_primary_text_color"
>
@color/core_light_bg_primary_text_color_light
</item>
<item
name=
"core_light_bg_secondary_text_color"
>
@color/core_light_bg_secondary_text_color_light
</item>
<item
name=
"core_light_bg_secondary2_text_color"
>
@color/core_light_bg_secondary2_text_color_light
</item>
<item
name=
"core_light_bg_disable_text_color"
>
@color/core_light_bg_disable_text_color_light
</item>
<item
name=
"core_dark_bg_primary_text_color"
>
@color/core_dark_bg_primary_text_color_light
</item>
<item
name=
"core_primary_bg_color"
>
@color/core_primary_bg_color_light
</item>
<item
name=
"core_bg_color"
>
@color/core_bg_color_light
</item>
<item
name=
"core_primary_color"
>
@color/core_primary_color_light
</item>
<item
name=
"core_error_tip_color"
>
@color/core_error_tip_color_light
</item>
<item
name=
"core_success_tip_color"
>
@color/core_success_tip_color_light
</item>
<item
name=
"core_bubble_bg_color"
>
@color/core_bubble_bg_color_light
</item>
<item
name=
"core_divide_color"
>
@color/core_divide_color_light
</item>
<item
name=
"core_border_color"
>
@color/core_border_color_light
</item>
<item
name=
"core_header_start_color"
>
@color/core_header_start_color_light
</item>
<item
name=
"core_header_end_color"
>
@color/core_header_end_color_light
</item>
<item
name=
"core_btn_normal_color"
>
@color/core_btn_normal_color_light
</item>
<item
name=
"core_btn_pressed_color"
>
@color/core_btn_pressed_color_light
</item>
<item
name=
"core_btn_disable_color"
>
@color/core_btn_disable_color_light
</item>
<!-- 颜色规范 end -->
<item
name=
"core_line_controller_view_switch_btn_selected_bg"
>
@color/core_primary_color_light
</item>
<item
name=
"core_selected_icon"
>
@drawable/core_selected_icon_light
</item>
<item
name=
"core_title_bar_bg"
>
@drawable/core_title_bar_bg_light
</item>
<item
name=
"core_title_bar_text_bg"
>
@color/core_title_bar_text_bg_light
</item>
<item
name=
"core_title_bar_back_icon"
>
@drawable/core_title_bar_back_light
</item>
<item
name=
"core_default_group_icon"
>
@drawable/core_default_group_icon_light
</item>
<item
name=
"core_default_user_icon"
>
@drawable/core_default_user_icon_light
</item>
</style>
</resources>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-lively/drawable-xxhdpi/core_default_group_icon_lively.png
deleted
100644 → 0
View file @
86c77660
7.32 KB
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-lively/drawable-xxhdpi/core_default_user_icon_lively.png
deleted
100644 → 0
View file @
86c77660
38.9 KB
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-lively/drawable-xxhdpi/core_selected_icon_lively.png
deleted
100644 → 0
View file @
86c77660
4.98 KB
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-lively/drawable-xxhdpi/core_title_bar_back_lively.png
deleted
100644 → 0
View file @
86c77660
1.64 KB
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-lively/drawable/core_title_bar_bg_lively.xml
deleted
100644 → 0
View file @
86c77660
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<gradient
android:startColor=
"?attr/core_header_start_color"
android:endColor=
"?attr/core_header_start_color"
/>
</shape>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-lively/values/lively_colors.xml
deleted
100644 → 0
View file @
86c77660
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- 颜色规范 start -->
<color
name=
"core_light_bg_title_text_color_lively"
>
#FF000000
</color>
<color
name=
"core_light_bg_primary_text_color_lively"
>
#FF444444
</color>
<color
name=
"core_light_bg_secondary_text_color_lively"
>
#FF888888
</color>
<color
name=
"core_light_bg_secondary2_text_color_lively"
>
#FF999999
</color>
<color
name=
"core_light_bg_disable_text_color_lively"
>
#FFBBBBBB
</color>
<color
name=
"core_dark_bg_primary_text_color_lively"
>
#FFFFFFFF
</color>
<color
name=
"core_primary_bg_color_lively"
>
#FFFFFFFF
</color>
<color
name=
"core_bg_color_lively"
>
#FFF2F3F5
</color>
<color
name=
"core_primary_color_lively"
>
#FFFF8E82
</color>
<color
name=
"core_error_tip_color_lively"
>
#FFFF584C
</color>
<color
name=
"core_success_tip_color_lively"
>
#FF26CB3E
</color>
<color
name=
"core_bubble_bg_color_lively"
>
#FF9D85
</color>
<color
name=
"core_divide_color_lively"
>
#FFE5E5E5
</color>
<color
name=
"core_border_color_lively"
>
#FFDDDDDD
</color>
<color
name=
"core_header_start_color_lively"
>
#FFFF7B7B
</color>
<color
name=
"core_header_end_color_lively"
>
#FFFFA88B
</color>
<color
name=
"core_btn_normal_color_lively"
>
#FFFF8E82
</color>
<color
name=
"core_btn_pressed_color_lively"
>
#FFF86657
</color>
<color
name=
"core_btn_disable_color_lively"
>
#4DFF8E82
</color>
<!-- 颜色规范 end -->
<color
name=
"core_title_bar_text_bg_lively"
>
#FFFFFFFF
</color>
</resources>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-lively/values/lively_styles.xml
deleted
100644 → 0
View file @
86c77660
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style
name=
"TUIBaseLivelyTheme"
>
<!-- 颜色规范 start -->
<item
name=
"core_light_bg_title_text_color"
>
@color/core_light_bg_title_text_color_lively
</item>
<item
name=
"core_light_bg_primary_text_color"
>
@color/core_light_bg_primary_text_color_lively
</item>
<item
name=
"core_light_bg_secondary_text_color"
>
@color/core_light_bg_secondary_text_color_lively
</item>
<item
name=
"core_light_bg_secondary2_text_color"
>
@color/core_light_bg_secondary2_text_color_lively
</item>
<item
name=
"core_light_bg_disable_text_color"
>
@color/core_light_bg_disable_text_color_lively
</item>
<item
name=
"core_dark_bg_primary_text_color"
>
@color/core_dark_bg_primary_text_color_lively
</item>
<item
name=
"core_primary_bg_color"
>
@color/core_primary_bg_color_lively
</item>
<item
name=
"core_bg_color"
>
@color/core_bg_color_lively
</item>
<item
name=
"core_primary_color"
>
@color/core_primary_color_lively
</item>
<item
name=
"core_error_tip_color"
>
@color/core_error_tip_color_lively
</item>
<item
name=
"core_success_tip_color"
>
@color/core_success_tip_color_lively
</item>
<item
name=
"core_bubble_bg_color"
>
@color/core_bubble_bg_color_lively
</item>
<item
name=
"core_divide_color"
>
@color/core_divide_color_lively
</item>
<item
name=
"core_border_color"
>
@color/core_border_color_lively
</item>
<item
name=
"core_header_start_color"
>
@color/core_header_start_color_lively
</item>
<item
name=
"core_header_end_color"
>
@color/core_header_end_color_lively
</item>
<item
name=
"core_btn_normal_color"
>
@color/core_btn_normal_color_lively
</item>
<item
name=
"core_btn_pressed_color"
>
@color/core_btn_pressed_color_lively
</item>
<item
name=
"core_btn_disable_color"
>
@color/core_btn_disable_color_lively
</item>
<!-- 颜色规范 end -->
<item
name=
"core_line_controller_view_switch_btn_selected_bg"
>
@color/core_primary_color_lively
</item>
<item
name=
"core_selected_icon"
>
@drawable/core_selected_icon_lively
</item>
<item
name=
"core_title_bar_bg"
>
@drawable/core_title_bar_bg_lively
</item>
<item
name=
"core_title_bar_text_bg"
>
@color/core_title_bar_text_bg_lively
</item>
<item
name=
"core_title_bar_back_icon"
>
@drawable/core_title_bar_back_lively
</item>
<item
name=
"core_default_group_icon"
>
@drawable/core_default_group_icon_lively
</item>
<item
name=
"core_default_user_icon"
>
@drawable/core_default_user_icon_lively
</item>
</style>
</resources>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-serious/drawable-xxhdpi/core_default_group_icon_serious.png
deleted
100644 → 0
View file @
86c77660
2.84 KB
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-serious/drawable-xxhdpi/core_default_user_icon_serious.png
deleted
100644 → 0
View file @
86c77660
21.8 KB
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-serious/drawable-xxhdpi/core_selected_icon_serious.png
deleted
100644 → 0
View file @
86c77660
5.1 KB
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-serious/drawable-xxhdpi/core_title_bar_back_serious.png
deleted
100644 → 0
View file @
86c77660
1.64 KB
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-serious/drawable/core_title_bar_bg_serious.xml
deleted
100644 → 0
View file @
86c77660
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<gradient
android:startColor=
"?attr/core_header_start_color"
android:endColor=
"?attr/core_header_start_color"
android:angle=
"270"
/>
</shape>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-serious/values/serious_colors.xml
deleted
100644 → 0
View file @
86c77660
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- 颜色规范 start -->
<color
name=
"core_light_bg_title_text_color_serious"
>
#FF000000
</color>
<color
name=
"core_light_bg_primary_text_color_serious"
>
#FF444444
</color>
<color
name=
"core_light_bg_secondary_text_color_serious"
>
#FF888888
</color>
<color
name=
"core_light_bg_secondary2_text_color_serious"
>
#FF999999
</color>
<color
name=
"core_light_bg_disable_text_color_serious"
>
#FFBBBBBB
</color>
<color
name=
"core_dark_bg_primary_text_color_serious"
>
#FFFFFFFF
</color>
<color
name=
"core_primary_bg_color_serious"
>
#FFFFFFFF
</color>
<color
name=
"core_bg_color_serious"
>
#FFF2F3F5
</color>
<color
name=
"core_primary_color_serious"
>
#FF0052FF
</color>
<color
name=
"core_error_tip_color_serious"
>
#FFFF584C
</color>
<color
name=
"core_success_tip_color_serious"
>
#FF26CB3E
</color>
<color
name=
"core_bubble_bg_color_serious"
>
#FF4F87FF
</color>
<color
name=
"core_divide_color_serious"
>
#FFE5E5E5
</color>
<color
name=
"core_border_color_serious"
>
#FFDDDDDD
</color>
<color
name=
"core_header_start_color_serious"
>
#FF6395FF
</color>
<color
name=
"core_header_end_color_serious"
>
#FF0052FF
</color>
<color
name=
"core_btn_normal_color_serious"
>
#FF0052FF
</color>
<color
name=
"core_btn_pressed_color_serious"
>
#FF0049E4
</color>
<color
name=
"core_btn_disable_color_serious"
>
#4D0052FF
</color>
<!-- 颜色规范 end -->
<color
name=
"core_title_bar_text_bg_serious"
>
#FFFFFFFF
</color>
</resources>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res-serious/values/serious_styles.xml
deleted
100644 → 0
View file @
86c77660
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style
name=
"TUIBaseSeriousTheme"
>
<!-- 颜色规范 start -->
<item
name=
"core_light_bg_title_text_color"
>
@color/core_light_bg_title_text_color_serious
</item>
<item
name=
"core_light_bg_primary_text_color"
>
@color/core_light_bg_primary_text_color_serious
</item>
<item
name=
"core_light_bg_secondary_text_color"
>
@color/core_light_bg_secondary_text_color_serious
</item>
<item
name=
"core_light_bg_secondary2_text_color"
>
@color/core_light_bg_secondary2_text_color_serious
</item>
<item
name=
"core_light_bg_disable_text_color"
>
@color/core_light_bg_disable_text_color_serious
</item>
<item
name=
"core_dark_bg_primary_text_color"
>
@color/core_dark_bg_primary_text_color_serious
</item>
<item
name=
"core_primary_bg_color"
>
@color/core_primary_bg_color_serious
</item>
<item
name=
"core_bg_color"
>
@color/core_bg_color_serious
</item>
<item
name=
"core_primary_color"
>
@color/core_primary_color_serious
</item>
<item
name=
"core_error_tip_color"
>
@color/core_error_tip_color_serious
</item>
<item
name=
"core_success_tip_color"
>
@color/core_success_tip_color_serious
</item>
<item
name=
"core_bubble_bg_color"
>
@color/core_bubble_bg_color_serious
</item>
<item
name=
"core_divide_color"
>
@color/core_divide_color_serious
</item>
<item
name=
"core_border_color"
>
@color/core_border_color_serious
</item>
<item
name=
"core_header_start_color"
>
@color/core_header_start_color_serious
</item>
<item
name=
"core_header_end_color"
>
@color/core_header_end_color_serious
</item>
<item
name=
"core_btn_normal_color"
>
@color/core_btn_normal_color_serious
</item>
<item
name=
"core_btn_pressed_color"
>
@color/core_btn_pressed_color_serious
</item>
<item
name=
"core_btn_disable_color"
>
@color/core_btn_disable_color_serious
</item>
<!-- 颜色规范 end -->
<item
name=
"core_line_controller_view_switch_btn_selected_bg"
>
@color/core_primary_color_serious
</item>
<item
name=
"core_selected_icon"
>
@drawable/core_selected_icon_serious
</item>
<item
name=
"core_title_bar_bg"
>
@drawable/core_title_bar_bg_serious
</item>
<item
name=
"core_title_bar_text_bg"
>
@color/core_title_bar_text_bg_serious
</item>
<item
name=
"core_title_bar_back_icon"
>
@drawable/core_title_bar_back_serious
</item>
<item
name=
"core_default_group_icon"
>
@drawable/core_default_group_icon_serious
</item>
<item
name=
"core_default_user_icon"
>
@drawable/core_default_user_icon_serious
</item>
</style>
</resources>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res/layout/tuicore_selection_activity.xml
deleted
100644 → 0
View file @
86c77660
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<com.tencent.qcloud.tuicore.component.TitleBarLayout
android:id=
"@+id/edit_title_bar"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/core_page_title_height"
/>
<EditText
android:id=
"@+id/edit_content_et"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"10dp"
android:layout_marginTop=
"10dp"
android:layout_marginRight=
"10dp"
android:singleLine=
"true"
android:textCursorDrawable=
"@drawable/core_edit_cursor"
/>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/select_list"
android:background=
"@color/white"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
</LinearLayout>
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res/values-en/strings.xml
deleted
100644 → 0
View file @
86c77660
<resources>
<string
name=
"trtccalling_inviting_tag"
>
They also
</string>
<string
name=
"trtccalling_call_time_default"
>
"00:01"
</string>
<string
name=
"trtccalling_contact_default_name"
>
test 123
</string>
<string
name=
"trtccalling_invite_video_call"
>
Invites you to a video call…
</string>
<string
name=
"trtccalling_start_call"
>
Call
</string>
<string
name=
"trtccalling_search"
>
Search
</string>
<string
name=
"trtccalling_toast_search_fail"
>
Search failed:%1$s.
</string>
<string
name=
"trtccalling_toast_call_error_msg"
>
Error [%1$d]:%2$s.
</string>
<string
name=
"trtccalling_toast_user_reject_call"
>
%1$s declined the call.
</string>
<string
name=
"trtccalling_toast_user_not_response"
>
%1$s didn’t answer.
</string>
<string
name=
"trtccalling_toast_user_busy"
>
%1$s is busy.
</string>
<string
name=
"trtccalling_toast_user_cancel_call"
>
%1$s cancelled the call.
</string>
<string
name=
"trtccalling_toast_user_timeout"
>
%1$s timed out.
</string>
<string
name=
"trtccalling_toast_enable_mute"
>
Muted
</string>
<string
name=
"trtccalling_toast_disable_mute"
>
Unmuted
</string>
<string
name=
"trtccalling_toast_use_speaker"
>
Speaker
</string>
<string
name=
"trtccalling_toast_use_handset"
>
Earpiece
</string>
<string
name=
"trtccalling_called_time_format"
>
%02d:%02d
</string>
<string
name=
"trtccalling_self_phone"
>
Your mobile number:
</string>
<string
name=
"trtccalling_toast_user_end"
>
%s end the call.
</string>
<string
name=
"trtccalling_title_have_a_call_invitation"
>
You have a call invitation.
</string>
<string
name=
"trtccalling_other_party_network_low_quality"
>
The other party\'s network connection is poor
</string>
<string
name=
"trtccalling_self_network_low_quality"
>
Your network connection is poor
</string>
<string
name=
"trtccalling_toast_switch_camera"
>
Switch Camera
</string>
<string
name=
"trtccalling_toast_enable_camera"
>
Camera On
</string>
<string
name=
"trtccalling_toast_disable_camera"
>
Camera Off
</string>
<string
name=
"trtccalling_waiting_be_accepted"
>
Waiting for the user to accept…
</string>
<string
name=
"trtccalling_invite_audio_call"
>
Invited you to an voice call…
</string>
<string
name=
"trtccalling_text_microphone"
>
Mic
</string>
<string
name=
"trtccalling_text_hangup"
>
Hang Up
</string>
<string
name=
"trtccalling_text_reject"
>
Decline
</string>
<string
name=
"trtccalling_text_speaker"
>
Speaker
</string>
<string
name=
"trtccalling_text_dialing"
>
Answer
</string>
<string
name=
"trtccalling_text_camera"
>
Camera
</string>
<string
name=
"trtccalling_switch_camera_hint"
>
Turn on your camera first
</string>
<string
name=
"trtccalling_switch_audio_call"
>
Switch to Voice Call
</string>
<string
name=
"trtccalling_btn_cancel"
>
Cancel
</string>
<string
name=
"trtccalling_tips_start_camera_audio"
>
Please turn on the camera and microphone permissions first
</string>
<string
name=
"trtccalling_tips_start_audio"
>
Please turn on the microphone permissions first
</string>
<string
name=
"trtccalling_video_call"
>
Video Call
</string>
<string
name=
"trtccalling_audio_call"
>
Voice Call
</string>
<string
name=
"trtccalling_user_kicked_offline"
>
You have been kicked off the line. Please log in again!
</string>
<string
name=
"trtccalling_user_sig_expired"
>
Your user signature information has expired
</string>
<string
name=
"trtccalling_user_exceed_limit"
>
TUICalling currently supports call with up to 9 people.For
larger conference calls,try using TUIRoom
</string>
<string
name=
"trtccalling_wait_resonse"
>
Waiting
</string>
<string
name=
"trtccalling_float_permission"
>
please open "Display over other apps" permission
</string>
<string
name=
"trtccalling_is_calling"
>
Unable to restart the call
</string>
</resources>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res/values-zh-rCN/im_error_msg.xml
deleted
100644 → 0
View file @
86c77660
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string
name=
"TUIKitErrorInProcess"
>
执行中
</string>
<string
name=
"TUIKitErrorInvalidParameters"
>
参数无效
</string>
<string
name=
"TUIKitErrorIOOperateFaild"
>
操作本地 IO 错误
</string>
<string
name=
"TUIKitErrorInvalidJson"
>
错误的 JSON 格式
</string>
<string
name=
"TUIKitErrorOutOfMemory"
>
内存不足
</string>
<string
name=
"TUIKitErrorParseResponseFaild"
>
PB 解析失败
</string>
<string
name=
"TUIKitErrorSerializeReqFaild"
>
PB 序列化失败
</string>
<string
name=
"TUIKitErrorSDKNotInit"
>
IM SDK 未初始化
</string>
<string
name=
"TUIKitErrorLoadMsgFailed"
>
加载本地数据库操作失败
</string>
<string
name=
"TUIKitErrorDatabaseOperateFailed"
>
本地数据库操作失败
</string>
<string
name=
"TUIKitErrorCrossThread"
>
跨线程错误
</string>
<string
name=
"TUIKitErrorTinyIdEmpty"
>
用户信息为空
</string>
<string
name=
"TUIKitErrorInvalidIdentifier"
>
Identifier 非法
</string>
<string
name=
"TUIKitErrorFileNotFound"
>
文件不存在
</string>
<string
name=
"TUIKitErrorFileTooLarge"
>
文件大小超出了限制
</string>
<string
name=
"TUIKitErrorEmptyFile"
>
空文件
</string>
<string
name=
"TUIKitErrorFileOpenFailed"
>
文件打开失败
</string>
<string
name=
"TUIKitErrorNotLogin"
>
IM SDK 未登陆
</string>
<string
name=
"TUIKitErrorNoPreviousLogin"
>
并没有登录过该用户
</string>
<string
name=
"TUIKitErrorUserSigExpired"
>
UserSig 过期
</string>
<string
name=
"TUIKitErrorLoginKickedOffByOther"
>
其他终端登录同一账号
</string>
<string
name=
"TUIKitErrorTLSSDKInit"
>
TLS SDK 初始化失败
</string>
<string
name=
"TUIKitErrorTLSSDKUninit"
>
TLS SDK 未初始化
</string>
<string
name=
"TUIKitErrorTLSSDKTRANSPackageFormat"
>
TLS SDK TRANS 包格式错误
</string>
<string
name=
"TUIKitErrorTLSDecrypt"
>
TLS SDK 解密失败
</string>
<string
name=
"TUIKitErrorTLSSDKRequest"
>
TLS SDK 请求失败
</string>
<string
name=
"TUIKitErrorTLSSDKRequestTimeout"
>
TLS SDK 请求超时
</string>
<string
name=
"TUIKitErrorInvalidConveration"
>
会话无效
</string>
<string
name=
"TUIKitErrorFileTransAuthFailed"
>
文件传输鉴权失败
</string>
<string
name=
"TUIKitErrorFileTransNoServer"
>
文件传输获取 Server 列表失败
</string>
<string
name=
"TUIKitErrorFileTransUploadFailed"
>
文件传输上传失败,请检查网络是否连接
</string>
<string
name=
"TUIKitErrorFileTransUploadFailedNotImage"
>
文件传输上传失败,请检查上传的图片是否能够正常打开
</string>
<string
name=
"TUIKitErrorFileTransDownloadFailed"
>
文件传输下载失败,请检查网络,或者文件、语音是否已经过期
</string>
<string
name=
"TUIKitErrorHTTPRequestFailed"
>
HTTP 请求失败
</string>
<string
name=
"TUIKitErrorInvalidMsgElem"
>
IM SDK 无效消息 elem
</string>
<string
name=
"TUIKitErrorInvalidSDKObject"
>
无效的对象
</string>
<string
name=
"TUIKitSDKMsgBodySizeLimit"
>
消息长度超出限制
</string>
<string
name=
"TUIKitErrorSDKMsgKeyReqDifferRsp"
>
消息 KEY 错误
</string>
<string
name=
"TUIKitErrorSDKGroupInvalidID"
>
群组 ID 非法,自定义群组 ID 必须为可打印 ASCII 字符(0x20-0x7e),最长48个字节,且前缀不能为 @TGS#
</string>
<string
name=
"TUIKitErrorSDKGroupInvalidName"
>
群名称非法,群名称最长30字节
</string>
<string
name=
"TUIKitErrorSDKGroupInvalidIntroduction"
>
群简介非法,群简介最长240字节
</string>
<string
name=
"TUIKitErrorSDKGroupInvalidNotification"
>
群公告非法,群公告最长300字节
</string>
<string
name=
"TUIKitErrorSDKGroupInvalidFaceURL"
>
群头像 URL 非法,群头像 URL 最长100字节
</string>
<string
name=
"TUIKitErrorSDKGroupInvalidNameCard"
>
群名片非法,群名片最长50字节
</string>
<string
name=
"TUIKitErrorSDKGroupMemberCountLimit"
>
超过群组成员数的限制
</string>
<string
name=
"TUIKitErrorSDKGroupJoinPrivateGroupDeny"
>
不允许申请加入 Private 群组
</string>
<string
name=
"TUIKitErrorSDKGroupInviteSuperDeny"
>
不允许邀请角色为群主的成员
</string>
<string
name=
"TUIKitErrorSDKGroupInviteNoMember"
>
不允许邀请0个成员
</string>
<string
name=
"TUIKitErrorSDKFriendShipInvalidProfileKey"
>
资料字段非法
</string>
<string
name=
"TUIKitErrorSDKFriendshipInvalidAddRemark"
>
备注字段非法,最大96字节
</string>
<string
name=
"TUIKitErrorSDKFriendshipInvalidAddWording"
>
请求添加好友的请求说明字段非法,最大120字节
</string>
<string
name=
"TUIKitErrorSDKFriendshipInvalidAddSource"
>
请求添加好友的添加来源字段非法,来源需要添加“AddSource_Type_”前缀。
</string>
<string
name=
"TUIKitErrorSDKFriendshipFriendGroupEmpty"
>
好友分组字段非法,必须不为空,每个分组的名称最长30字节
</string>
<string
name=
"TUIKitErrorSDKNetEncodeFailed"
>
网络链接加密失败
</string>
<string
name=
"TUIKitErrorSDKNetDecodeFailed"
>
网络链接解密失败
</string>
<string
name=
"TUIKitErrorSDKNetAuthInvalid"
>
网络链接未完成鉴权
</string>
<string
name=
"TUIKitErrorSDKNetCompressFailed"
>
数据包压缩失败
</string>
<string
name=
"TUIKitErrorSDKNetUncompressFaile"
>
数据包解压失败
</string>
<string
name=
"TUIKitErrorSDKNetFreqLimit"
>
调用频率限制,最大每秒发起 5 次请求
</string>
<string
name=
"TUIKitErrorSDKnetReqCountLimit"
>
请求队列満,超过同时请求的数量限制,最大同时发起1000个请求。
</string>
<string
name=
"TUIKitErrorSDKNetDisconnect"
>
网络已断开,未建立连接,或者建立 socket 连接时,检测到无网络。
</string>
<string
name=
"TUIKitErrorSDKNetAllreadyConn"
>
网络连接已建立,重复创建连接
</string>
<string
name=
"TUIKitErrorSDKNetConnTimeout"
>
建立网络连接超时,请等网络恢复后重试。
</string>
<string
name=
"TUIKitErrorSDKNetConnRefuse"
>
网络连接已被拒绝,请求过于频繁,服务端拒绝服务。
</string>
<string
name=
"TUIKitErrorSDKNetNetUnreach"
>
没有到达网络的可用路由,请等网络恢复后重试。
</string>
<string
name=
"TUIKitErrorSDKNetSocketNoBuff"
>
系统中没有足够的缓冲区空间资源可用来完成调用,系统过于繁忙,内部错误。
</string>
<string
name=
"TUIKitERRORSDKNetResetByPeer"
>
对端重置了连接
</string>
<string
name=
"TUIKitErrorSDKNetSOcketInvalid"
>
socket 套接字无效
</string>
<string
name=
"TUIKitErrorSDKNetHostGetAddressFailed"
>
IP 地址解析失败
</string>
<string
name=
"TUIKitErrorSDKNetConnectReset"
>
网络连接到中间节点或服务端重置
</string>
<string
name=
"TUIKitErrorSDKNetWaitInQueueTimeout"
>
请求包等待进入待发送队列超时
</string>
<string
name=
"TUIKitErrorSDKNetWaitSendTimeout"
>
请求包已进入待发送队列,等待进入系统的网络 buffer 超时
</string>
<string
name=
"TUIKitErrorSDKNetWaitAckTimeut"
>
请求包已进入系统的网络 buffer ,等待服务端回包超时
</string>
<string
name=
"TUIKitErrorSDKSVRSSOConnectLimit"
>
Server 的连接数量超出限制,服务端拒绝服务。
</string>
<string
name=
"TUIKitErrorSDKSVRSSOVCode"
>
验证码下发超时。
</string>
<string
name=
"TUIKitErrorSVRSSOD2Expired"
>
Key 过期。Key 是根据 UserSig 生成的内部票据,Key 的有效期小于或等于 UserSig 的有效期。请重新调用 TIMManager.getInstance().login 登录接口生成新的 Key。
</string>
<string
name=
"TUIKitErrorSVRA2UpInvalid"
>
Ticket 过期。Ticket 是根据 UserSig 生成的内部票据,Ticket 的有效期小于或等于 UserSig 的有效期。请重新调用 TIMManager.getInstance().login 登录接口生成新的 Ticket。
</string>
<string
name=
"TUIKitErrorSVRA2DownInvalid"
>
票据验证没通过或者被安全打击。请重新调用 TIMManager.getInstance().login 登录接口生成新的票据。
</string>
<string
name=
"TUIKitErrorSVRSSOEmpeyKey"
>
不允许空 Key。
</string>
<string
name=
"TUIKitErrorSVRSSOUinInvalid"
>
Key 中的帐号和请求包头的帐号不匹配。
</string>
<string
name=
"TUIKitErrorSVRSSOVCodeTimeout"
>
验证码下发超时。
</string>
<string
name=
"TUIKitErrorSVRSSONoImeiAndA2"
>
需要带上 Key 和 Ticket。
</string>
<string
name=
"TUIKitErrorSVRSSOCookieInvalid"
>
Cookie 检查不匹配。
</string>
<string
name=
"TUIKitErrorSVRSSODownTips"
>
下发提示语,Key 过期。
</string>
<string
name=
"TUIKitErrorSVRSSODisconnect"
>
断链锁屏。
</string>
<string
name=
"TUIKitErrorSVRSSOIdentifierInvalid"
>
失效身份。
</string>
<string
name=
"TUIKitErrorSVRSSOClientClose"
>
终端自动退出。
</string>
<string
name=
"TUIKitErrorSVRSSOMSFSDKQuit"
>
MSFSDK 自动退出。
</string>
<string
name=
"TUIKitErrorSVRSSOD2KeyWrong"
>
解密失败次数超过阈值,通知终端需要重置,请重新调用 TIMManager.getInstance().login 登录接口生成新的 Key。
</string>
<string
name=
"TUIKitErrorSVRSSOUnsupport"
>
不支持聚合,给终端返回统一的错误码。终端在该 TCP 长连接上停止聚合。
</string>
<string
name=
"TUIKitErrorSVRSSOPrepaidArrears"
>
预付费欠费。
</string>
<string
name=
"TUIKitErrorSVRSSOPacketWrong"
>
请求包格式错误。
</string>
<string
name=
"TUIKitErrorSVRSSOAppidBlackList"
>
SDKAppID 黑名单。
</string>
<string
name=
"TUIKitErrorSVRSSOCmdBlackList"
>
SDKAppID 设置 service cmd 黑名单。
</string>
<string
name=
"TUIKitErrorSVRSSOAppidWithoutUsing"
>
SDKAppID 停用。
</string>
<string
name=
"TUIKitErrorSVRSSOFreqLimit"
>
频率限制(用户),频率限制是设置针对某一个协议的每秒请求数的限制。
</string>
<string
name=
"TUIKitErrorSVRSSOOverload"
>
过载丢包(系统),连接的服务端处理过多请求,处理不过来,拒绝服务。
</string>
<string
name=
"TUIKitErrorSVRResNotFound"
>
要发送的资源文件不存在。
</string>
<string
name=
"TUIKitErrorSVRResAccessDeny"
>
要发送的资源文件不允许访问。
</string>
<string
name=
"TUIKitErrorSVRResSizeLimit"
>
文件大小超过限制。
</string>
<string
name=
"TUIKitErrorSVRResSendCancel"
>
用户取消发送,如发送过程中登出等原因。
</string>
<string
name=
"TUIKitErrorSVRResReadFailed"
>
读取文件内容失败。
</string>
<string
name=
"TUIKitErrorSVRResTransferTimeout"
>
资源文件传输超时
</string>
<string
name=
"TUIKitErrorSVRResInvalidParameters"
>
参数非法。
</string>
<string
name=
"TUIKitErrorSVRResInvalidFileMd5"
>
文件 MD5 校验失败。
</string>
<string
name=
"TUIKitErrorSVRResInvalidPartMd5"
>
分片 MD5 校验失败。
</string>
<string
name=
"TUIKitErrorSVRCommonInvalidHttpUrl"
>
HTTP 解析错误 ,请检查 HTTP 请求 URL 格式。
</string>
<string
name=
"TUIKitErrorSVRCommomReqJsonParseFailed"
>
HTTP 请求 JSON 解析错误,请检查 JSON 格式。
</string>
<string
name=
"TUIKitErrorSVRCommonInvalidAccount"
>
请求 URI 或 JSON 包体中 Identifier 或 UserSig 错误。
</string>
<string
name=
"TUIKitErrorSVRCommonInvalidSdkappid"
>
SDKAppID 失效,请核对 SDKAppID 有效性。
</string>
<string
name=
"TUIKitErrorSVRCommonRestFreqLimit"
>
REST 接口调用频率超过限制,请降低请求频率。
</string>
<string
name=
"TUIKitErrorSVRCommonRequestTimeout"
>
服务请求超时或 HTTP 请求格式错误,请检查并重试。
</string>
<string
name=
"TUIKitErrorSVRCommonInvalidRes"
>
请求资源错误,请检查请求 URL。
</string>
<string
name=
"TUIKitErrorSVRCommonIDNotAdmin"
>
REST API 请求的 Identifier 字段请填写 App 管理员帐号。
</string>
<string
name=
"TUIKitErrorSVRCommonSdkappidFreqLimit"
>
SDKAppID 请求频率超限,请降低请求频率。
</string>
<string
name=
"TUIKitErrorSVRCommonSdkappidMiss"
>
REST 接口需要带 SDKAppID,请检查请求 URL 中的 SDKAppID。
</string>
<string
name=
"TUIKitErrorSVRCommonRspJsonParseFailed"
>
HTTP 响应包 JSON 解析错误。
</string>
<string
name=
"TUIKitErrorSVRCommonExchangeAccountTimeout"
>
置换帐号超时。
</string>
<string
name=
"TUIKitErrorSVRCommonInvalidIdFormat"
>
请求包体 Identifier 类型错误,请确认 Identifier 为字符串格式。
</string>
<string
name=
"TUIKitErrorSVRCommonSDkappidForbidden"
>
SDKAppID 被禁用
</string>
<string
name=
"TUIKitErrorSVRCommonReqForbidden"
>
请求被禁用
</string>
<string
name=
"TUIKitErrorSVRCommonReqFreqLimit"
>
请求过于频繁,请稍后重试。
</string>
<string
name=
"TUIKitErrorSVRCommonInvalidService"
>
您的专业版套餐包已到期并停用,请登录 即时通信 IM 购买页面 重新购买套餐包。购买后,将在5分钟后生效。
</string>
<string
name=
"TUIKitErrorSVRCommonSensitiveText"
>
文本安全打击,文本中可能包含敏感词汇。
</string>
<string
name=
"TUIKitErrorSVRCommonBodySizeLimit"
>
发消息包体过长,目前支持最大8k消息包体长度,请减少包体大小重试。
</string>
<string
name=
"TUIKitErrorSVRAccountUserSigExpired"
>
UserSig 已过期,请重新生成 UserSig
</string>
<string
name=
"TUIKitErrorSVRAccountUserSigEmpty"
>
UserSig 长度为0
</string>
<string
name=
"TUIKitErrorSVRAccountUserSigCheckFailed"
>
UserSig 校验失败
</string>
<string
name=
"TUIKitErrorSVRAccountUserSigMismatchPublicKey"
>
用公钥验证 UserSig 失败
</string>
<string
name=
"TUIKitErrorSVRAccountUserSigMismatchId"
>
请求的 Identifier 与生成 UserSig 的 Identifier 不匹配。
</string>
<string
name=
"TUIKitErrorSVRAccountUserSigMismatchSdkAppid"
>
请求的 SDKAppID 与生成 UserSig 的 SDKAppID 不匹配。
</string>
<string
name=
"TUIKitErrorSVRAccountUserSigPublicKeyNotFound"
>
验证 UserSig 时公钥不存在
</string>
<string
name=
"TUIKitErrorSVRAccountUserSigSdkAppidNotFount"
>
SDKAppID 未找到,请在云通信 IM 控制台确认应用信息。
</string>
<string
name=
"TUIKitErrorSVRAccountInvalidUserSig"
>
UserSig 已经失效,请重新生成,再次尝试。
</string>
<string
name=
"TUIKitErrorSVRAccountNotFound"
>
请求的用户帐号不存在。
</string>
<string
name=
"TUIKitErrorSVRAccountSecRstr"
>
安全原因被限制。
</string>
<string
name=
"TUIKitErrorSVRAccountInternalTimeout"
>
服务端内部超时,请重试。
</string>
<string
name=
"TUIKitErrorSVRAccountInvalidCount"
>
请求中批量数量不合法。
</string>
<string
name=
"TUIkitErrorSVRAccountINvalidParameters"
>
参数非法,请检查必填字段是否填充,或者字段的填充是否满足协议要求。
</string>
<string
name=
"TUIKitErrorSVRAccountAdminRequired"
>
请求需要 App 管理员权限。
</string>
<string
name=
"TUIKitErrorSVRAccountFreqLimit"
>
因失败且重试次数过多导致被限制,请检查 UserSig 是否正确,一分钟之后再试。
</string>
<string
name=
"TUIKitErrorSVRAccountBlackList"
>
帐号被拉入黑名单。
</string>
<string
name=
"TUIKitErrorSVRAccountCountLimit"
>
创建帐号数量超过免费体验版数量限制,请升级为专业版。
</string>
<string
name=
"TUIKitErrorSVRAccountInternalError"
>
服务端内部错误,请重试。
</string>
<string
name=
"TUIKitErrorSVRProfileInvalidParameters"
>
请求参数错误,请根据错误描述检查请求是否正确。
</string>
<string
name=
"TUIKitErrorSVRProfileAccountMiss"
>
请求参数错误,没有指定需要拉取资料的用户帐号。
</string>
<string
name=
"TUIKitErrorSVRProfileAccountNotFound"
>
请求的用户帐号不存在。
</string>
<string
name=
"TUIKitErrorSVRProfileAdminRequired"
>
请求需要 App 管理员权限。
</string>
<string
name=
"TUIKitErrorSVRProfileSensitiveText"
>
资料字段中包含敏感词。
</string>
<string
name=
"TUIKitErrorSVRProfileInternalError"
>
服务端内部错误,请稍后重试。
</string>
<string
name=
"TUIKitErrorSVRProfileReadWritePermissionRequired"
>
没有资料字段的读权限,详情可参见 资料字段。
</string>
<string
name=
"TUIKitErrorSVRProfileTagNotFound"
>
资料字段的 Tag 不存在。
</string>
<string
name=
"TUIKitErrorSVRProfileSizeLimit"
>
资料字段的 Value 长度超过500字节。
</string>
<string
name=
"TUIKitErrorSVRProfileValueError"
>
标配资料字段的 Value 错误,详情可参见 标配资料字段。
</string>
<string
name=
"TUIKitErrorSVRProfileInvalidValueFormat"
>
资料字段的 Value 类型不匹配,详情可参见 标配资料字段。
</string>
<string
name=
"TUIKitErrorSVRFriendshipInvalidParameters"
>
请求参数错误,请根据错误描述检查请求是否正确。
</string>
<string
name=
"TUIKitErrorSVRFriendshipInvalidSdkAppid"
>
SDKAppID 不匹配。
</string>
<string
name=
"TUIKitErrorSVRFriendshipAccountNotFound"
>
请求的用户帐号不存在。
</string>
<string
name=
"TUIKitErrorSVRFriendshipAdminRequired"
>
请求需要 App 管理员权限。
</string>
<string
name=
"TUIKitErrorSVRFriendshipSensitiveText"
>
关系链字段中包含敏感词。
</string>
<string
name=
"TUIKitErrorSVRFriendshipNetTimeout"
>
网络超时,请稍后重试。
</string>
<string
name=
"TUIKitErrorSVRFriendshipWriteConflict"
>
并发写导致写冲突,建议使用批量方式。
</string>
<string
name=
"TUIKitErrorSVRFriendshipAddFriendDeny"
>
后台禁止该用户发起加好友请求。
</string>
<string
name=
"TUIkitErrorSVRFriendshipCountLimit"
>
自己的好友数已达系统上限。
</string>
<string
name=
"TUIKitErrorSVRFriendshipGroupCountLimit"
>
分组已达系统上限。
</string>
<string
name=
"TUIKitErrorSVRFriendshipPendencyLimit"
>
未决数已达系统上限。
</string>
<string
name=
"TUIKitErrorSVRFriendshipBlacklistLimit"
>
黑名单数已达系统上限。
</string>
<string
name=
"TUIKitErrorSVRFriendshipPeerFriendLimit"
>
对方的好友数已达系统上限。
</string>
<string
name=
"TUIKitErrorSVRFriendshipInSelfBlacklist"
>
对方在自己的黑名单中,不允许加好友。
</string>
<string
name=
"TUIKitErrorSVRFriendshipAllowTypeDenyAny"
>
对方的加好友验证方式是不允许任何人添加自己为好友。
</string>
<string
name=
"TUIKitErrorSVRFriendshipInPeerBlackList"
>
自己在对方的黑名单中,不允许加好友。
</string>
<string
name=
"TUIKitErrorSVRFriendshipAllowTypeNeedConfirm"
>
请求已发送,等待对方同意
</string>
<string
name=
"TUIKitErrorSVRFriendshipAddFriendSecRstr"
>
添加好友请求被安全策略打击,请勿频繁发起添加好友请求。
</string>
<string
name=
"TUIKitErrorSVRFriendshipPendencyNotFound"
>
请求的未决不存在。
</string>
<string
name=
"TUIKitErrorSVRFriendshipDelFriendSecRstr"
>
删除好友请求被安全策略打击,请勿频繁发起删除好友请求。
</string>
<string
name=
"TUIKirErrorSVRFriendAccountNotFoundEx"
>
请求的用户帐号不存在。
</string>
<string
name=
"TUIKitErrorSVRMsgPkgParseFailed"
>
解析请求包失败。
</string>
<string
name=
"TUIKitErrorSVRMsgInternalAuthFailed"
>
内部鉴权失败。
</string>
<string
name=
"TUIKitErrorSVRMsgInvalidId"
>
Identifier 无效
</string>
<string
name=
"TUIKitErrorSVRMsgNetError"
>
网络异常,请重试。
</string>
<string
name=
"TUIKitErrorSVRMsgPushDeny"
>
触发发送单聊消息之前回调,App 后台返回禁止下发该消息。
</string>
<string
name=
"TUIKitErrorSVRMsgInPeerBlackList"
>
发送单聊消息,被对方拉黑,禁止发送。
</string>
<string
name=
"TUIKitErrorSVRMsgBothNotFriend"
>
消息发送双方互相不是好友,禁止发送。
</string>
<string
name=
"TUIKitErrorSVRMsgNotPeerFriend"
>
发送单聊消息,自己不是对方的好友(单向关系),禁止发送。
</string>
<string
name=
"TUIkitErrorSVRMsgNotSelfFriend"
>
发送单聊消息,对方不是自己的好友(单向关系),禁止发送。
</string>
<string
name=
"TUIKitErrorSVRMsgShutupDeny"
>
因禁言,禁止发送消息。
</string>
<string
name=
"TUIKitErrorSVRMsgRevokeTimeLimit"
>
消息撤回超过了时间限制(默认2分钟)。
</string>
<string
name=
"TUIKitErrorSVRMsgDelRambleInternalError"
>
删除漫游内部错误。
</string>
<string
name=
"TUIKitErrorSVRMsgJsonParseFailed"
>
JSON 格式解析失败,请检查请求包是否符合 JSON 规范。
</string>
<string
name=
"TUIKitErrorSVRMsgInvalidJsonBodyFormat"
>
JSON 格式请求包中 MsgBody 不符合消息格式描述
</string>
<string
name=
"TUIKitErrorSVRMsgInvalidToAccount"
>
JSON 格式请求包体中缺少 To_Account 字段或者 To_Account 字段不是 Integer 类型
</string>
<string
name=
"TUIKitErrorSVRMsgInvalidRand"
>
JSON 格式请求包体中缺少 MsgRandom 字段或者 MsgRandom 字段不是 Integer 类型
</string>
<string
name=
"TUIKitErrorSVRMsgInvalidTimestamp"
>
JSON 格式请求包体中缺少 MsgTimeStamp 字段或者 MsgTimeStamp 字段不是 Integer 类型
</string>
<string
name=
"TUIKitErrorSVRMsgBodyNotArray"
>
JSON 格式请求包体中 MsgBody 类型不是 Array 类型
</string>
<string
name=
"TUIKitErrorSVRMsgInvalidJsonFormat"
>
JSON 格式请求包不符合消息格式描述
</string>
<string
name=
"TUIKitErrorSVRMsgToAccountCountLimit"
>
批量发消息目标帐号超过500
</string>
<string
name=
"TUIKitErrorSVRMsgToAccountNotFound"
>
To_Account 没有注册或不存在
</string>
<string
name=
"TUIKitErrorSVRMsgTimeLimit"
>
消息离线存储时间错误(最多不能超过7天)。
</string>
<string
name=
"TUIKitErrorSVRMsgInvalidSyncOtherMachine"
>
JSON 格式请求包体中 SyncOtherMachine 字段不是 Integer 类型
</string>
<string
name=
"TUIkitErrorSVRMsgInvalidMsgLifeTime"
>
JSON 格式请求包体中 MsgLifeTime 字段不是 Integer 类型
</string>
<string
name=
"TUIKitErrorSVRMsgBodySizeLimit"
>
JSON 数据包超长,消息包体请不要超过8k。
</string>
<string
name=
"TUIKitErrorSVRmsgLongPollingCountLimit"
>
Web 端长轮询被踢(Web 端同时在线实例个数超出限制)。
</string>
<string
name=
"TUIKitErrorSVRGroupApiNameError"
>
请求中的接口名称错误
</string>
<string
name=
"TUIKitErrorSVRGroupAccountCountLimit"
>
请求包体中携带的帐号数量过多。
</string>
<string
name=
"TUIkitErrorSVRGroupFreqLimit"
>
操作频率限制,请尝试降低调用的频率。
</string>
<string
name=
"TUIKitErrorSVRGroupPermissionDeny"
>
操作权限不足
</string>
<string
name=
"TUIKitErrorSVRGroupInvalidReq"
>
请求非法
</string>
<string
name=
"TUIKitErrorSVRGroupSuperNotAllowQuit"
>
该群不允许群主主动退出。
</string>
<string
name=
"TUIKitErrorSVRGroupNotFound"
>
群组不存在
</string>
<string
name=
"TUIKitErrorSVRGroupJsonParseFailed"
>
解析 JSON 包体失败,请检查包体的格式是否符合 JSON 格式。
</string>
<string
name=
"TUIKitErrorSVRGroupInvalidId"
>
发起操作的 Identifier 非法,请检查发起操作的用户 Identifier 是否填写正确。
</string>
<string
name=
"TUIKitErrorSVRGroupAllreadyMember"
>
被邀请加入的用户已经是群成员。
</string>
<string
name=
"TUIKitErrorSVRGroupFullMemberCount"
>
群已满员,无法将请求中的用户加入群组
</string>
<string
name=
"TUIKitErrorSVRGroupInvalidGroupId"
>
群组 ID 非法,请检查群组 ID 是否填写正确。
</string>
<string
name=
"TUIKitErrorSVRGroupRejectFromThirdParty"
>
App 后台通过第三方回调拒绝本次操作。
</string>
<string
name=
"TUIKitErrorSVRGroupShutDeny"
>
因被禁言而不能发送消息,请检查发送者是否被设置禁言。
</string>
<string
name=
"TUIKitErrorSVRGroupRspSizeLimit"
>
应答包长度超过最大包长
</string>
<string
name=
"TUIKitErrorSVRGroupAccountNotFound"
>
请求的用户帐号不存在。
</string>
<string
name=
"TUIKitErrorSVRGroupGroupIdInUse"
>
群组 ID 已被使用,请选择其他的群组 ID。
</string>
<string
name=
"TUIKitErrorSVRGroupSendMsgFreqLimit"
>
发消息的频率超限,请延长两次发消息时间的间隔。
</string>
<string
name=
"TUIKitErrorSVRGroupReqAllreadyBeenProcessed"
>
此邀请或者申请请求已经被处理。
</string>
<string
name=
"TUIKitErrorSVRGroupGroupIdUserdForSuper"
>
群组 ID 已被使用,并且操作者为群主,可以直接使用。
</string>
<string
name=
"TUIKitErrorSVRGroupSDkAppidDeny"
>
该 SDKAppID 请求的命令字已被禁用
</string>
<string
name=
"TUIKitErrorSVRGroupRevokeMsgNotFound"
>
请求撤回的消息不存在。
</string>
<string
name=
"TUIKitErrorSVRGroupRevokeMsgTimeLimit"
>
消息撤回超过了时间限制(默认2分钟)。
</string>
<string
name=
"TUIKitErrorSVRGroupRevokeMsgDeny"
>
请求撤回的消息不支持撤回操作。
</string>
<string
name=
"TUIKitErrorSVRGroupNotAllowRevokeMsg"
>
群组类型不支持消息撤回操作。
</string>
<string
name=
"TUIKitErrorSVRGroupRemoveMsgDeny"
>
该消息类型不支持删除操作。
</string>
<string
name=
"TUIKitErrorSVRGroupNotAllowRemoveMsg"
>
音视频聊天室和在线成员广播大群不支持删除消息。
</string>
<string
name=
"TUIKitErrorSVRGroupAvchatRoomCountLimit"
>
音视频聊天室创建数量超过了限制
</string>
<string
name=
"TUIKitErrorSVRGroupCountLimit"
>
单个用户可创建和加入的群组数量超过了限制”。
</string>
<string
name=
"TUIKitErrorSVRGroupMemberCountLimit"
>
群成员数量超过限制
</string>
<string
name=
"TUIKitErrorSVRNoSuccessResult"
>
批量操作无成功结果
</string>
<string
name=
"TUIKitErrorSVRToUserInvalid"
>
IM: 无效接收方
</string>
<string
name=
"TUIKitErrorSVRRequestTimeout"
>
请求超时
</string>
<string
name=
"TUIKitErrorSVRInitCoreFail"
>
INIT CORE模块失败
</string>
<string
name=
"TUIKitErrorExpiredSessionNode"
>
SessionNode为null
</string>
<string
name=
"TUIKitErrorLoggedOutBeforeLoginFinished"
>
在登录完成前进行了登出(在登录时返回)
</string>
<string
name=
"TUIKitErrorTLSSDKNotInitialized"
>
tlssdk未初始化
</string>
<string
name=
"TUIKitErrorTLSSDKUserNotFound"
>
TLSSDK没有找到相应的用户信息
</string>
<string
name=
"TUIKitErrorBindFaildRegTimeout"
>
注册超时
</string>
<string
name=
"TUIKitErrorBindFaildIsBinding"
>
正在bind操作中
</string>
<string
name=
"TUIKitErrorPacketFailUnknown"
>
发包未知错误
</string>
<string
name=
"TUIKitErrorPacketFailReqNoNet"
>
发送请求包时没有网络,处理时转换成case ERR_REQ_NO_NET_ON_REQ:
</string>
<string
name=
"TUIKitErrorPacketFailRespNoNet"
>
发送回复包时没有网络,处理时转换成case ERR_REQ_NO_NET_ON_RSP:
</string>
<string
name=
"TUIKitErrorPacketFailReqNoAuth"
>
发送请求包时没有权限
</string>
<string
name=
"TUIKitErrorPacketFailSSOErr"
>
SSO错误
</string>
<string
name=
"TUIKitErrorPacketFailRespTimeout"
>
回复超时
</string>
<string
name=
"TUIKitErrorFriendshipProxySyncing"
>
proxy_manager没有完成svr数据同步
</string>
<string
name=
"TUIKitErrorFriendshipProxySyncedFail"
>
proxy_manager同步失败
</string>
<string
name=
"TUIKitErrorFriendshipProxyLocalCheckErr"
>
proxy_manager请求参数,在本地检查不合法
</string>
<string
name=
"TUIKitErrorGroupInvalidField"
>
group assistant请求字段中包含非预设字段
</string>
<string
name=
"TUIKitErrorGroupStoreageDisabled"
>
group assistant群资料本地存储没有开启
</string>
<string
name=
"TUIKitErrorLoadGrpInfoFailed"
>
无法从存储中加载groupinfo
</string>
<string
name=
"TUIKitErrorReqNoNetOnReq"
>
请求的时候没有网络
</string>
<string
name=
"TUIKitErrorReqNoNetOnResp"
>
响应的时候没有网络
</string>
<string
name=
"TUIKitErrorServiceNotReady"
>
QALSDK服务未就绪
</string>
<string
name=
"TUIKitErrorLoginAuthFailed"
>
账号认证失败(用户信息获取失败)
</string>
<string
name=
"TUIKitErrorNeverConnectAfterLaunch"
>
在应用启动后没有尝试联网
</string>
<string
name=
"TUIKitErrorReqFailed"
>
QAL执行失败
</string>
<string
name=
"TUIKitErrorReqInvaidReq"
>
请求非法,toMsgService非法
</string>
<string
name=
"TUIKitErrorReqOnverLoaded"
>
请求队列满
</string>
<string
name=
"TUIKitErrorReqKickOff"
>
已经被其他终端踢了
</string>
<string
name=
"TUIKitErrorReqServiceSuspend"
>
服务被暂停
</string>
<string
name=
"TUIKitErrorReqInvalidSign"
>
SSO签名错误
</string>
<string
name=
"TUIKitErrorReqInvalidCookie"
>
SSO cookie无效
</string>
<string
name=
"TUIKitErrorLoginTlsRspParseFailed"
>
登录时TLS回包校验,包体长度错误
</string>
<string
name=
"TUIKitErrorLoginOpenMsgTimeout"
>
登录时OPENSTATSVC向OPENMSG上报状态超时
</string>
<string
name=
"TUIKitErrorLoginOpenMsgRspParseFailed"
>
登录时OPENSTATSVC向OPENMSG上报状态时解析回包失败
</string>
<string
name=
"TUIKitErrorLoginTslDecryptFailed"
>
登录时TLS解密失败
</string>
<string
name=
"TUIKitErrorWifiNeedAuth"
>
wifi需要认证
</string>
<string
name=
"TUIKitErrorUserCanceled"
>
用户已取消
</string>
<string
name=
"TUIkitErrorRevokeTimeLimitExceed"
>
消息撤回超过了时间限制(默认2分钟)
</string>
<string
name=
"TUIKitErrorLackUGExt"
>
缺少UGC扩展包
</string>
<string
name=
"TUIKitErrorAutoLoginNeedUserSig"
>
自动登录,本地票据过期,需要userSig手动登录
</string>
<string
name=
"TUIKitErrorQALNoShortConneAvailable"
>
没有可用的短连接sso
</string>
<string
name=
"TUIKitErrorReqContentAttach"
>
消息内容安全打击
</string>
<string
name=
"TUIKitErrorLoginSigExpire"
>
登录返回,票据过期
</string>
<string
name=
"TUIKitErrorSDKHadInit"
>
SDK 已经初始化无需重复初始化
</string>
<string
name=
"TUIKitErrorOpenBDHBase"
>
openbdh 错误码
</string>
<string
name=
"TUIKitErrorRequestNoNetOnReq"
>
请求时没有网络,请等网络恢复后重试
</string>
<string
name=
"TUIKitErrorRequestNoNetOnRsp"
>
响应时没有网络,请等网络恢复后重试
</string>
<string
name=
"TUIKitErrorRequestOnverLoaded"
>
请求队列満
</string>
</resources>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res/values-zh-rCN/strings.xml
deleted
100644 → 0
View file @
86c77660
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string
name=
"open_file_tips"
>
选择要打开此文件的应用
</string>
<string
name=
"date_year_short"
>
年
</string>
<string
name=
"date_month_short"
>
月
</string>
<string
name=
"date_day_short"
>
天
</string>
<string
name=
"date_hour_short"
>
时
</string>
<string
name=
"date_minute_short"
>
分
</string>
<string
name=
"date_second_short"
>
秒
</string>
<string
name=
"date_yesterday"
>
昨天
</string>
<string
name=
"sure"
>
确定
</string>
<string
name=
"cancel"
>
取消
</string>
<string
name=
"group_apply_click_handle"
>
点击处理
</string>
</resources>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res/values-zh/strings.xml
deleted
100755 → 0
View file @
86c77660
<resources>
<string
name=
"trtccalling_inviting_tag"
>
他们也在
</string>
<string
name=
"trtccalling_call_time_default"
>
00:01
</string>
<string
name=
"trtccalling_contact_default_name"
>
测试123
</string>
<string
name=
"trtccalling_invite_video_call"
>
邀请您视频通话
</string>
<string
name=
"trtccalling_start_call"
>
呼叫
</string>
<string
name=
"trtccalling_search"
>
搜索
</string>
<string
name=
"trtccalling_toast_search_fail"
>
搜索失败:%1$s
</string>
<string
name=
"trtccalling_toast_call_error_msg"
>
发生错误[%1$d]:%2$s
</string>
<string
name=
"trtccalling_toast_user_reject_call"
>
%1$s拒绝通话
</string>
<string
name=
"trtccalling_toast_user_not_response"
>
%1$s无响应
</string>
<string
name=
"trtccalling_toast_user_busy"
>
%1$s忙线
</string>
<string
name=
"trtccalling_toast_user_cancel_call"
>
%1$s取消了通话
</string>
<string
name=
"trtccalling_toast_user_timeout"
>
%1$s通话超时
</string>
<string
name=
"trtccalling_toast_enable_mute"
>
开启静音
</string>
<string
name=
"trtccalling_toast_disable_mute"
>
关闭静音
</string>
<string
name=
"trtccalling_toast_use_speaker"
>
使用扬声器
</string>
<string
name=
"trtccalling_toast_use_handset"
>
使用听筒
</string>
<string
name=
"trtccalling_called_time_format"
>
%02d:%02d
</string>
<string
name=
"trtccalling_self_phone"
>
您的手机号:
</string>
<string
name=
"trtccalling_toast_user_end"
>
%s 结束通话
</string>
<string
name=
"trtccalling_title_have_a_call_invitation"
>
您有一个通话请求
</string>
<string
name=
"trtccalling_other_party_network_low_quality"
>
对方网络不佳
</string>
<string
name=
"trtccalling_self_network_low_quality"
>
己方网络不佳
</string>
<string
name=
"trtccalling_toast_switch_camera"
>
切换摄像头
</string>
<string
name=
"trtccalling_toast_enable_camera"
>
开启摄像头
</string>
<string
name=
"trtccalling_toast_disable_camera"
>
关闭摄像头
</string>
<string
name=
"trtccalling_waiting_be_accepted"
>
正在等待对方接受邀请...
</string>
<string
name=
"trtccalling_invite_audio_call"
>
邀请您进行语音通话…
</string>
<string
name=
"trtccalling_text_microphone"
>
麦克风
</string>
<string
name=
"trtccalling_text_hangup"
>
挂断
</string>
<string
name=
"trtccalling_text_reject"
>
拒接
</string>
<string
name=
"trtccalling_text_speaker"
>
扬声器
</string>
<string
name=
"trtccalling_text_dialing"
>
接听
</string>
<string
name=
"trtccalling_text_camera"
>
摄像头
</string>
<string
name=
"trtccalling_switch_camera_hint"
>
请先打开摄像头
</string>
<string
name=
"trtccalling_switch_audio_call"
>
切到语音通话
</string>
<string
name=
"trtccalling_btn_cancel"
>
取消
</string>
<string
name=
"trtccalling_tips_start_camera_audio"
>
请先打开摄像头与麦克风权限
</string>
<string
name=
"trtccalling_tips_start_audio"
>
请先打开麦克风权限
</string>
<string
name=
"trtccalling_video_call"
>
视频通话
</string>
<string
name=
"trtccalling_audio_call"
>
语音通话
</string>
<string
name=
"trtccalling_user_kicked_offline"
>
您已被踢下线,请重新登录
</string>
<string
name=
"trtccalling_user_sig_expired"
>
您的用户签名信息已过期
</string>
<string
name=
"trtccalling_user_exceed_limit"
>
暂支持最多9人通话。如需多人会议,请使用TUIRoom
</string>
<string
name=
"trtccalling_wait_resonse"
>
等待接听
</string>
<string
name=
"trtccalling_float_permission"
>
请打开悬浮窗权限
</string>
<string
name=
"trtccalling_is_calling"
>
正在通话中,无法再次发起
</string>
</resources>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ydl-tuicore/src/main/res/values/attrs.xml
View file @
7c6c5b5e
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources>
<declare-styleable
name=
"UserIconView"
>
<!--默认头像-->
<attr
name=
"default_image"
format=
"reference"
/>
<attr
name=
"image_radius"
format=
"dimension"
/>
</declare-styleable>
<declare-styleable
name=
"SynthesizedImageView"
>
<declare-styleable
name=
"SynthesizedImageView"
>
<!--合成图片的背景-->
<!--合成图片的背景-->
...
...
This diff is collapsed.
Click to expand it.
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