[LIB] Header2ActionBar | 06.12.2013

Search This thread

AChep

Inactive Recognized Developer
Feb 19, 2011
1,290
5,803
Ukraine, Lugansk, Belovodsk
artemchep.com
Hey there,

device-2013-12-05-115925.png
device-2013-12-05-115955.png


Header2ActionBar is a library which implements the fading action bar effect that can be seen in the new Play Music and Google Newspaper apps.


Download the sample app

Usage:

Using the library is really simple, just look at the source code of the provided samples. I'll post more samples soon.

License:
Code:
    Copyright (C) 2013 AChep@xda <artemchep@gmail.com>

    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.

Source code:
To get a copy of the source code, visit my repo at GitHub.
There no pre-compiled JAR yet.

Thanks:
Thanks to the TeamFun channel at freenode! You guys yawns as always :p

Have fun with Header2ActionBar and don't forget to yawn and to contribute your own code!
 
Last edited:

yogi.306

Senior Member
Mar 16, 2013
1,141
559
38
Mumbai
www.yogeshdama.com
Thanks for the project

Hey there,

device-2013-12-05-115925.png
device-2013-12-05-115955.png


Have fun with Header2ActionBar and don't forget to yawn and to contribute your own code!


Thanks for your efforts and project, wanted to know is it possible to use this with FragmentActivity ?
i mean my current project supports android 3.0 + and i am extending my activity from FragmentActivity to have left drawer.
and i see that i can have action bar in 2.0 + using your project,
but than i found that activity is extended from header2ActionBar
 

AChep

Inactive Recognized Developer
Feb 19, 2011
1,290
5,803
Ukraine, Lugansk, Belovodsk
artemchep.com
Thanks for your efforts and project, wanted to know is it possible to use this with FragmentActivity ?
i mean my current project supports android 3.0 + and i am extending my activity from FragmentActivity to have left drawer.
and i see that i can have action bar in 2.0 + using your project,
but than i found that activity is extended from header2ActionBar
You can make the Navigation Drawer inside of the Activity too. If you doesn't want to do it - use HeaderFragment and copy-paste code from the FadingActionBarActivity.
 
Last edited:

solidd_swa

Senior Member
Nov 25, 2008
94
1
I tried the sample app. It seems that it really lags on an HTC one Google edition with stock kitkat 4.4

Sent from my HTC One using XDA Premium 4 mobile app
 

AChep

Inactive Recognized Developer
Feb 19, 2011
1,290
5,803
Ukraine, Lugansk, Belovodsk
artemchep.com
I tried the sample app. It seems that it really lags on an HTC one Google edition with stock kitkat 4.4

Sent from my HTC One using XDA Premium 4 mobile app

Hmmm... Probably that's because of the "floating height" enabled. But, anyway, strange that HTC lags on it. I'll try to do something with that. :)

PS: Does it lag when the header is invisible too?
 
Last edited:

David 617

Senior Member
May 12, 2011
865
1,446
Looks beautiful. I really like this. It is perfect for a project I'm working on.
Thank you

PS. Demo app is smooth and works well

Sent from my Galaxy Nexus using Tapatalk
 

David 617

Senior Member
May 12, 2011
865
1,446
Also, question. I assume that this won't interfere with a search function in the action bar, correct? (My goal is to have a search similar to the gmail app)

Sent from my Galaxy Nexus using Tapatalk
 

David 617

Senior Member
May 12, 2011
865
1,446
Is it possible to make the action bar a gradient instead of transparent (similar to the Google Music app) so the action bar icons will be visible against it?
Thank you

Sent from my Galaxy Nexus using Tapatalk
 

architjn

Member
Dec 9, 2013
18
16
NOIDA
Noob question

Hey AChep,
i am noob in development..
please tell me what coding should i have to do to use this library... :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    Hey there,

    device-2013-12-05-115925.png
    device-2013-12-05-115955.png


    Header2ActionBar is a library which implements the fading action bar effect that can be seen in the new Play Music and Google Newspaper apps.


    Download the sample app

    Usage:

    Using the library is really simple, just look at the source code of the provided samples. I'll post more samples soon.

    License:
    Code:
        Copyright (C) 2013 AChep@xda <artemchep@gmail.com>
    
        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.

    Source code:
    To get a copy of the source code, visit my repo at GitHub.
    There no pre-compiled JAR yet.

    Thanks:
    Thanks to the TeamFun channel at freenode! You guys yawns as always :p

    Have fun with Header2ActionBar and don't forget to yawn and to contribute your own code!
    2
    Hey AChep,
    i am noob in development..
    please tell me what coding should i have to do to use this library... :)

    Look at the demo that's included.

    Sent from my Nexus 4 using Tapatalk
    1
    Also, question. I assume that this won't interfere with a search function in the action bar, correct? (My goal is to have a search similar to the gmail app)

    Sent from my Galaxy Nexus using Tapatalk

    Yeah. It should work fine. :fingers-crossed: