Material design on senior sdk

I see that some applications already support material design. For example, SMS Textra supports material design. And this works fine on my KitKat. How can I use material design in the old version of Android. I get an error when I use this

<resources>
<!-- your app theme inherits from the Material theme -->
<style name="AppTheme" parent="android:Theme.Material">
<!-- theme customizations -->
</style>

Is there any solution?

+4
source share
3 answers

There is no direct approach since

<resources>
<!-- your app theme inherits from the Material theme -->
<style name="AppTheme" parent="android:Theme.Material">
<!-- theme customizations -->
</style>

But in KitKat we can bring the appearance of a material theme without much effort using a transparent interface.

FLAG_TRANSLUCENT_STATUS  or 
<item name="android:windowTranslucentNavigation">false</item>
<item name="android:windowTranslucentStatus">true</item>

Check this post for more information: Appearance of the material theme in KitKat

+2

... .

Android 2.2 (API 8) 5.0 (API 21)

:

  • (, ..)

1.

, .

<android.support.v7.widget.Toolbar
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?attr/colorPrimaryDark"/>

: http://antonioleiva.com/material-design-everywhere/

: https://github.com/antoniolg/MaterialEverywhere

< API 11, Theme.AppCompat.Light.NoActionBar ( windowActionBar false)

<style name="NoActionBarTheme" parent="Theme.AppCompat.Light.NoActionBar">
     ...
</style>

2.

> .. .

, , - https://github.com/navasmdc/MaterialDesignLibrary

Android Studio 1.0 - Android Studio?

.

, :)

+4

.

. style.xml style.xml kitkat -v19. "" , API 19 +.

+1