Code Monkey home page Code Monkey logo

glassactionbar's Introduction

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
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.

glassactionbar's People

Contributors

manuelpeinado avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

glassactionbar's Issues

Quickstart

Add a quickstart. The examples are too confusing (don't know where to look, don't know what to use where and why, etc).

Errors with Android Studio

I imported this project into Android studio but I run into a couple of errors, i'm not entirely certain its the part of the project but rather my clumsy usage

[glassactionbar] /Users/user/Downloads/GlassActionBar-master/glassactionbar/res/layout/gab__frame.xml:5: error: Error: No resource found that matches the given name (at 'layout_height' with value '?attr/actionBarSize').
[glassactionbar-sample] /Users/user/Downloads/GlassActionBar-master/glassactionbar-sample/res/values/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.Sherlock.ActionBar'.
[glassactionbar-sample] /Users/user/Downloads/GlassActionBar-master/glassactionbar-sample/res/values/themes.xml:8: error: Error: No resource found that matches the given name: attr 'windowActionBarOverlay'.

There are a couple of others but they're along the same lines. Am I missing some file or is there a special way to import files into Android Studio? Is the ? from one of the errors from Unicode encoding or something?

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);

}

Links in ReadMe are dead

All links to the source code of the sample application are dead. This is very inconvenient.
By the way, nice work!

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.