Posts

Showing posts with the label material design

Using Toolbar in android in LollyPop and Pre-Lollypop Devices - Part 2

Image
1) toolbar.xml <? xml version = "1.0" encoding = "utf-8" ?> < android . support . v7 . widget . Toolbar 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" android: id = "@+id/toolbar" android: layout_width = "match_parent" android: layout_height = "wrap_content" android: background = "@color/md_blue_500_primary" android: minHeight = "?attr/actionBarSize" app: popupTheme = "@style/ThemeOverlay.AppCompat.Light" > </ android . support . v7 . widget . Toolbar > 2) activity_main.xml <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://schemas.android.com/tools" android:layout_width= "match_parent" android:layout_height= "matc