Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,780,441 Members 43,535 Now Online
XDA Developers Android and Mobile Development Forum

[LIB] Header2ActionBar | 06.12.2013

Tip us?
 
AChep
Old
(Last edited by AChep; 6th December 2013 at 08:57 PM.)
#1  
AChep's Avatar
Recognized Themer / Recognized Developer - OP
Thanks Meter 5,552
Posts: 1,267
Join Date: Feb 2011
Location: Ukraine, Lugansk, Belovodsk

 
DONATE TO ME
Default [LIB] Header2ActionBar | 06.12.2013

Hey there,



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!

Artem Chepurnoy. My index thread here
Check out AcDisplay, Donate to me via Bitcoin
The Following 30 Users Say Thank You to AChep For This Useful Post: [ Click to Expand ]
 
yogi.306
Old
#2  
yogi.306's Avatar
Senior Member
Thanks Meter 166
Posts: 504
Join Date: Mar 2013
Question Thanks for the project

Quote:
Originally Posted by AChep View Post
Hey there,



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
Thanks & Regards,
Yogi

My Work:
is your Volume button is broken ? Try this very light app (Free & no ads.)
https://play.google.com/store/apps/d...u.volumebutton
Please give 5 Star and your review

Daily, Everyday start your day with the Best Quotes- Transparent Widget App.
https://play.google.com/store/apps/d...uquoteoftheday
Please give 5 Star and your review
 
AChep
Old
(Last edited by AChep; 9th December 2013 at 02:40 PM.)
#3  
AChep's Avatar
Recognized Themer / Recognized Developer - OP
Thanks Meter 5,552
Posts: 1,267
Join Date: Feb 2011
Location: Ukraine, Lugansk, Belovodsk

 
DONATE TO ME
Quote:
Originally Posted by yogi.306 View Post
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.

Artem Chepurnoy. My index thread here
Check out AcDisplay, Donate to me via Bitcoin
 
ATMOSF3AR
Old
#4  
ATMOSF3AR's Avatar
Senior Member
Thanks Meter 639
Posts: 573
Join Date: Jan 2012
Location: New Delhi

 
DONATE TO ME
thanks for your efforts, really nice.


(PM me if you think my signature is oversized)
 
solidd_swa
Old
#5  
Member
Thanks Meter 1
Posts: 80
Join Date: Nov 2008
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
Old
(Last edited by AChep; 9th December 2013 at 06:43 PM.)
#6  
AChep's Avatar
Recognized Themer / Recognized Developer - OP
Thanks Meter 5,552
Posts: 1,267
Join Date: Feb 2011
Location: Ukraine, Lugansk, Belovodsk

 
DONATE TO ME
Quote:
Originally Posted by solidd_swa View Post
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?

Artem Chepurnoy. My index thread here
Check out AcDisplay, Donate to me via Bitcoin
 
David 617
Old
#7  
David 617's Avatar
Senior Member
Thanks Meter 233
Posts: 540
Join Date: May 2011
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
Old
#8  
David 617's Avatar
Senior Member
Thanks Meter 233
Posts: 540
Join Date: May 2011
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
 
AChep
Old
#9  
AChep's Avatar
Recognized Themer / Recognized Developer - OP
Thanks Meter 5,552
Posts: 1,267
Join Date: Feb 2011
Location: Ukraine, Lugansk, Belovodsk

 
DONATE TO ME
Quote:
Originally Posted by David 617 View Post
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.

Artem Chepurnoy. My index thread here
Check out AcDisplay, Donate to me via Bitcoin
The Following User Says Thank You to AChep For This Useful Post: [ Click to Expand ]
 
DaGr81
Old
#10  
DaGr81's Avatar
Member
Thanks Meter 6
Posts: 59
Join Date: Aug 2010
Location: Kathmandu
nice work.
HTC Google Nexus One
BlackRose HBOOT Version: 7.35.5017
Radio Version: 5.08.00.04
ClockworkMod Recovery Version: 5.0.2.0
ROM: CyanogenMod 7.2
Current Status: Broken Power Button but still rigid.


LG Google Nexus 4
Bootloader: MAKOZ30d
Baseband: .83
TWRP with MultiRom: 2.6.3
ROM: CyanogenMod 11


Asus Google Nexus 7
Bootloader Version: 4.13
TWRP version: 2.6.3
ROM: CyanogenMod 11

Tags
achep, android, header2actionbar, lib, library, opensource
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes