Android - a library that adds a glass-like effect to the action bar.

Overview

GlassActionBar

GlassActionBar is an Android library which implements a glass-like effect for the action bar.

The three most commonly used action bar implementations are supported: stock (API >13), ActionBarCompat and ActionBarSherlock.

The code of this library is based on techniques outlined by Nicolas Pomepuy in a recent blog post.

Example Image

Try out the sample application:

Android app on Google Play

Or browse the source code of the sample application for a complete example of use.

Including in your project

The library is pushed to Maven Central as a AAR, so you just need to add the following dependency to your build.gradle.

dependencies {
    compile 'com.github.manuelpeinado.glassactionbar:glassactionbar:0.3.0'
}

Or if your project doesn't use the stock action bar, but one of the compatibility implementations, you would use the following:

dependencies {
    // Use the following if your project uses ActionBarCompat
    compile 'com.github.manuelpeinado.glassactionbar:glassactionbar-abc:0.3.0'
    // Or the following if your project uses ActionBarSherlock
    compile 'com.github.manuelpeinado.glassactionbar:glassactionbar-abs:0.3.0'
}

Usage

Using the library is really simple, just look at the source code of the provided samples:

Acknowledgements

Who's using it

Does your app use GlassActionBar? If you want to be featured on this list drop me a line.

Developed By

Manuel Peinado Gallego - [email protected]

Follow me on Twitter Follow me on Google+ Follow me on LinkedIn

License

Copyright 2013 Manuel Peinado

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You might also like...
Automated-build-android-app-with-github-action - CI/CD Automated Build Android App Bundle / APK / Signed With Github Action
Automated-build-android-app-with-github-action - CI/CD Automated Build Android App Bundle / APK / Signed With Github Action

Automated Build Android With Using Github Action Project Github Action Script Us

Custom view to expand long text with view more,less action , you can customize min lines , action color
Custom view to expand long text with view more,less action , you can customize min lines , action color

ExpandableTextView Custom expadable text view Examples : mostafa.projects.expandabletextview.ExpandableTextView android:layout_wi

 A dual-function menu button that offers a default action as well as the possibility of choosing a different action by selecting from a set of alternatives.
A dual-function menu button that offers a default action as well as the possibility of choosing a different action by selecting from a set of alternatives.

A dual-function menu button that offers a default action as well as the possibility of choosing a different action by selecting from a set of alternatives.

Akka-in-action-kotlin - Accompanying source code for Akka in Action by Kotlin

Akka実践バイブル Kotlin版サンプルコード ( Accompanying source code for Akka in Action by Kotli

IOSProgressBar is a progress-bar lib for android. And the progress-bar looks like iOS system style
IOSProgressBar is a progress-bar lib for android. And the progress-bar looks like iOS system style

IOSProgressBar is a progress-bar lib for android. And the progress-bar looks like iOS system style

App that allows you juice lemons until you have a glass of lemonade!! 🍹

Project: Lemonade App - Starter Code Starter code for the first independent project for [Android Basics in Kotlin] Introduction This is the starter co

A Tinder-like Android library to create the swipe cards effect. You can swipe left or right to like or dislike the content.

Swipecards Travis master: A Tinder-like cards effect as of August 2014. You can swipe left or right to like or dislike the content. The library create

Android - An action bar item which acts both as a refresh button and as a progress indicator
Android - An action bar item which acts both as a refresh button and as a progress indicator

RefreshActionItem An action bar item that implements this common pattern: Initially it shows a refresh button. If the button is clicked, a background

[] Easily create a simple, attractive and seamless custom action bar style for your Android application

Android Action Bar Style Generator ####DEPRECATED: Consider using Toolbar or its support library equivalent.#### The Android Action Bar Style Generato

Proof of concept of custom widgets and apps running on the Z Flip3 cover screen. Adds a widget to Z Flip3 cover screen that lets you launch a web browser-like app on the cover.

SubUI-browser Proof of concept of custom widgets and apps running on the Z Flip3 cover screen. Adds a widget to Z Flip3 cover screen that lets you lau

Android图表库(XCL-Charts is a free charting library for Android platform.),基于Android Canvas来绘制各种图表,使用简便,定制灵活。目前支持3D/非3D/背向式/横向/竖向柱形图(Bar Chart)、3D/非3D饼图(Pie Chart)、堆叠图(Stacked Bar Chart)、面积图(Area Chart)、 折线图(Line Chart)、曲线图(Spline Chart)、环形图(Dount Chart)、南丁格尔玫瑰图(Rose Chart)、仪表盘(Dial Chart)、刻度盘(Gauge Chart)、雷达图(Radar Chart)、漏斗图(Funnel Chart)、圆形图(Circle Chart)、弧线比较图、散点图(Scatter Chart)、气泡图(Bubble Chart)、范围条形图(RangeBar Chart)等图表。其它特性还包括支持图表缩放、手势移动、点击响应、动画效果、多轴显示、图表参考线、混合图表及同数据源不同图表类型切换等。 NTabLayout is a simple tab bar custom view under android which has click-sliding and scaling up animation effect.
NTabLayout is a simple tab bar custom view under android which has click-sliding and scaling up animation effect.

NTabLayout Brief NTabLayout is a simple tab bar custom view under android which has click-sliding and scaling up animation effect. This tab bar's effe

a circle progress bar with effect
a circle progress bar with effect

RingProgress a circle progress bar with effect #Preview ##Usage xml com.ldoublem.ringPregressLibrary.RingProgress android:id="@+id/ring_prog

An Index Side Bar With Wave Effect
An Index Side Bar With Wave Effect

WaveSideBar You can use WaveSideBar in the contacts page of your application. Refer to AlexLiuSheng/AnimSideBar. Screenshot Include the WaveSideBar to

SystemUiController - Android Ui color controller (status bar, navigation bar)
SystemUiController - Android Ui color controller (status bar, navigation bar)

SystemUiController Android system ui color controller (status bar, navigation bar) Download implementation "land.sungbin:systemuicontroller:${version}

Bottom-App-Bar-with-Bottom-Navigation-in-Jetpack-compose-Android - Bottom App Bar with Bottom Navigation in Jetpack compose
Bottom-App-Bar-with-Bottom-Navigation-in-Jetpack-compose-Android - Bottom App Bar with Bottom Navigation in Jetpack compose

Bottom-App-Bar-with-Bottom-Navigation-in-Jetpack-compose-Android This is simple

This directory contains the model files (protos) for the Bar ServiceThis directory contains the model files (protos) for the Bar Service
This directory contains the model files (protos) for the Bar ServiceThis directory contains the model files (protos) for the Bar Service

This directory contains the model files (protos) for the Bar ServiceThis directory contains the model files (protos) for the Bar Service

A Java library that models spring dynamics and adds real world physics to your app.

Rebound About Rebound is a java library that models spring dynamics. Rebound spring models can be used to create animations that feel natural by intro

A Java library that models spring dynamics and adds real world physics to your app.

Rebound About Rebound is a java library that models spring dynamics. Rebound spring models can be used to create animations that feel natural by intro

Comments
  • Support for menu-drawer

    Support for menu-drawer

    There is any possibility for support menu-drawer library (https://github.com/SimonVT/android-menudrawer)?

    An screenshot of what happens when using glassactionbar abs support. I'm using abs and menu-drawer together.

    screenshot_2014-03-04-15-20-38

    opened by wakim 1
  • When i set android:windowActionBarOverlay and windowActionBarOverlay false, the result like this.

    When i set android:windowActionBarOverlay and windowActionBarOverlay false, the result like this.

    <item name="android:windowActionBarOverlay">false</item>
    <item  name="windowActionBarOverlay">false</item>
    

    2016-06-22 15 21 54

    If both set true! it works fine! Please help! thank you!

    opened by whoooami 0
  • GlassActionBar with custom action bar

    GlassActionBar with custom action bar

    Hi, I'm trying to set a custom glass actionbar on top of a listview, but I get a white background. Here's my code

    protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); chatAdapter = new ChatAdapter(); glassActionBarHelper = new GlassActionBarHelper().contentLayout(R.layout.activity_chat, chatAdapter); setContentView(glassActionBarHelper.createView(this));

        ActionBar ab = getActionBar();
        ab.setDisplayHomeAsUpEnabled(true);
        View mActionbar = getLayoutInflater().inflate(R.layout.chat_action_bar, null);
        ab.setCustomView(mActionbar);
        ab.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
    

    }

    opened by Neno0o 1
  • AndroidRuntimeError

    AndroidRuntimeError

    java.lang.IllegalArgumentException: y + height must be <= bitmap.height() at android.graphics.Bitmap.createBitmap(SourceFile:444) at android.graphics.Bitmap.createBitmap(SourceFile:414) at com.lontv.lib.glassactionbar.GlassActionBarHelper.updateBlurOverlay(GlassActionBarHelper.java:225)

    At first I like this lib very much, but this error occurd too frequently...when I inflating a

    layout includes a web view or changing text in a new runnable.

    could u tell me how to get ride of this problems ? I'd appreciate it.

    opened by ydcool 2
Releases(v0.2.1)
Owner
Manuel Peinado Gallego
Manuel Peinado Gallego
Android library implementing a fading effect for the action bar, similar to the one found in the Play Music app

FadingActionBar FadingActionBar is a library which implements the cool fading action bar effect that can be seen in the new Play Music app. This libra

Manuel Peinado Gallego 2.9k Nov 21, 2022
An example of how to extend the ActionBar under the status bar from the theme

Extended ActionBar The problem: Android 4.4 Kitkat introduced a wonderful new opportunity: translucent bars. It's as simple as adding the following to

Eugenio Marletti 160 Nov 11, 2022
An Android Library to help you create actionbar tabs like "Capitaine train" app by Cyril Mottier

TabBarView An Android Library to help you create actionbar tabs like "Capitaine train" app by Cyril Mottier Implementation: Declare TabBarView and set

Mirko Dimartino 510 Nov 15, 2022
PasswordStrengthView - an android library to represent password strength.

PasswordStrengthView - an android library to represent password strength.

null 33 Jan 3, 2022
Android Application with Kotlin to easily see who's present and absent

Android Application with Kotlin to easily see who's present and absent The appli

Lucas Aries 1 Jan 3, 2022
[] Action bar implementation which uses the native action bar on Android 4.0+ and a custom implementation on pre-4.0 through a single API and theme.

DEPRECATED ActionBarSherlock is deprecated. No more development will be taking place. For an up-to-date action bar backport use AppCompat. Thanks for

Jake Wharton 7.1k Dec 24, 2022
EtsyBlur is an Android library that allows developers to easily add a glass-like blur effect implemented in the Etsy app.

EtsyBlur EtsyBlur is an Android library that allows developers to easily add a glass-like blur effect implemented in the past Etsy app. Try out the sa

Manabu S. 755 Dec 29, 2022
Glass-break effect for views

BrokenView Glass-break effect for views. Demo Download APK Usage Android Studio dependencies { compile 'com.zys:brokenview:1.0.3' } Eclipse Just pu

null 859 Dec 30, 2022
Glass-break effect for views

BrokenView Glass-break effect for views. Demo Download APK Usage Android Studio dependencies { compile 'com.zys:brokenview:1.0.3' } Eclipse Just pu

null 858 Jan 6, 2023
Android library implementing a fading effect for the action bar, similar to the one found in the Play Music app

FadingActionBar FadingActionBar is a library which implements the cool fading action bar effect that can be seen in the new Play Music app. This libra

Manuel Peinado Gallego 2.9k Nov 21, 2022