AHActionBar Library

sanjeeve

Member
Licensed User
Longtime User
Actionbar Home Logo

Hi, I was about to ask a similar question..I'm not quite sure how to use the HomeLogo attribute. can someone please give me an example ? thank you
 

mitsusdev

Member
Licensed User
Longtime User
Add Views control

Hi corwin42,
i'm trying to build ad Action Bar View Control as Android Guidelines tell about.

app_structure_gmail.png


I'm able to build it using AddActionAt2 method, but only using an icon (not text).

Is it possible to implement view control using insted a title/subtitle action control?

Thx
 

corwin42

Expert
Licensed User
Longtime User
@mitsusdev:
Sorry, this is currently not supported. This may be added in a future version of this library.

@sanjeeve:
The HomeLogo is just a special form of the home icon. The difference is that it can be bigger than the icon.

@Inman:
Text labels are not possible.
 

hypergreatthing

Member
Licensed User
Longtime User
Thank you for your actionbar.
I was hoping to use it for custom actions. I'm running into an issue where I can't add custom icons because an icon is defined as 48x48 pixels, anything more than that, it will scale it down.
Do you have the source code for the library? I'd like to take a look to see if i can make it variable length for custom icons.

Thanks,
 

jcesar

Active Member
Licensed User
Longtime User
Subtitle scroll issue on android 4.1

The text of actionbar subtile is not scrolling in devices with ICS like GS3. And the text is very long.

In early versions works fine.

Its a bug or I'm doing something wrong ?
 

corwin42

Expert
Licensed User
Longtime User
I think I have found a fix for this on stackoverflow.

In Objects/res/layout/ahab_actionbar.xml change for the views "actionbar_title" and "actionbar_subtitle" the lines

android:lines="1"

to

android:singleLine="true"

This should fix it. (I have not tested it myself)

Edit: Just tried it and it works
 
Last edited:

jcesar

Active Member
Licensed User
Longtime User
Problem Solved

I think I have found a fix for this on stackoverflow.

In Objects/res/layout/ahab_actionbar.xml change for the views "actionbar_title" and "actionbar_subtitle" the lines

android:lines="1"

to

android:singleLine="true"

This should fix it. (I have not tested it myself)

Edit: Just tried it and it works

Thanks for your help. This solve my problem.
 

woniol

Active Member
Licensed User
Longtime User
Colors with ARGB

Hallo,
I wanted to use AB with colors defined by ARBG
like
Case 0
'c1 = Colors.ARGB(100,100,100, 180)
'c2 = Colors.ARGB(100,100, 100, 100)
'c3 = Colors.ARGB(100,100, 100, 100)
in example.
Works fine for the ActionBar but ActionIcons background has wrong colors.

Can someone help with it?
 

jdiperla

Member
Licensed User
Longtime User
NEVERMIND: I think its because Windows is having a permission issue with the Res folder. I noticed that even though I set the folder to read only, Windows doesn't set it. Let me see if that was the issue.

I get an error when running the demo:

B4X:
Program paused on line: 24 ac1.Initialize("AC")

The debugger tells me this:

B4X:
LastException android.content.res.Resource$NotFoundException: Resource ID #0x0

I have AHQuickAction 1.02 Library checked and installed, the same with Core and Reflection 2.20. I put Res in the objects folder and made it read only. I cleaned the project and I am using Android-15 Jar. My device is using Android 4.1.

Thoughts on whats wrong?
 
Last edited:

sigster

Active Member
Licensed User
Longtime User
Hi

I am using Listview with AHActionBar

when I use different Mobile LCD size the it is smal space between
Listview and AHActionBar

I was trying to fix it but it don't work

can you help me with this Please

B4X:
   ltvTexts.Height = 100%y - (ab.Top + ab.Height)

Regards
Sigster
 

airblaster

Active Member
Licensed User
Longtime User
Hi corwin42,

I took a quick look at the source code and noticed there is already some code for ListNavigationDropdown.
Is there a specific reason you didn't include it in the wrapper?
If not, I might try including it.
 

airblaster

Active Member
Licensed User
Longtime User
Tried doing it, but seems I don't know enough about Java to make it :(.
What I'd like to achieve is what is described under the headline "Spinners" here: Action Bar | Android Developers

Any chance this will make it into a future Version of the library?
If I understand the source correctly, most of the code should already be there.
 

corwin42

Expert
Licensed User
Longtime User
I took a quick look at the source code and noticed there is already some code for ListNavigationDropdown.
Is there a specific reason you didn't include it in the wrapper?
If not, I might try including it.

I decided to not include it into the library because the implementation looked horrible.


Any chance this will make it into a future Version of the library?
If I understand the source correctly, most of the code should already be there.

Yes the problem is that I didn't like the result. To make it nice the code needs a complete rewrite. I think it would be easier to add such a feature to Informatix ActionBar Class.
 

Inman

Well-Known Member
Licensed User
Longtime User
Is it possible to add a shadow or some border to the bottom edge of the actionbar? I believe the original actionbar for Android 3.0+ has this.

c0473a9504601ca632f007027561412c.jpg
 

corwin42

Expert
Licensed User
Longtime User
Not in the ActionBar itself but you can add a small Panel below the ActionBar and set its background to a color or a gradient to get this effect.
 

yttrium

Active Member
Licensed User
Longtime User
Top