Android Question Panels Like Facebook App style ?

Slacker

Active Member
Licensed User
Longtime User
Hello Folks. I wonder, looking Facebook Android App, If the panels where are contained the notifies and messages is a real panels with inside a listview. It seems that the main app activity is structured with a fixed backbone on top and inside, at center of it, there's something that changes and scroll to request the updates/news when you scroll on top of it with your finger.

How could it possible to reach that result with the Views ? Some tips how could it be achieved ?

Thank you ! ;)
 

mc73

Well-Known Member
Licensed User
Longtime User
I thought that fb was not written in native code.
Anyway, it should be easy to get the desired results: Place a panel at the up side, containing the desired tabs (even a tabhost can do this, but it's too fixed). When the user clicks, show another panel, containing a scrollview and setting the data requested.
About the scroll feature, you can use the scrollChanged event, and then based on the scrollPosition property, decide if you want to refresh data.
 
Upvote 0

Slacker

Active Member
Licensed User
Longtime User
mc73, thank you ! That's a good tip. The little arrow indicator that is moving on top when user select messages panel or notifies panel, is an animated image which slide on the top of the panels ?
 
Upvote 0

thedesolatesoul

Expert
Licensed User
Longtime User
mc73, thank you ! That's a good tip. The little arrow indicator that is moving on top when user select messages panel or notifies panel, is an animated image which slide on the top of the panels ?
In Java, that is using the PopupWindow class with a listview inside (a similar example if AHQuickActions). Quite easy to do.

In B4A, you might want to write a class, and add animations (using animation library). But you will have to mimic all the behaviour.

Why dont you try AHQuickActions library?
 
Upvote 0

Slacker

Active Member
Licensed User
Longtime User
TheDesolateSoul, i didn't know about that Library; using AHQuickActions i think to get a similar result but for the Arrow i think i should act in different way to achieve the animated result.... is AHQuickActions apply the animated Arrow behavior when i move to another sender/button ?
 
Upvote 0

Slacker

Active Member
Licensed User
Longtime User
Ok, don't worry. I will look for it ...thank you very much TheDesolateSoul ;)
 
Upvote 0

Slacker

Active Member
Licensed User
Longtime User
Yes mc73, i evaluating that solution, Thanks ;)
 
Upvote 0
Top