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
bc5cbe9f
Commit
bc5cbe9f
authored
Nov 08, 2019
by
Viktor De Pasquale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated module item design to follow suit with the rest of the app
parent
f83f92d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
12 deletions
+26
-12
item_module_md2.xml
app/src/main/res/layout/item_module_md2.xml
+26
-12
No files found.
app/src/main/res/layout/item_module_md2.xml
View file @
bc5cbe9f
...
...
@@ -32,8 +32,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingBottom=
"@dimen/l1"
>
android:layout_height=
"wrap_content"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/module_state_icon"
...
...
@@ -53,10 +52,11 @@
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/l1"
android:layout_marginTop=
"@dimen/l1"
android:layout_marginEnd=
"@dimen/l1"
android:text=
"@{item.item.name}"
android:textAppearance=
"?appearanceTextBodyNormal"
android:textStyle=
"bold"
app:layout_constraintEnd_to
StartOf=
"@+id/module_remove
"
app:layout_constraintEnd_to
EndOf=
"parent
"
app:layout_constraintStart_toEndOf=
"@+id/module_state_icon"
app:layout_constraintTop_toTopOf=
"parent"
tools:text=
"@tools:sample/lorem"
/>
...
...
@@ -66,14 +66,16 @@
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/l1"
android:layout_marginEnd=
"@dimen/l1"
android:text=
"@{@string/module_version_author(item.item.version, item.item.author)}"
android:textAppearance=
"?appearanceTextCaptionVariant"
app:layout_constraintEnd_to
StartOf=
"@+id/module_remove
"
app:layout_constraintEnd_to
EndOf=
"parent
"
app:layout_constraintStart_toEndOf=
"@+id/module_state_icon"
app:layout_constraintTop_toBottomOf=
"@+id/module_title"
tools:text=
"v1 by topjohnwu"
/>
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/module_description"
gone=
"@{item.item.description.empty}"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
...
...
@@ -86,16 +88,28 @@
tools:lines=
"4"
tools:text=
"@tools:sample/lorem/random"
/>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/module_remove"
style=
"?styleIconNormal"
isSelected=
"@{item.removed}"
android:alpha=
".5"
<View
android:id=
"@+id/module_divider"
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_marginTop=
"@dimen/l1"
android:background=
"?colorSurfaceVariant"
app:layout_constraintTop_toBottomOf=
"@+id/module_description"
/>
<com.google.android.material.button.MaterialButton
style=
"?styleButtonText"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:onClick=
"@{(v) -> item.delete(viewModel)}"
android:text=
"@{item.removed ? `Restore` : `Remove`}"
android:textAllCaps=
"false"
app:icon=
"@{item.removed ? R.drawable.ic_restart : R.drawable.ic_delete_md2}"
app:iconGravity=
"textEnd"
app:iconPadding=
"@dimen/l_50"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraint
Bottom_toBottomOf=
"@+id/module_version_autho
r"
app:layout_constraintTop_toTopOf=
"@+id/module_title
"
app:srcCompat=
"@drawable/ic_delete_restor
e"
/>
app:layout_constraint
Top_toBottomOf=
"@+id/module_divide
r"
tools:icon=
"@drawable/ic_delete_md2
"
tools:text=
"Remov
e"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
...
...
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