Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mctower
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
tangguangrui
mctower
Commits
669f46a2
Commit
669f46a2
authored
Aug 21, 2020
by
tangguangrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
访问记录列表添加到访时间
parent
9be1f734
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
MainActivity.java
app/src/main/java/cn/mctower/visitor/MainActivity.java
+3
-0
itme_visit_record.xml
app/src/main/res/layout/itme_visit_record.xml
+25
-0
No files found.
app/src/main/java/cn/mctower/visitor/MainActivity.java
View file @
669f46a2
...
@@ -267,6 +267,7 @@ public class MainActivity extends NetBaseAppCompatActivity {
...
@@ -267,6 +267,7 @@ public class MainActivity extends NetBaseAppCompatActivity {
viewHolder
.
mobile
.
setText
(
bean
.
phone
);
viewHolder
.
mobile
.
setText
(
bean
.
phone
);
viewHolder
.
company
.
setText
(
bean
.
companyName
);
viewHolder
.
company
.
setText
(
bean
.
companyName
);
viewHolder
.
staffName
.
setText
(
bean
.
staffName
);
viewHolder
.
staffName
.
setText
(
bean
.
staffName
);
viewHolder
.
time
.
setText
(
bean
.
visitorTime
);
viewHolder
.
item
.
setOnClickListener
(
view
->
{
viewHolder
.
item
.
setOnClickListener
(
view
->
{
if
(!
TextUtils
.
isEmpty
(
bean
.
userUuid
))
{
if
(!
TextUtils
.
isEmpty
(
bean
.
userUuid
))
{
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
DetailActivity
.
class
);
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
DetailActivity
.
class
);
...
@@ -291,6 +292,7 @@ public class MainActivity extends NetBaseAppCompatActivity {
...
@@ -291,6 +292,7 @@ public class MainActivity extends NetBaseAppCompatActivity {
private
TextView
mobile
;
private
TextView
mobile
;
private
TextView
company
;
private
TextView
company
;
private
TextView
staffName
;
private
TextView
staffName
;
private
TextView
time
;
public
CustomViewHolder
(
@NonNull
View
itemView
)
{
public
CustomViewHolder
(
@NonNull
View
itemView
)
{
super
(
itemView
);
super
(
itemView
);
...
@@ -299,6 +301,7 @@ public class MainActivity extends NetBaseAppCompatActivity {
...
@@ -299,6 +301,7 @@ public class MainActivity extends NetBaseAppCompatActivity {
staffName
=
itemView
.
findViewById
(
R
.
id
.
staffName
);
staffName
=
itemView
.
findViewById
(
R
.
id
.
staffName
);
mobile
=
itemView
.
findViewById
(
R
.
id
.
mobile
);
mobile
=
itemView
.
findViewById
(
R
.
id
.
mobile
);
company
=
itemView
.
findViewById
(
R
.
id
.
company
);
company
=
itemView
.
findViewById
(
R
.
id
.
company
);
time
=
itemView
.
findViewById
(
R
.
id
.
time
);
}
}
}
}
}
}
app/src/main/res/layout/itme_visit_record.xml
View file @
669f46a2
...
@@ -129,4 +129,28 @@
...
@@ -129,4 +129,28 @@
android:text=
"xxxxxx"
/>
android:text=
"xxxxxx"
/>
<TextView
android:id=
"@+id/timeTitle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_toRightOf=
"@id/tag"
android:layout_marginLeft=
"13dp"
android:textColor=
"#ABB2B7"
android:textSize=
"16sp"
android:layout_marginBottom=
"12dp"
android:layout_below=
"@id/comTitle"
android:text=
"到访时间"
/>
<TextView
android:id=
"@+id/time"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"15dp"
android:layout_marginBottom=
"12dp"
android:textSize=
"16sp"
android:layout_below=
"@id/company"
android:textColor=
"#2D506B"
android:text=
"xxxxxx"
/>
</RelativeLayout>
</RelativeLayout>
\ 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