简体   繁体   中英

Material Design Guidelines (xml examples)

Are there any readily available material design (as per google's material design guidelines) style templates (styles.xml) which i can use as base and quickly build my ui on top of that?

Thanks.

Per the Google docs just choose one of the following themes for your application:

@android:style/Theme.Material (dark version)

@android:style/Theme.Material.Light (light version)

@android:style/Theme.Material.Light.DarkActionBar

Then apply it in your AndroidManifest.xml like this:

<application
        android:theme="@android:style/Theme.Material"
        ... >

Of course you can extend your own theme from one of the above.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM