B4A Library StdActionBar - Another ActionBar library

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
But if I set 32x32, images are blurred
 

Silli

Member
Licensed User
Longtime User
The Library returns "java.lang.NoSuchFieldException:mActionView" in the L Developer Preview

Is there any way to fix it?


The problem occurs too in the final Android 5 (Android L) SDK. Is a solution in planning?
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hello,
looking at the picture.
The 3 tab A, B, C in some devices, the are positioned near the word "CSI" and in other ones they are below. So, I placed a list and I have no idea how to manage the layout LIST HEIGHT due to this different for device. Any idea?

EDIT: Picture attacched
 

Attachments

  • 1.png
    15.2 KB · Views: 211
Last edited:

ggpanta

Member
Licensed User
Longtime User
Do you see an action bar icon?
Erel the bar is created as well the actionbar icon.

B4X:
java.lang.NoSuchFieldException: mActionView
    at java.lang.Class.getDeclaredField(Class.java:886)
    at anywheresoftware.b4a.objects.StdActionBar.Initialize(StdActionBar.java:64)
    at com.sshlroot.pbminingstats.main._setupgui(main.java:2774)
    at com.sshlroot.pbminingstats.main._activity_create(main.java:367)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at com.sshlroot.pbminingstats.main.afterFirstLayout(main.java:98)
    at com.sshlroot.pbminingstats.main.access$100(main.java:16)
    at com.sshlroot.pbminingstats.main$WaitForLayout.run(main.java:76)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5221)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

Tested on a Nexus 7 (2013) on Lollipop
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User

Please
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
How can I retrieve TAB height?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Got this error:
B4X:
AndroidManifest.xml:14: error: No resource identifier found for attribute 'uiOptions' in package 'android'
 

Antony Danby

Member
Licensed User
Longtime User
Erel,

Hi

I am writing an application and I am using a StdActionBar and a StdViewPager and I want to have Preferences as one of the Panels.

So, kind of like this :-

Sub Globals
Private bar As StdActionBar
Private vp As StdViewPager
End Sub

In another routine:

'Load the pages layouts
vp.Panels(0).LoadLayout("0")
vp.Panels(1).LoadLayout("1")
vp.Panels(2).LoadLayout("2")

Panel / Page 2 is ( or will be ) the Preferences page.
There are a lot of settings, so how would I make this Panel / Page scrollable ?

Sorry if this is a stupid question, I am a bit of a B4A newbie

Thanks
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
You can scroll the view to the page 2 when your Activity Start:

B4X:
vp.ScrollTo(1, True)
 

Antony Danby

Member
Licensed User
Longtime User
You can scroll the view to the page 2 when your Activity Start:

B4X:
vp.ScrollTo(1, True)

Not what I meant. I meant scrollable up and down ON THE ACTUAL PAGE, not to scroll to a page.
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Last edited:

ggpanta

Member
Licensed User
Longtime User

Attachments

  • Screenshot_2014-10-22-05-44-20.png
    40.4 KB · Views: 199

Erel

B4X founder
Staff member
Licensed User
Longtime User
There are a lot of settings, so how would I make this Panel / Page scrollable ?
Add a ScrollView to the Panel.

It doors work without the ButtonClicked event but I need it to open my nav drawer. I will wait for the updated library.
This issue will be solved in the next update of B4A.
 
Last edited:

ggpanta

Member
Licensed User
Longtime User
Add a ScrollView to the Panel.


This issue will be solved in the next update or B4A.

Is it possible to add transparency to the action bar? I know I can theme it and I am using xml for that but I would like to change the transparency to simulate the effect on the play store, ie change the actionbar alpha while my scrollview is scrolled up.
 

ggpanta

Member
Licensed User
Longtime User
The problem with that is that the transparency is set to that alpha value, you cant change it after.

My Idea is to have the actionbar at 0 and change it gradually to 255 while the user scrolls the scrollview, that way the actionbar will dissapear.

The other issue is that to my understanding this actionbar is ocupying always the top part of the activity, thus I cant have it overlap part of my UI. If this was possible I could add the scrollview at top(0) of the activity overlaped by the actionbar (I will add any views lower in that scrollview), that way when the actionbar becomes transparent the views in the scrollview would be visible.

Check how it appears in the play store when you sroll down on an item decription, the actionbar gradually dissapears (fades out), and the content is shown underneath the previous visible actionbar.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…