Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
fa73b41f
Commit
fa73b41f
authored
Jan 06, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update repo and module item layout
parent
a474eafe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
110 additions
and
114 deletions
+110
-114
ReposAdapter.java
...main/java/com/topjohnwu/magisk/adapters/ReposAdapter.java
+5
-1
list_item_module.xml
app/src/main/res/layout/list_item_module.xml
+1
-3
list_item_repo.xml
app/src/main/res/layout/list_item_repo.xml
+104
-110
No files found.
app/src/main/java/com/topjohnwu/magisk/adapters/ReposAdapter.java
View file @
fa73b41f
...
...
@@ -136,7 +136,6 @@ public class ReposAdapter extends RecyclerView.Adapter<ReposAdapter.ViewHolder>
@BindView
(
R
.
id
.
author
)
TextView
author
;
@BindView
(
R
.
id
.
expand_layout
)
LinearLayout
expandLayout
;
@BindView
(
R
.
id
.
update
)
ImageView
updateImage
;
@BindView
(
R
.
id
.
installed
)
ImageView
installedImage
;
@BindView
(
R
.
id
.
changeLog
)
ImageView
changeLog
;
@BindView
(
R
.
id
.
authorLink
)
ImageView
authorLink
;
@BindView
(
R
.
id
.
supportLink
)
ImageView
supportLink
;
...
...
@@ -179,6 +178,11 @@ public class ReposAdapter extends RecyclerView.Adapter<ReposAdapter.ViewHolder>
layoutParams
.
height
=
expanded
?
expandHeight
:
0
;
expandLayout
.
setLayoutParams
(
layoutParams
);
expandLayout
.
setVisibility
(
expanded
?
View
.
VISIBLE
:
View
.
GONE
);
if
(
expanded
)
{
updateImage
.
setTranslationY
(
expandHeight
/
2
);
}
else
{
updateImage
.
setTranslationY
(
0
);
}
}
private
void
expand
()
{
...
...
app/src/main/res/layout/list_item_module.xml
View file @
fa73b41f
...
...
@@ -20,9 +20,7 @@
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:minHeight=
"?android:attr/listPreferredItemHeight"
android:padding=
"@dimen/card_layout_padding"
android:paddingEnd=
"@dimen/card_layout_padding"
android:paddingStart=
"@dimen/card_layout_padding"
>
android:padding=
"@dimen/card_layout_padding"
>
<TextView
android:id=
"@+id/title"
...
...
app/src/main/res/layout/list_item_repo.xml
View file @
fa73b41f
This diff is collapsed.
Click to expand it.
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