Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile
Commits
6e4bf02f
Commit
6e4bf02f
authored
Jul 29, 2022
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整聊天室为萌卡fragment初始化即登录
parent
a9f6f6b8
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
418 additions
and
111 deletions
+418
-111
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/MycardFragment.java
...in/java/cn/garymb/ygomobile/ui/mycard/MycardFragment.java
+106
-8
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/mcchat/ChatListener.java
...va/cn/garymb/ygomobile/ui/mycard/mcchat/ChatListener.java
+6
-4
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/mcchat/McchatActivity.java
.../cn/garymb/ygomobile/ui/mycard/mcchat/McchatActivity.java
+10
-5
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/mcchat/management/ServiceManagement.java
...mobile/ui/mycard/mcchat/management/ServiceManagement.java
+209
-28
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/mcchat/management/UserManagement.java
...ygomobile/ui/mycard/mcchat/management/UserManagement.java
+2
-8
mobile/src/main/java/cn/garymb/ygomobile/utils/HandlerUtil.java
.../src/main/java/cn/garymb/ygomobile/utils/HandlerUtil.java
+32
-0
mobile/src/main/res/layout/fragment_mycard.xml
mobile/src/main/res/layout/fragment_mycard.xml
+53
-58
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/MycardFragment.java
View file @
6e4bf02f
...
@@ -12,42 +12,56 @@ import android.os.Bundle;
...
@@ -12,42 +12,56 @@ import android.os.Bundle;
import
android.os.Handler
;
import
android.os.Handler
;
import
android.os.Message
;
import
android.os.Message
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.
view.Gravity
;
import
android.
util.Log
;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
import
android.view.MenuItem
;
import
android.view.MenuItem
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
import
android.widget.ProgressBar
;
import
android.widget.ProgressBar
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.Nullable
;
import
androidx.drawerlayout.widget.DrawerLayout
;
import
com.
google.android.material.navigation.NavigationView
;
import
com.
ourygo.assistant.util.Util
;
import
com.tencent.smtt.sdk.ValueCallback
;
import
com.tencent.smtt.sdk.ValueCallback
;
import
com.tencent.smtt.sdk.WebChromeClient
;
import
com.tencent.smtt.sdk.WebChromeClient
;
import
com.tencent.smtt.sdk.WebSettings
;
import
com.tencent.smtt.sdk.WebSettings
;
import
com.tencent.smtt.sdk.WebView
;
import
com.tencent.smtt.sdk.WebView
;
import
java.text.MessageFormat
;
import
java.text.MessageFormat
;
import
java.util.List
;
import
cn.garymb.ygomobile.YGOStarter
;
import
cn.garymb.ygomobile.YGOStarter
;
import
cn.garymb.ygomobile.base.BaseFragemnt
;
import
cn.garymb.ygomobile.base.BaseFragemnt
;
import
cn.garymb.ygomobile.lite.BuildConfig
;
import
cn.garymb.ygomobile.lite.BuildConfig
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.ui.mycard.base.OnJoinChatListener
;
import
cn.garymb.ygomobile.ui.mycard.mcchat.ChatListener
;
import
cn.garymb.ygomobile.ui.mycard.mcchat.ChatMessage
;
import
cn.garymb.ygomobile.ui.mycard.mcchat.SplashActivity
;
import
cn.garymb.ygomobile.ui.mycard.mcchat.SplashActivity
;
import
cn.garymb.ygomobile.ui.mycard.mcchat.management.ServiceManagement
;
import
cn.garymb.ygomobile.utils.glide.GlideCompat
;
import
cn.garymb.ygomobile.utils.glide.GlideCompat
;
public
class
MycardFragment
extends
BaseFragemnt
implements
View
.
OnClickListener
,
MyCard
.
MyCardListener
{
public
class
MycardFragment
extends
BaseFragemnt
implements
View
.
OnClickListener
,
MyCard
.
MyCardListener
,
OnJoinChatListener
,
ChatListener
{
private
static
final
int
FILECHOOSER_RESULTCODE
=
10
;
private
static
final
int
FILECHOOSER_RESULTCODE
=
10
;
private
static
final
int
TYPE_MC_LOGIN
=
0
;
private
static
final
int
TYPE_MC_LOGIN
=
0
;
//头像昵称账号
private
MyCardWebView
mWebViewPlus
;
private
MyCard
mMyCard
;
private
ImageView
mHeadView
;
private
ImageView
mHeadView
;
private
TextView
mNameView
,
mStatusView
;
private
TextView
mNameView
,
mStatusView
;
private
TextView
tv_back_mc
;
//萌卡webview
private
MyCardWebView
mWebViewPlus
;
private
MyCard
mMyCard
;
//聊天室
private
RelativeLayout
rl_chat
;
private
TextView
tv_message
;
private
ProgressBar
pb_chat_loading
;
private
ServiceManagement
serviceManagement
;
private
ChatMessage
currentMessage
;
@SuppressLint
(
"HandlerLeak"
)
@SuppressLint
(
"HandlerLeak"
)
Handler
handler
=
new
Handler
()
{
Handler
handler
=
new
Handler
()
{
@Override
@Override
...
@@ -64,7 +78,6 @@ public class MycardFragment extends BaseFragemnt implements View.OnClickListener
...
@@ -64,7 +78,6 @@ public class MycardFragment extends BaseFragemnt implements View.OnClickListener
}
}
};
};
private
ProgressBar
mProgressBar
;
private
ProgressBar
mProgressBar
;
private
TextView
tv_back_mc
;
private
ValueCallback
<
Uri
>
uploadMessage
;
private
ValueCallback
<
Uri
>
uploadMessage
;
private
ValueCallback
<
Uri
[]>
mUploadCallbackAboveL
;
private
ValueCallback
<
Uri
[]>
mUploadCallbackAboveL
;
...
@@ -92,6 +105,14 @@ public class MycardFragment extends BaseFragemnt implements View.OnClickListener
...
@@ -92,6 +105,14 @@ public class MycardFragment extends BaseFragemnt implements View.OnClickListener
mStatusView
=
view
.
findViewById
(
R
.
id
.
tv_dp
);
mStatusView
=
view
.
findViewById
(
R
.
id
.
tv_dp
);
//mWebViewPlus.enableHtml5();
//mWebViewPlus.enableHtml5();
rl_chat
=
view
.
findViewById
(
R
.
id
.
rl_chat
);
rl_chat
.
setOnClickListener
(
this
);
tv_message
=
view
.
findViewById
(
R
.
id
.
tv_message
);
pb_chat_loading
=
view
.
findViewById
(
R
.
id
.
pb_chat_loading
);
serviceManagement
=
ServiceManagement
.
getDx
();
serviceManagement
.
addJoinRoomListener
(
this
);
serviceManagement
.
addListener
(
this
);
WebSettings
settings
=
mWebViewPlus
.
getSettings
();
WebSettings
settings
=
mWebViewPlus
.
getSettings
();
settings
.
setUserAgentString
(
settings
.
getUserAgentString
()
+
MessageFormat
.
format
(
settings
.
setUserAgentString
(
settings
.
getUserAgentString
()
+
MessageFormat
.
format
(
" YGOMobile/{0} ({1} {2,number,#})"
,
" YGOMobile/{0} ({1} {2,number,#})"
,
...
@@ -319,4 +340,81 @@ public class MycardFragment extends BaseFragemnt implements View.OnClickListener
...
@@ -319,4 +340,81 @@ public class MycardFragment extends BaseFragemnt implements View.OnClickListener
public
void
onHome
()
{
public
void
onHome
()
{
mWebViewPlus
.
loadUrl
(
mMyCard
.
getHomeUrl
());
mWebViewPlus
.
loadUrl
(
mMyCard
.
getHomeUrl
());
}
}
@Override
public
void
onChatLogin
(
String
exception
)
{
Log
.
e
(
"MyCardFragment"
,
"登录情况"
+
exception
);
pb_chat_loading
.
setVisibility
(
View
.
GONE
);
if
(
TextUtils
.
isEmpty
(
exception
))
{
if
(
currentMessage
==
null
)
{
List
<
ChatMessage
>
data
=
serviceManagement
.
getData
();
if
(
data
!=
null
&&
data
.
size
()
>
0
)
currentMessage
=
data
.
get
(
data
.
size
()
-
1
);
}
if
(
currentMessage
==
null
)
tv_message
.
setText
(
"聊天信息加载中"
);
else
tv_message
.
setText
(
currentMessage
.
getName
()
+
":"
+
currentMessage
.
getMessage
());
}
else
{
tv_message
.
setText
(
R
.
string
.
logining_failed
);
}
}
@Override
public
void
onChatLoginLoading
()
{
Log
.
e
(
"MyCardFragment"
,
"加载中"
);
pb_chat_loading
.
setVisibility
(
View
.
VISIBLE
);
tv_message
.
setText
(
R
.
string
.
logining_in
);
}
@Override
public
void
onJoinRoomLoading
()
{
Log
.
e
(
"MyCardFragment"
,
"加入房间中"
);
pb_chat_loading
.
setVisibility
(
View
.
VISIBLE
);
tv_message
.
setText
(
R
.
string
.
logining_in
);
}
@Override
public
void
onChatUserNull
()
{
Log
.
e
(
"MyCardFragment"
,
"为空"
);
pb_chat_loading
.
setVisibility
(
View
.
GONE
);
tv_message
.
setText
(
"登录失败,请退出登录后重新登录"
);
}
@Override
public
boolean
isListenerEffective
()
{
return
Util
.
isContextExisted
(
getActivity
());
}
@Override
public
void
addChatMessage
(
ChatMessage
message
)
{
currentMessage
=
message
;
if
(
message
!=
null
)
tv_message
.
setText
(
message
.
getName
()
+
":"
+
message
.
getMessage
());
}
@Override
public
void
removeChatMessage
(
ChatMessage
message
)
{
}
@Override
public
void
reChatLogin
(
boolean
state
)
{
pb_chat_loading
.
setVisibility
(
View
.
VISIBLE
);
if
(
state
)
{
tv_message
.
setText
(
"登录成功"
);
}
else
{
tv_message
.
setText
(
"连接断开,重新登录中……"
);
}
}
@Override
public
void
reChatJoin
(
boolean
state
)
{
pb_chat_loading
.
setVisibility
(
View
.
VISIBLE
);
if
(
state
)
{
onChatLogin
(
null
);
}
else
{
tv_message
.
setText
(
"重新加入聊天室中……"
);
}
}
}
}
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/mcchat/ChatListener.java
View file @
6e4bf02f
...
@@ -3,12 +3,14 @@ package cn.garymb.ygomobile.ui.mycard.mcchat;
...
@@ -3,12 +3,14 @@ package cn.garymb.ygomobile.ui.mycard.mcchat;
import
org.jivesoftware.smack.packet.Message
;
import
org.jivesoftware.smack.packet.Message
;
public
interface
ChatListener
{
public
interface
ChatListener
{
void
add
Message
(
Message
message
);
void
add
ChatMessage
(
Chat
Message
message
);
void
remove
Message
(
Message
message
);
void
remove
ChatMessage
(
Chat
Message
message
);
void
reLogin
(
boolean
state
);
void
re
Chat
Login
(
boolean
state
);
void
reJoin
(
boolean
state
);
void
reChatJoin
(
boolean
state
);
boolean
isListenerEffective
();
}
}
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/mcchat/McchatActivity.java
View file @
6e4bf02f
...
@@ -11,7 +11,7 @@ import android.widget.TextView;
...
@@ -11,7 +11,7 @@ import android.widget.TextView;
import
androidx.recyclerview.widget.LinearLayoutManager
;
import
androidx.recyclerview.widget.LinearLayoutManager
;
import
androidx.recyclerview.widget.RecyclerView
;
import
androidx.recyclerview.widget.RecyclerView
;
import
org.jivesoftware.smack.packet.Message
;
import
com.ourygo.assistant.util.Util
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.ui.mycard.mcchat.adapter.ChatAdapter
;
import
cn.garymb.ygomobile.ui.mycard.mcchat.adapter.ChatAdapter
;
...
@@ -30,7 +30,7 @@ public class McchatActivity extends Activity implements ChatListener {
...
@@ -30,7 +30,7 @@ public class McchatActivity extends Activity implements ChatListener {
private
ServiceManagement
su
;
private
ServiceManagement
su
;
@Override
@Override
public
void
reLogin
(
boolean
state
)
{
public
void
re
Chat
Login
(
boolean
state
)
{
main_bottom_bar
.
setVisibility
(
View
.
GONE
);
main_bottom_bar
.
setVisibility
(
View
.
GONE
);
if
(
state
)
{
if
(
state
)
{
main_title
.
setText
(
"登录成功"
);
main_title
.
setText
(
"登录成功"
);
...
@@ -41,7 +41,7 @@ public class McchatActivity extends Activity implements ChatListener {
...
@@ -41,7 +41,7 @@ public class McchatActivity extends Activity implements ChatListener {
}
}
@Override
@Override
public
void
reJoin
(
boolean
state
)
{
public
void
re
Chat
Join
(
boolean
state
)
{
if
(
state
)
{
if
(
state
)
{
main_bottom_bar
.
setVisibility
(
View
.
VISIBLE
);
main_bottom_bar
.
setVisibility
(
View
.
VISIBLE
);
main_title
.
setText
(
getResources
().
getString
(
R
.
string
.
app_name
));
main_title
.
setText
(
getResources
().
getString
(
R
.
string
.
app_name
));
...
@@ -53,7 +53,12 @@ public class McchatActivity extends Activity implements ChatListener {
...
@@ -53,7 +53,12 @@ public class McchatActivity extends Activity implements ChatListener {
}
}
@Override
@Override
public
void
addMessage
(
Message
message
)
{
public
boolean
isListenerEffective
()
{
return
Util
.
isContextExisted
(
this
);
}
@Override
public
void
addChatMessage
(
ChatMessage
message
)
{
cadp
.
sx
();
cadp
.
sx
();
main_rec
.
smoothScrollToPosition
(
su
.
getData
().
size
()
-
1
);
main_rec
.
smoothScrollToPosition
(
su
.
getData
().
size
()
-
1
);
...
@@ -61,7 +66,7 @@ public class McchatActivity extends Activity implements ChatListener {
...
@@ -61,7 +66,7 @@ public class McchatActivity extends Activity implements ChatListener {
}
}
@Override
@Override
public
void
remove
Message
(
Message
message
)
{
public
void
remove
ChatMessage
(
Chat
Message
message
)
{
// TODO: Implement this method
// TODO: Implement this method
}
}
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/mcchat/management/ServiceManagement.java
View file @
6e4bf02f
This diff is collapsed.
Click to expand it.
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/mcchat/management/UserManagement.java
View file @
6e4bf02f
package
cn.garymb.ygomobile.ui.mycard.mcchat.management
;
package
cn.garymb.ygomobile.ui.mycard.mcchat.management
;
public
class
UserManagement
{
public
class
UserManagement
{
private
static
UserManagement
u
m
=
new
UserManagement
();
private
static
UserManagement
u
serManagement
=
new
UserManagement
();
private
static
String
userName
,
userPassword
;
private
static
String
userName
,
userPassword
;
private
UserManagement
()
{
private
UserManagement
()
{
}
}
public
static
String
getUserName
()
{
public
static
String
getUserName
()
{
return
userName
;
return
userName
;
}
}
public
static
void
setUserName
(
String
name
)
{
public
static
void
setUserName
(
String
name
)
{
userName
=
name
;
userName
=
name
;
}
}
public
static
String
getUserPassword
()
{
public
static
String
getUserPassword
()
{
...
@@ -25,11 +20,10 @@ public class UserManagement {
...
@@ -25,11 +20,10 @@ public class UserManagement {
}
}
public
static
void
setUserPassword
(
String
password
)
{
public
static
void
setUserPassword
(
String
password
)
{
userPassword
=
password
;
userPassword
=
password
;
}
}
public
static
UserManagement
getDx
()
{
public
static
UserManagement
getDx
()
{
return
u
m
;
return
u
serManagement
;
}
}
}
}
mobile/src/main/java/cn/garymb/ygomobile/utils/HandlerUtil.java
0 → 100644
View file @
6e4bf02f
package
cn.garymb.ygomobile.utils
;
import
android.os.Handler
;
import
android.os.Message
;
import
android.text.TextUtils
;
public
class
HandlerUtil
{
public
static
void
sendMessage
(
Handler
handler
,
String
exception
,
int
ok
,
Object
okObject
,
int
no
)
{
Message
message
=
new
Message
();
if
(
TextUtils
.
isEmpty
(
exception
))
{
message
.
what
=
ok
;
message
.
obj
=
okObject
;
}
else
{
message
.
what
=
no
;
message
.
obj
=
exception
;
}
handler
.
sendMessage
(
message
);
}
public
static
void
sendMessage
(
Handler
handler
,
String
exception
,
int
ok
,
int
no
)
{
sendMessage
(
handler
,
exception
,
ok
,
null
,
no
);
}
public
static
void
sendMessage
(
Handler
handler
,
int
what
,
Object
object
)
{
Message
message
=
new
Message
();
message
.
obj
=
object
;
message
.
what
=
what
;
handler
.
sendMessage
(
message
);
}
}
mobile/src/main/res/layout/fragment_mycard.xml
View file @
6e4bf02f
...
@@ -4,34 +4,42 @@
...
@@ -4,34 +4,42 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/dialogshort"
android:background=
"@drawable/dialogshort"
android:weightSum=
"1
0
"
android:weightSum=
"1
2
"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<
Relativ
eLayout
<
Fram
eLayout
android:id=
"@+id/rl_head"
android:id=
"@+id/rl_head"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:paddingLeft=
"20dp"
android:padding=
"10dp"
>
android:paddingTop=
"10dp"
android:paddingRight=
"20dp"
<androidx.appcompat.widget.LinearLayoutCompat
android:paddingBottom=
"10dp"
>
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
<androidx.appcompat.widget.AppCompatImageView
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/img_head"
android:id=
"@+id/img_head"
android:layout_width=
"@dimen/label_width_50dp"
android:layout_width=
"40dp"
android:layout_height=
"@dimen/label_width_50dp"
android:layout_height=
"40dp"
android:layout_marginRight=
"@dimen/dp_10"
android:src=
"@drawable/avatar"
/>
android:src=
"@drawable/avatar"
/>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<androidx.appcompat.widget.AppCompatTextView
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/tv_name"
android:id=
"@+id/tv_name"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_toRightOf=
"@id/img_head"
android:text=
""
android:text=
"@string/mc_chat"
android:textColor=
"@color/holo_green_bright"
android:textColor=
"@color/holo_green_bright"
android:textSize=
"18
sp"
android:textSize=
"15
sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<androidx.appcompat.widget.AppCompatTextView
<androidx.appcompat.widget.AppCompatTextView
...
@@ -43,36 +51,28 @@
...
@@ -43,36 +51,28 @@
android:layout_toRightOf=
"@id/img_head"
android:layout_toRightOf=
"@id/img_head"
android:ellipsize=
"end"
android:ellipsize=
"end"
android:lines=
"1"
android:lines=
"1"
android:text=
"account
"
android:text=
"
"
android:textColor=
"@color/holo_orange_bright"
android:textColor=
"@color/holo_orange_bright"
android:textSize=
"13sp"
/>
android:textSize=
"10sp"
/>
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.AppCompatImageButton
</androidx.appcompat.widget.LinearLayoutCompat>
android:layout_width=
"@dimen/dp_40"
android:layout_height=
"@dimen/dp_40"
android:nextFocusRight=
"@string/mc_chat"
/>
</RelativeLayout>
<androidx.appcompat.widget.AppCompatTextView
<androidx.appcompat.widget.AppCompatButton
android:id=
"@+id/tv_back_mc"
android:id=
"@+id/tv_back_mc"
android:layout_width=
"match_par
ent"
android:layout_width=
"wrap_cont
ent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/list_item_bg"
android:layout_gravity=
"right"
android:background=
"@drawable/button_bg"
android:gravity=
"center"
android:gravity=
"center"
android:paddingTop=
"6dp"
android:paddingBottom=
"6dp"
android:text=
"@string/back_to_mycard_home"
android:text=
"@string/back_to_mycard_home"
android:textColor=
"@color/holo_green_bright"
android:textSize=
"13sp"
android:textStyle=
"bold"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
</FrameLayout>
<cn.garymb.ygomobile.ui.mycard.MyCardWebView
<cn.garymb.ygomobile.ui.mycard.MyCardWebView
android:id=
"@+id/webbrowser"
android:id=
"@+id/webbrowser"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:layout_weight=
"
8
"
>
android:layout_weight=
"
10
"
>
<ProgressBar
<ProgressBar
android:id=
"@+id/progressBar"
android:id=
"@+id/progressBar"
...
@@ -87,12 +87,8 @@
...
@@ -87,12 +87,8 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@drawable/list_item_bg"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:paddingLeft=
"20dp"
android:padding=
"10dp"
>
android:paddingTop=
"10dp"
android:paddingRight=
"20dp"
android:paddingBottom=
"10dp"
>
<androidx.appcompat.widget.AppCompatTextView
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/tv_message_s"
android:id=
"@+id/tv_message_s"
...
@@ -100,7 +96,6 @@
...
@@ -100,7 +96,6 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/mc_chat"
android:text=
"@string/mc_chat"
android:textColor=
"@color/holo_green_bright"
android:textColor=
"@color/holo_green_bright"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<ProgressBar
<ProgressBar
...
@@ -121,6 +116,6 @@
...
@@ -121,6 +116,6 @@
android:lines=
"1"
android:lines=
"1"
android:text=
""
android:text=
""
android:textColor=
"@color/holo_orange_bright"
android:textColor=
"@color/holo_orange_bright"
android:textSize=
"1
3
sp"
/>
android:textSize=
"1
0
sp"
/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment