Tag «android-action-bar»

Android AppBarLayout Scrolling Example

Like whatsapp, on scrolling of listview, automatically toolbar gets hidden. This can be achieved using the Android AppBarLayout, Use this layout to hide the actionbar or appbar when the sibling view is scrolled. AppBarLayout is introduced from Lollipop onwards, but  through design support library you can add this feature for Android 2.1 or above devices. Above image is an example of …

Android custom action bar with different styles example

Android action bar by default comes with dark or Light theme, programmatically  styles can be changed by modifying styles.xml of values folder. Note: We are using v7 appcompat support library, it support action bar in all the devices from API 7 onward. To get Dark action bar in all the version of devices, just go to styles.xml in all folder …