Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
B
Browser White
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
Browser White
Commits
28c9746b
Commit
28c9746b
authored
Sep 03, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
6275e498
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
BookmarkAdapter.kt
...base/browserwhite/ui/activity/bookmark/BookmarkAdapter.kt
+6
-2
WebsiteAdapter.kt
...n/java/com/base/browserwhite/ui/adapter/WebsiteAdapter.kt
+3
-1
No files found.
app/src/main/java/com/base/browserwhite/ui/activity/bookmark/BookmarkAdapter.kt
View file @
28c9746b
...
@@ -37,7 +37,9 @@ class BookmarkAdapter : BaseQuickAdapter<BookmarkBean, BookmarkAdapter.BookmarkH
...
@@ -37,7 +37,9 @@ class BookmarkAdapter : BaseQuickAdapter<BookmarkBean, BookmarkAdapter.BookmarkH
binding
.
iv
.
visibility
=
View
.
GONE
binding
.
iv
.
visibility
=
View
.
GONE
binding
.
tvLetters
.
visibility
=
View
.
VISIBLE
binding
.
tvLetters
.
visibility
=
View
.
VISIBLE
binding
.
tvLetters
.
background
=
ColorDrawable
(
item
.
color
)
binding
.
tvLetters
.
background
=
ColorDrawable
(
item
.
color
)
binding
.
tvLetters
.
text
=
item
.
name
.
first
().
toString
()
if
(
item
.
name
.
isNotEmpty
())
{
binding
.
tvLetters
.
text
=
item
.
name
.
first
().
toString
()
}
}
else
{
}
else
{
binding
.
card
.
radius
=
0f
binding
.
card
.
radius
=
0f
binding
.
tvLetters
.
visibility
=
View
.
GONE
binding
.
tvLetters
.
visibility
=
View
.
GONE
...
@@ -80,7 +82,9 @@ class BookmarkAdapter : BaseQuickAdapter<BookmarkBean, BookmarkAdapter.BookmarkH
...
@@ -80,7 +82,9 @@ class BookmarkAdapter : BaseQuickAdapter<BookmarkBean, BookmarkAdapter.BookmarkH
binding
.
iv
.
visibility
=
View
.
GONE
binding
.
iv
.
visibility
=
View
.
GONE
binding
.
tvLetters
.
visibility
=
View
.
VISIBLE
binding
.
tvLetters
.
visibility
=
View
.
VISIBLE
binding
.
tvLetters
.
background
=
ColorDrawable
(
item
.
color
)
binding
.
tvLetters
.
background
=
ColorDrawable
(
item
.
color
)
binding
.
tvLetters
.
text
=
item
.
name
.
first
().
toString
()
if
(
item
.
name
.
isNotEmpty
())
{
binding
.
tvLetters
.
text
=
item
.
name
.
first
().
toString
()
}
}
else
{
}
else
{
binding
.
card
.
radius
=
0f
binding
.
card
.
radius
=
0f
binding
.
tvLetters
.
visibility
=
View
.
GONE
binding
.
tvLetters
.
visibility
=
View
.
GONE
...
...
app/src/main/java/com/base/browserwhite/ui/adapter/WebsiteAdapter.kt
View file @
28c9746b
...
@@ -63,7 +63,9 @@ class WebsiteAdapter(val uiType: Int = 0, val click: (bean: WebSiteBean) -> Unit
...
@@ -63,7 +63,9 @@ class WebsiteAdapter(val uiType: Int = 0, val click: (bean: WebSiteBean) -> Unit
binding
.
ivAdd
.
visibility
=
View
.
GONE
binding
.
ivAdd
.
visibility
=
View
.
GONE
binding
.
ivIcon
.
visibility
=
View
.
VISIBLE
binding
.
ivIcon
.
visibility
=
View
.
VISIBLE
binding
.
tvBookmarkNav
.
visibility
=
View
.
VISIBLE
binding
.
tvBookmarkNav
.
visibility
=
View
.
VISIBLE
binding
.
tvBookmarkNav
.
text
=
bean
.
name
.
first
().
toString
()
if
(
bean
.
name
.
isNotEmpty
())
{
binding
.
tvBookmarkNav
.
text
=
bean
.
name
.
first
().
toString
()
}
Glide
.
with
(
context
).
load
(
ColorDrawable
(
bean
.
color
)).
into
(
binding
.
ivIcon
)
Glide
.
with
(
context
).
load
(
ColorDrawable
(
bean
.
color
)).
into
(
binding
.
ivIcon
)
binding
.
ivIcon
.
borderColor
=
ContextCompat
.
getColor
(
context
,
R
.
color
.
color_cbcdd7
)
binding
.
ivIcon
.
borderColor
=
ContextCompat
.
getColor
(
context
,
R
.
color
.
color_cbcdd7
)
binding
.
ivIcon
.
borderWidth
=
1
binding
.
ivIcon
.
borderWidth
=
1
...
...
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