You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,34 @@
4
4
5
5
Build beautiful, usable products using Material Components for NativeScript.
6
6
7
+
## Installation
8
+
9
+
### Android
10
+
Ensure your Android Theme is inheriting from `MaterialComponents`.
11
+
Inside ```App_resources/android/res/values/styles.xml``` replace all occurences of ```Theme.AppCompat``` with ```Theme.MaterialComponents```
12
+
You can see an example in the demo-vue app.
13
+
14
+
## Theming
15
+
Defining the theme and the default colors must be done a bit differently on iOS and Android
16
+
17
+
***Android**: You must set the colors through [android Style](https://github.com/material-components/material-components-android/blob/master/docs/getting-started.md#appcompat-themes)
18
+
***iOS**: You must set the colors programmatically at your app startup
Through this component you can apply `elevation` or `rippleColor` to any `View`. To enable that feature your must "install" the mixins. Make sure you do it before creating any view.
0 commit comments