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
ff24bc0b
Commit
ff24bc0b
authored
Oct 12, 2019
by
Viktor De Pasquale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated card design on homepage
parent
700c51f9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
199 additions
and
178 deletions
+199
-178
bg_card.xml
app/src/main/res/drawable/bg_card.xml
+8
-0
fragment_home_md2.xml
app/src/main/res/layout/fragment_home_md2.xml
+184
-178
attrs.xml
app/src/main/res/values/attrs.xml
+1
-0
styles_md2.xml
app/src/main/res/values/styles_md2.xml
+1
-0
styles_md2_impl.xml
app/src/main/res/values/styles_md2_impl.xml
+5
-0
No files found.
app/src/main/res/drawable/bg_card.xml
0 → 100644
View file @
ff24bc0b
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<gradient
android:angle=
"45"
android:endColor=
"?colorSurface"
android:startColor=
"?colorSurfaceVariant"
/>
</shape>
\ No newline at end of file
app/src/main/res/layout/fragment_home_md2.xml
View file @
ff24bc0b
This diff is collapsed.
Click to expand it.
app/src/main/res/values/attrs.xml
View file @
ff24bc0b
...
...
@@ -17,6 +17,7 @@
<!--Card-->
<attr
name=
"styleCardNormal"
format=
"reference"
/>
<attr
name=
"styleCardVariant"
format=
"reference"
/>
<attr
name=
"styleCardElevated"
format=
"reference"
/>
<attr
name=
"styleCardOnPrimary"
format=
"reference"
/>
...
...
app/src/main/res/values/styles_md2.xml
View file @
ff24bc0b
...
...
@@ -30,6 +30,7 @@
<item
name=
"styleToolbar"
>
@style/WidgetFoundation.Toolbar
</item>
<item
name=
"styleCardNormal"
>
@style/WidgetFoundation.Card
</item>
<item
name=
"styleCardVariant"
>
@style/WidgetFoundation.Card.Variant
</item>
<item
name=
"styleCardElevated"
>
@style/WidgetFoundation.Card.Elevated
</item>
<item
name=
"styleCardOnPrimary"
>
@style/WidgetFoundation.Card.OnPrimary
</item>
...
...
app/src/main/res/values/styles_md2_impl.xml
View file @
ff24bc0b
...
...
@@ -30,6 +30,11 @@ variant. Make sure to use style referenced by attribute defined it attrs.xml.
<item
name=
"cardPreventCornerOverlap"
>
true
</item>
</style>
<style
name=
"WidgetFoundation.Card.Variant"
>
<item
name=
"cardBackgroundColor"
>
?colorSurface
</item>
<item
name=
"strokeColor"
>
?colorSurfaceVariant
</item>
<item
name=
"strokeWidth"
>
1dp
</item>
</style>
<style
name=
"WidgetFoundation.Card.Elevated"
parent=
"Widget.MaterialComponents.CardView"
>
<item
name=
"cardBackgroundColor"
>
?colorSurface
</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