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
a20594ed
Commit
a20594ed
authored
Nov 25, 2019
by
Viktor De Pasquale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added emphasis on support section
parent
cb59cc92
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
36 deletions
+62
-36
fragment_home_md2.xml
app/src/main/res/layout/fragment_home_md2.xml
+50
-32
item_developer.xml
app/src/main/res/layout/item_developer.xml
+2
-2
item_developer_link.xml
app/src/main/res/layout/item_developer_link.xml
+2
-2
styles_md2_impl.xml
app/src/main/res/values/styles_md2_impl.xml
+8
-0
No files found.
app/src/main/res/layout/fragment_home_md2.xml
View file @
a20594ed
...
...
@@ -33,13 +33,14 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:clipToPadding=
"false"
android:fillViewport=
"true"
android:paddingTop=
"@{viewModel.insets.top + (int) @dimen/internal_action_bar_size}"
android:paddingBottom=
"@{viewModel.insets.bottom + (int) @dimen/l2}"
tools:layout_marginTop=
"24dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_cont
ent"
android:layout_height=
"
match_par
ent"
android:clipToPadding=
"false"
android:orientation=
"vertical"
android:paddingTop=
"@dimen/l1"
>
...
...
@@ -739,14 +740,26 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<com.google.android.material.card.MaterialCardView
style=
"@style/WidgetFoundation.Card.Primary"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:layout_margin=
"@dimen/l1"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:paddingTop=
"@dimen/l1"
>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/l1"
android:layout_marginTop=
"@dimen/l2"
android:layout_marginEnd=
"@dimen/l1"
android:text=
"@string/home_support_title"
android:textAppearance=
"@style/AppearanceFoundation.Title
"
/>
android:textAppearance=
"@style/AppearanceFoundation.Title.OnPrimary
"
/>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width=
"match_parent"
...
...
@@ -755,7 +768,7 @@
android:layout_marginTop=
"@dimen/l_50"
android:layout_marginEnd=
"@dimen/l1"
android:text=
"@string/home_support_content"
android:textAppearance=
"@style/AppearanceFoundation.Caption
.Variant"
/>
android:textAppearance=
"@style/AppearanceFoundation.Caption.OnPrimary
.Variant"
/>
<androidx.recyclerview.widget.RecyclerView
dividerHorizontal=
"@{R.drawable.divider_l1}"
...
...
@@ -766,6 +779,7 @@
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/l1"
android:clipToPadding=
"false"
android:nestedScrollingEnabled=
"@{false}"
android:orientation=
"horizontal"
android:overScrollMode=
"ifContentScrolls"
android:paddingStart=
"@dimen/l1"
...
...
@@ -776,6 +790,10 @@
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</layout>
\ No newline at end of file
app/src/main/res/layout/item_developer.xml
View file @
a20594ed
...
...
@@ -21,7 +21,7 @@
tools:layout_gravity=
"center|start"
>
<com.google.android.material.card.MaterialCardView
style=
"@style/WidgetFoundation.Card"
style=
"@style/WidgetFoundation.Card
.Secondary
"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
app:layout_constrainedWidth=
"true"
...
...
@@ -41,7 +41,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@{item.name}"
android:textAppearance=
"@style/AppearanceFoundation.Caption"
android:textAppearance=
"@style/AppearanceFoundation.Caption
.OnPrimary
"
android:textStyle=
"bold"
tools:text=
"\@topjohnwu"
/>
...
...
app/src/main/res/layout/item_developer_link.xml
View file @
a20594ed
...
...
@@ -30,7 +30,7 @@
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:srcCompat=
"@{item.icon}"
app:tint=
"?colorOn
Surface
"
app:tint=
"?colorOn
Primary
"
tools:srcCompat=
"@drawable/ic_paypal"
/>
<androidx.appcompat.widget.AppCompatImageView
...
...
@@ -41,7 +41,7 @@
app:layout_constraintStart_toEndOf=
"@+id/developer_link"
app:layout_constraintTop_toTopOf=
"@+id/developer_link"
app:srcCompat=
"@drawable/ic_more"
app:tint=
"
@color/color_text_transient
"
/>
app:tint=
"
?colorOnPrimary
"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
...
...
app/src/main/res/values/styles_md2_impl.xml
View file @
a20594ed
...
...
@@ -24,6 +24,14 @@
<item
name=
"cardPreventCornerOverlap"
>
true
</item>
</style>
<style
name=
"WidgetFoundation.Card.Primary"
>
<item
name=
"cardBackgroundColor"
>
?colorPrimary
</item>
</style>
<style
name=
"WidgetFoundation.Card.Secondary"
>
<item
name=
"cardBackgroundColor"
>
?colorSecondary
</item>
</style>
<style
name=
"WidgetFoundation.Card.Variant"
>
<item
name=
"cardBackgroundColor"
>
?colorSurface
</item>
<item
name=
"strokeColor"
>
?colorSurfaceVariant
</item>
...
...
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