Android Material Design

From bibbleWiki
Revision as of 23:58, 22 December 2020 by Iwiseman (talk | contribs) (Created page with "=Introduction= With Android lollipop (21) wcan the RecyclerView and CardView. The page will cover List and Card Views *RecyclerView *CardView Views and Shadows *Elevation *Cli...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

With Android lollipop (21) wcan the RecyclerView and CardView. The page will cover List and Card Views

  • RecyclerView
  • CardView

Views and Shadows

  • Elevation
  • Clipping View

Animation

  • Touch Feedback (Ripple)
  • Circular Reveal
  • Activity Transitions

Not Covered

  • Path-Based Animations
  • Vector Drawables
  • Drawable Tinting

Basics

The theme is defined in the styles.xml. You have to make sure the minSdkVersion is compatible with the theme. The backward compatible themes without Material Design is <syntaxhightlight lang="xml"> Theme.AppCompat Theme.AppCompat.Light Theme.AppCompat.Light.DarkActionBar Theme.AppCompat.Light.NoActionBar </syntaxhightlight> The equivalent Material Themes are <syntaxhightlight lang="xml"> android.style/Theme.Material android.style/Theme.Material.Light android.style/Theme.Material.Light.DarkActionBar android.style/Theme.Material.Light.NoActionBar </syntaxhightlight>

Colors

  • Primary
  • Primary Dark
  • Accent