Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
22a6777c
Commit
22a6777c
authored
Feb 13, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加公告
parent
f3a20ac4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
3 deletions
+50
-3
src/main/java/com/common/widget/MarqueeView.java
+31
-0
src/main/java/tech/starwin/mvp/api/UserApi.java
+7
-2
src/main/java/tech/starwin/mvp/presenter/UserPresenter.java
+8
-1
src/main/res/values/colors.xml
+4
-0
No files found.
src/main/java/com/common/widget/MarqueeView.java
0 → 100644
View file @
22a6777c
package
com
.
common
.
widget
;
import
android.content.Context
;
import
android.graphics.Rect
;
import
android.support.annotation.Nullable
;
import
android.util.AttributeSet
;
import
android.widget.TextView
;
/**
* Created by SiKang on 2019/2/13.
*/
public
class
MarqueeView
extends
TextView
{
public
MarqueeView
(
Context
context
)
{
super
(
context
);
}
public
MarqueeView
(
Context
context
,
@Nullable
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
}
public
MarqueeView
(
Context
context
,
@Nullable
AttributeSet
attrs
,
int
defStyleAttr
)
{
super
(
context
,
attrs
,
defStyleAttr
);
}
@Override
public
boolean
isFocused
()
{
return
true
;
}
}
src/main/java/tech/starwin/mvp/api/UserApi.java
View file @
22a6777c
...
...
@@ -304,8 +304,6 @@ public interface UserApi {
@GET
(
"record/bankcard"
)
Observable
<
UserBankInfo
>
getBankCardInfo
(
@Header
(
"X-AUTH-TOKEN"
)
String
token
);
@GET
(
"banner"
)
Observable
<
List
<
BannerMessageDto
>>
getBannerMessageList
();
@GET
(
"chat/account"
)
...
...
@@ -326,6 +324,13 @@ public interface UserApi {
/**
* 公告
*/
@GET
(
"banner/message"
)
Observable
<
List
<
BannerMessageDto
>>
getBannerMsg
();
/**
* 提交第三方数据
*/
@PUT
(
"record/thirdparty_data"
)
...
...
src/main/java/tech/starwin/mvp/presenter/UserPresenter.java
View file @
22a6777c
...
...
@@ -170,7 +170,7 @@ public class UserPresenter extends BasePresenter<UserApi> {
/**
* 上传firebaseToken
*
*
/
*/
public
void
uploadFirebaseToken
(
String
token
)
{
if
(!
TextUtils
.
isEmpty
(
token
))
{
apiService
.
uploadFirebaseToken
(
token
);
...
...
@@ -553,6 +553,13 @@ public class UserPresenter extends BasePresenter<UserApi> {
handleRequest
(
action
,
apiService
.
getContactInfo
(
LoginManager
.
get
().
getToken
()));
}
/**
* 公告
*/
public
void
getBannerMsg
(
String
action
)
{
handleRequest
(
action
,
apiService
.
getBannerMsg
());
}
/**
* 获取绑定的第三方账户
...
...
src/main/res/values/colors.xml
View file @
22a6777c
...
...
@@ -11,6 +11,10 @@
<color
name=
"white_alpha30"
>
#4DFFFFFF
</color>
<color
name=
"white_alpha10"
>
#1AFFFFFF
</color>
<color
name=
"black_alpha50"
>
#80000000
</color>
<color
name=
"black_alpha30"
>
#4D000000
</color>
<color
name=
"black_alpha10"
>
#1A000000
</color>
<color
name=
"translateColor"
>
#00000000
</color>
<color
name=
"gray_bg"
>
#F7F7F7
</color>
<color
name=
"white"
>
@android:color/white
</color>
...
...
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