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
cc8f1adc
Commit
cc8f1adc
authored
Oct 02, 2019
by
Viktor De Pasquale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more styles regarding homescreen
parent
122e2f7a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
372 additions
and
153 deletions
+372
-153
item_developer.xml
app/src/main/res/layout/item_developer.xml
+44
-0
test.xml
app/src/main/res/layout/test.xml
+304
-152
attrs.xml
app/src/main/res/values/attrs.xml
+5
-0
styles_md2.xml
app/src/main/res/values/styles_md2.xml
+4
-0
styles_md2_impl.xml
app/src/main/res/values/styles_md2_impl.xml
+15
-1
No files found.
app/src/main/res/layout/item_developer.xml
0 → 100644
View file @
cc8f1adc
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
>
<data></data>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
tools:layout_gravity=
"center"
tools:paddingEnd=
"@dimen/l1"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/developer_link"
style=
"?styleImageNormal"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:srcCompat=
"@drawable/ic_paypal"
/>
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/developer_link_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/l_50"
android:textAppearance=
"?appearanceTextCaptionNormal"
android:textStyle=
"bold"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/developer_link"
tools:text=
"Paypal"
/>
<androidx.appcompat.widget.AppCompatImageView
style=
"?styleImageSmall"
android:layout_marginStart=
"@dimen/l_50"
app:layout_constraintBottom_toBottomOf=
"@+id/developer_link_name"
app:layout_constraintStart_toEndOf=
"@+id/developer_link_name"
app:layout_constraintTop_toTopOf=
"@+id/developer_link_name"
app:srcCompat=
"@drawable/ic_more"
app:tint=
"?colorTextTransient"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
\ No newline at end of file
app/src/main/res/layout/test.xml
View file @
cc8f1adc
...
...
@@ -46,208 +46,360 @@
</com.google.android.material.appbar.AppBarLayout>
<
LinearLayout
<
androidx.core.widget.NestedScrollView
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_cont
ent"
android:layout_height=
"
match_par
ent"
android:clipToPadding=
"false"
android:orientation=
"vertical"
android:padding=
"@dimen/l1"
app:layout_behavior=
"com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
>
<
androidx.constraintlayout.widget.Constraint
Layout
<
Linear
Layout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:
paddingTop=
"@dimen/l1
"
>
android:
orientation=
"vertical
"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/home_magisk_wrapper"
android:layout_width=
"0dp"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:layout_constraintEnd_toStartOf=
"@+id/home_manager_wrapper"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
android:paddingTop=
"@dimen/l1"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/icon1"
android:layout_width=
"48dp"
android:layout_height=
"48dp"
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/home_magisk_wrapper"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
app:layout_constraintEnd_toStartOf=
"@+id/home_manager_wrapper"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
tools:src=
"@tools:sample/avatars"
/>
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/title1"
app:layout_constraintTop_toTopOf=
"parent"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/icon1"
android:layout_width=
"48dp"
android:layout_height=
"48dp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
tools:src=
"@tools:sample/avatars"
/>
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/title1"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/l1"
android:text=
"Magisk"
android:textAppearance=
"?appearanceTextTitleNormal"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/icon1"
app:layout_constraintTop_toTopOf=
"parent"
/>
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/status1"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:text=
"is up to date"
android:textAppearance=
"?appearanceTextCaptionVariant"
app:layout_constraintEnd_toEndOf=
"@+id/title1"
app:layout_constraintStart_toStartOf=
"@+id/title1"
app:layout_constraintTop_toBottomOf=
"@+id/title1"
/>
<FrameLayout
android:id=
"@+id/button_container1"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/l1"
android:layout_marginEnd=
"@dimen/l_50"
app:layout_constraintEnd_toStartOf=
"@+id/delete1"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/status1"
>
<com.google.android.material.button.MaterialButton
style=
"?styleButtonDefault"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/update"
app:icon=
"@drawable/ic_update_md2"
app:iconGravity=
"textEnd"
app:iconPadding=
"@dimen/l_50"
app:iconSize=
"18dp"
tools:visibility=
"gone"
/>
<com.google.android.material.button.MaterialButton
style=
"?styleButtonText"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/install"
app:icon=
"@drawable/ic_install"
app:iconGravity=
"textEnd"
app:iconPadding=
"@dimen/l_50"
app:iconSize=
"18dp"
/>
</FrameLayout>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/delete1"
style=
"?styleIconError"
app:layout_constraintBottom_toBottomOf=
"@+id/button_container1"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"@+id/button_container1"
app:srcCompat=
"@drawable/ic_delete_md2"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/home_manager_wrapper"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/l1"
android:text=
"Magisk"
android:textAppearance=
"?appearanceTextTitleNormal"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/icon1"
app:layout_constraintTop_toTopOf=
"parent"
/>
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/status1"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:text=
"is up to date"
android:textAppearance=
"?appearanceTextCaptionVariant"
app:layout_constraintEnd_toEndOf=
"@+id/title1"
app:layout_constraintStart_toStartOf=
"@+id/title1"
app:layout_constraintTop_toBottomOf=
"@+id/title1"
/>
<FrameLayout
android:id=
"@+id/button_container1"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/l1"
android:layout_marginEnd=
"@dimen/l_50"
app:layout_constraintEnd_toStartOf=
"@+id/delete1"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/status1"
>
<com.google.android.material.button.MaterialButton
style=
"?styleButtonDefault"
android:layout_width=
"match_parent"
app:layout_constraintStart_toEndOf=
"@+id/home_magisk_wrapper"
app:layout_constraintTop_toTopOf=
"parent"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/icon1"
android:layout_width=
"48dp"
android:layout_height=
"48dp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
tools:src=
"@tools:sample/avatars"
/>
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/title1"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:
text=
"@string/update
"
a
pp:icon=
"@drawable/ic_update_md2
"
a
pp:iconGravity=
"textEnd
"
app:
iconPadding=
"@dimen/l_50
"
app:
iconSize=
"18dp
"
tools:visibility=
"gone
"
/>
<
com.google.android.material.button.MaterialButton
style=
"?styleButtonText
"
android:layout_width=
"
match_parent
"
android:
layout_marginStart=
"@dimen/l1
"
a
ndroid:text=
"Manager
"
a
ndroid:textAppearance=
"?appearanceTextTitleNormal
"
app:
layout_constraintEnd_toEndOf=
"parent
"
app:
layout_constraintStart_toEndOf=
"@+id/icon1
"
app:layout_constraintTop_toTopOf=
"parent
"
/>
<
androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/status1
"
android:layout_width=
"
0dp
"
android:layout_height=
"wrap_content"
android:text=
"
@string/install
"
a
pp:icon=
"@drawable/ic_install
"
app:
iconGravity=
"textEnd
"
app:
iconPadding=
"@dimen/l_50
"
app:
iconSize=
"18dp
"
/>
android:text=
"
has update available!
"
a
ndroid:textAppearance=
"?appearanceTextCaptionVariant
"
app:
layout_constraintEnd_toEndOf=
"@+id/title1
"
app:
layout_constraintStart_toStartOf=
"@+id/title1
"
app:
layout_constraintTop_toBottomOf=
"@+id/title1
"
/>
</FrameLayout>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/delete1"
style=
"?styleIconError"
app:layout_constraintBottom_toBottomOf=
"@+id/button_container1"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"@+id/button_container1"
app:srcCompat=
"@drawable/ic_delete_md2"
/>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/l1"
app:layout_constraintTop_toBottomOf=
"@+id/status1"
>
<com.google.android.material.button.MaterialButton
style=
"?styleButtonDefault"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/update"
app:icon=
"@drawable/ic_update_md2"
app:iconGravity=
"textEnd"
app:iconPadding=
"@dimen/l_50"
app:iconSize=
"18dp"
/>
<com.google.android.material.button.MaterialButton
style=
"?styleButtonText"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/install"
app:icon=
"@drawable/ic_install"
app:iconGravity=
"textEnd"
app:iconPadding=
"@dimen/l_50"
app:iconSize=
"18dp"
tools:visibility=
"gone"
/>
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_marginTop=
"@dimen/l2"
android:layout_marginBottom=
"@dimen/l2"
android:background=
"?colorSurfaceVariant"
/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/home_manager_wrapper"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/l1"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/home_magisk_wrapper"
app:layout_constraintTop_toTopOf=
"parent"
>
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/icon1"
android:layout_width=
"48dp"
android:layout_height=
"48dp"
android:id=
"@+id/support_icon"
style=
"?styleIconNormal"
android:padding=
"0dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:tint=
"@null"
tools:src=
"@tools:sample/avatars"
/>
<
androidx.appcompat.widget.AppCompatText
View
android:id=
"@+id/title1
"
<
com.google.android.material.card.MaterialCard
View
style=
"?styleCardNormal
"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/l1"
android:text=
"Manager"
android:textAppearance=
"?appearanceTextTitleNormal"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/
icon1
"
app:layout_constraintTop_toTopOf=
"parent"
/
>
app:layout_constraintStart_toEndOf=
"@+id/
support_icon
"
app:layout_constraintTop_toTopOf=
"parent"
>
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/status1"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:text=
"has update available!"
android:textAppearance=
"?appearanceTextCaptionVariant"
app:layout_constraintEnd_toEndOf=
"@+id/title1"
app:layout_constraintStart_toStartOf=
"@+id/title1"
app:layout_constraintTop_toBottomOf=
"@+id/title1"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:padding=
"@dimen/l1"
>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:fontFamily=
"sans-serif-black"
android:textAppearance=
"?appearanceTextCaptionNormal"
android:textStyle=
"bold"
tools:text=
"\@topjohnwu"
/>
<androidx.recyclerview.widget.RecyclerView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:clipToPadding=
"false"
android:fadingEdgeLength=
"@dimen/l1"
android:orientation=
"horizontal"
android:paddingTop=
"@dimen/l1"
android:requiresFadingEdge=
"horizontal"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem=
"@layout/item_developer"
/>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<FrameLayout
android:layout_width=
"match_parent"
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/l1"
tools:visibility=
"gone"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/support_icon"
style=
"?styleIconNormal"
android:padding=
"0dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:tint=
"@null"
tools:src=
"@tools:sample/avatars"
/>
<com.google.android.material.card.MaterialCardView
style=
"?styleCardNormal"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/l1"
app:layout_constraintTop_toBottomOf=
"@+id/status1"
>
android:layout_marginEnd=
"@dimen/l1"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@+id/support_icon"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<com.google.android.material.button.MaterialButton
style=
"?styleButtonDefault"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/update"
app:icon=
"@drawable/ic_update_md2"
app:iconGravity=
"textEnd"
app:iconPadding=
"@dimen/l_50"
app:iconSize=
"18dp"
/>
<com.google.android.material.button.MaterialButton
style=
"?styleButtonText"
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/install"
app:icon=
"@drawable/ic_install"
app:iconGravity=
"textEnd"
app:iconPadding=
"@dimen/l_50"
app:iconSize=
"18dp"
tools:visibility=
"gone"
/>
</FrameLayout>
android:orientation=
"vertical"
android:padding=
"@dimen/l1"
>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"end"
android:fontFamily=
"sans-serif-black"
android:textAppearance=
"?appearanceTextCaptionNormal"
android:textStyle=
"bold"
tools:text=
"\@diareuse"
/>
<androidx.recyclerview.widget.RecyclerView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:clipToPadding=
"false"
android:fadingEdgeLength=
"@dimen/l1"
android:orientation=
"horizontal"
android:paddingTop=
"@dimen/l1"
android:requiresFadingEdge=
"horizontal"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
app:reverseLayout=
"true"
tools:listitem=
"@layout/item_developer"
/>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_marginTop=
"@dimen/l2"
android:layout_marginBottom=
"@dimen/l2"
android:background=
"?colorSurfaceVariant"
/>
<com.google.android.material.card.MaterialCardView
style=
"?styleCardNormal"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_marginTop=
"@dimen/l1"
android:layout_marginBottom=
"@dimen/l1"
android:background=
"?colorSurfaceVariant"
/>
<
Linear
Layout
<
androidx.constraintlayout.widget.Constraint
Layout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:padding=
"@dimen/l1"
>
android:layout_height=
"wrap_content"
>
<androidx.appcompat.widget.AppCompat
Text
View
android:
layout_width=
"wrap_content
"
android:layout_height=
"wrap_content
"
android:
fontFamily=
"sans-serif-black
"
a
ndroid:textAllCaps=
"true
"
a
ndroid:textAppearance=
"?appearanceTextCaptionNormal
"
a
ndroid:textSize=
"10sp
"
a
ndroid:textStyle=
"bold
"
tools:
text=
"Support u
s"
/>
<androidx.appcompat.widget.AppCompat
Image
View
android:
id=
"@+id/support_icon
"
style=
"?styleIconNormal
"
android:
padding=
"0dp
"
a
pp:layout_constraintBottom_toBottomOf=
"parent
"
a
pp:layout_constraintStart_toStartOf=
"parent
"
a
pp:layout_constraintTop_toTopOf=
"parent
"
a
pp:tint=
"@null
"
tools:
src=
"@tools:sample/avatar
s"
/>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width=
"match_parent"
<com.google.android.material.card.MaterialCardView
style=
"?styleCardNormal"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
tools:text=
"todo..."
/>
android:layout_marginStart=
"@dimen/l1"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/support_icon"
app:layout_constraintTop_toTopOf=
"parent"
>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:padding=
"@dimen/l1"
>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:fontFamily=
"sans-serif-black"
android:textAppearance=
"?appearanceTextCaptionNormal"
android:textStyle=
"bold"
tools:text=
"Project links"
/>
<androidx.recyclerview.widget.RecyclerView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:clipToPadding=
"false"
android:fadingEdgeLength=
"@dimen/l1"
android:orientation=
"horizontal"
android:paddingTop=
"@dimen/l1"
android:requiresFadingEdge=
"horizontal"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem=
"@layout/item_developer"
/>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>
</
com.google.android.material.card.MaterialCardView
>
</
LinearLayout
>
</
LinearLayout
>
</
androidx.core.widget.NestedScrollView
>
<com.google.android.material.bottomappbar.BottomAppBar
android:id=
"@+id/home_bottom_bar"
...
...
app/src/main/res/values/attrs.xml
View file @
cc8f1adc
...
...
@@ -31,6 +31,11 @@
<attr
name=
"styleIconPrimary"
format=
"reference"
/>
<attr
name=
"styleIconError"
format=
"reference"
/>
<!--Image-->
<attr
name=
"styleImageBig"
format=
"reference"
/>
<attr
name=
"styleImageNormal"
format=
"reference"
/>
<attr
name=
"styleImageSmall"
format=
"reference"
/>
<!--endregion-->
<!--region Texts-->
...
...
app/src/main/res/values/styles_md2.xml
View file @
cc8f1adc
...
...
@@ -39,6 +39,10 @@
<item
name=
"styleIconPrimary"
>
@style/WidgetFoundation.Icon.Primary
</item>
<item
name=
"styleIconError"
>
@style/WidgetFoundation.Icon.Error
</item>
<item
name=
"styleImageBig"
>
@style/WidgetFoundation.Image.Big
</item>
<item
name=
"styleImageNormal"
>
@style/WidgetFoundation.Image
</item>
<item
name=
"styleImageSmall"
>
@style/WidgetFoundation.Image.Small
</item>
<!--///-->
<item
name=
"appearanceTextDisplayNormal"
>
@style/AppearanceFoundation.Display
<
/>
...
...
app/src/main/res/values/styles_md2_impl.xml
View file @
cc8f1adc
...
...
@@ -65,9 +65,23 @@ variant. Make sure to use style referenced by attribute defined it attrs.xml.
</style>
<style
name=
"WidgetFoundation.Icon"
>
<style
name=
"WidgetFoundation.Image"
>
<item
name=
"android:layout_width"
>
32dp
</item>
<item
name=
"android:layout_height"
>
32dp
</item>
</style>
<style
name=
"WidgetFoundation.Image.Big"
>
<item
name=
"android:layout_width"
>
48dp
</item>
<item
name=
"android:layout_height"
>
48dp
</item>
</style>
<style
name=
"WidgetFoundation.Image.Small"
>
<item
name=
"android:layout_width"
>
24dp
</item>
<item
name=
"android:layout_height"
>
24dp
</item>
</style>
<style
name=
"WidgetFoundation.Icon"
parent=
"WidgetFoundation.Image.Big"
>
<item
name=
"android:padding"
>
@dimen/l_75
</item>
<item
name=
"android:background"
>
?selectableItemBackgroundBorderless
</item>
<item
name=
"tint"
>
?colorTextTransient
</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