Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
lify
RvApp
Commits
4f8cea18
Commit
4f8cea18
authored
Sep 20, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
im 界面初修改
parent
76730820
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
7 deletions
+55
-7
CustomerListAdapter.java
.../src/main/java/com/rv/im/adapter/CustomerListAdapter.java
+1
-0
Customer.java
plugin_im/src/main/java/com/rv/im/db/table/Customer.java
+20
-0
icon_logo_white.png
plugin_im/src/main/res/drawable-hdpi/icon_logo_white.png
+0
-0
icon_logo_white.png
plugin_im/src/main/res/drawable-xhdpi/icon_logo_white.png
+0
-0
icon_logo_white.png
plugin_im/src/main/res/drawable-xxhdpi/icon_logo_white.png
+0
-0
bg_circle_yellow.xml
plugin_im/src/main/res/drawable/bg_circle_yellow.xml
+8
-0
item_customer.xml
plugin_im/src/main/res/layout/item_customer.xml
+26
-7
No files found.
plugin_im/src/main/java/com/rv/im/adapter/CustomerListAdapter.java
View file @
4f8cea18
...
...
@@ -18,5 +18,6 @@ public class CustomerListAdapter extends BaseQuickAdapter<Customer, BaseViewHold
protected
void
convert
(
BaseViewHolder
helper
,
Customer
item
)
{
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getName
());
helper
.
setText
(
R
.
id
.
tv_state
,
"在线"
);
helper
.
setText
(
R
.
id
.
tv_last_msg
,
item
.
getLastMsg
());
}
}
plugin_im/src/main/java/com/rv/im/db/table/Customer.java
View file @
4f8cea18
...
...
@@ -18,6 +18,10 @@ public class Customer {
@DatabaseField
private
String
createTime
;
private
String
lastMsg
;
private
long
lastMsgTimes
;
public
String
getId
()
{
return
id
;
}
...
...
@@ -65,4 +69,20 @@ public class Customer {
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getLastMsg
()
{
return
lastMsg
;
}
public
void
setLastMsg
(
String
lastMsg
)
{
this
.
lastMsg
=
lastMsg
;
}
public
long
getLastMsgTimes
()
{
return
lastMsgTimes
;
}
public
void
setLastMsgTimes
(
long
lastMsgTimes
)
{
this
.
lastMsgTimes
=
lastMsgTimes
;
}
}
plugin_im/src/main/res/drawable-hdpi/icon_logo_white.png
0 → 100644
View file @
4f8cea18
3.24 KB
plugin_im/src/main/res/drawable-xhdpi/icon_logo_white.png
0 → 100644
View file @
4f8cea18
4.18 KB
plugin_im/src/main/res/drawable-xxhdpi/icon_logo_white.png
0 → 100644
View file @
4f8cea18
7.73 KB
plugin_im/src/main/res/drawable/bg_circle_yellow.xml
0 → 100644
View file @
4f8cea18
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"oval"
>
<corners
android:radius=
"20dp"
/>
<solid
android:color=
"#FFB74B"
/>
</shape>
\ No newline at end of file
plugin_im/src/main/res/layout/item_customer.xml
View file @
4f8cea18
...
...
@@ -15,11 +15,20 @@
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<com.base.utils.ui.image.round.RoundImageView
android:id=
"@+id/riv_header"
android:layout_width=
"@dimen/dp40"
android:layout_height=
"@dimen/dp40"
android:layout_marginLeft=
"@dimen/dp_10"
/>
<RelativeLayout
android:layout_width=
"@dimen/size_40"
android:layout_height=
"@dimen/size_40"
android:layout_marginLeft=
"@dimen/dp_10"
android:background=
"@drawable/bg_circle_yellow"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:src=
"@drawable/icon_logo_white"
/>
</RelativeLayout>
<LinearLayout
android:layout_width=
"wrap_content"
...
...
@@ -35,15 +44,25 @@
android:text=
"牧之"
android:textSize=
"@dimen/sp_14"
/>
<TextView
android:id=
"@+id/tv_last_msg"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_3"
android:ellipsize=
"end"
android:maxLength=
"10"
android:text=
"感谢您"
/>
</LinearLayout>
<TextView
android:id=
"@+id/tv_state"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_marginTop=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/dp_10"
android:layout_weight=
"1"
android:gravity=
"right|
center_vertical
"
android:gravity=
"right|
top
"
android:text=
"在线"
android:textColor=
"@color/gray"
android:textSize=
"@dimen/text_12"
/>
...
...
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