App browsing page bar - android

Im developing an app and wanted to add some page browsing with those dots to identify your current page like the image below, can someone tell me how is that control called?
Thank you in advance

There is nothing in the Android SDK that provides this "out of the box". It is probably implemented as a LinearLayout holding ImageView widgets, though there are plenty of ways of doing it. If your intention is to use this with a ViewPager, there is an implementation of this UI in the ViewPagerIndicator library and perhaps in other open source libraries as well.
If you really want to see what that app is doing, use uiautomatorviewer to inspect the running UI of that activity and see what widgets are involved.

There is no default Android view for that.
Take a look at this:
https://github.com/JakeWharton/Android-ViewPagerIndicator

Related

Tab Layout with Sliding Views

I want to create an app that uses a tab layout with sliding views (something like this):
Here's the issue:
I searched all over the web for a guide that could explain how to do this kind of thing but all I tried didn't work for me. I read somewhere that tabs layout is deprecated with Lollipop, so I tried to find an alternative way to do what I wanted to do, but nothing. Every tab layout app I try to create ends up with a crash while testing and I think it's due to something about the ActionBar, always because of the ActionBar Tabs are deprecated in Lollipop. I'm not going to post any code because I created so many projects that I lost their count, and also because they are quite the same.
So, anyone could please link me a guide or explain a working method that allows to do what I explained?
All I can say is that the app has to be used on Lollipop, so I'd like to know the compile settings to put in the gradle files.
Another important thing is that i use Android Studio, even if most of the tutorials i find on web are about Eclipse.
I hope to have explained in detail my problem and what i want to do and i thank you all in advance.
Here is a detailled description of how to use the SlidingTabLayout like Google uses it in the Store:
https://github.com/codepath/android_guides/wiki/Google-Play-Style-Tabs-using-SlidingTabLayout
Like Hugo already mentioned: it works with viewpager

How to create intro sliders like Google Docs App [Img inside]?

In the new Google Docs Android App, the app has an intro slider view in which it shows the different steps of how to use the app - I like it and want to do something similar for my app.
Are there beautiful looking open source libraries to do this? I can think of the following approaches only:
ShowcaseView
I guess I could do it using Tabs, and adjust the look and feel accordingly.
Any other (beautiful) alternatives?
(This question is slightly old, but here goes:)
Another open source Android library that I found that does exactly this (and fairly easily) is AppIntro.
It enables creation of intro sliders that look identical to Google's more recent intro sliders:
vs
Their wiki and their readme nicely describe exactly how to use it.
You can achieve this by using ViewPager.
For each click on "next" button you can change the page in ViewPager.
http://www.edumobile.org/android/android-beginner-tutorials/view-pager-example-in-android-development/

a moving tab in android application

I want to make a moving list appear from the left of the screen of the activity in the android app.
Something like the facebook app shown below :
,,
how can I make something like that in an android app.
Thanks.
This is a very popular UI pattern called a sliding menu / slider. You can search for open source libraries / projects which implement this for you.
Here is the first one I found on google.
This one is useful if you want to support old (pre holo) android devices too. It's an addon to the excellent holoeverywhere library.
And last but not least, take a look at this official pattern by google which also implements the same behavior. The code for creating it is available here.
The concept behind this is that you are taking a screen grab of the current activity and then loading in the menu. Your not actually sliding between activities, your moving the screen shot. Thats a very basic explanation of whats happening.
If you search for slide navigation on github I'm sure you'll find something.

Adding native bottom menu to phonegap app for android

I know there are a few workarounds to create an always visible bottom menu and still be able to scroll the content. (iscroll, jquery)
But isn't it possible to add this in the java file itself and then "communicate" with it. (highlight when selected and such) and the webview only extends to the bottom menu?
Or does anybody knows if there is an easy way with the new update 1.9 where their own webview is included? They haven't included many examples yet.
I know most people swear by jquery/prototype and all these frameworks, but i have heard that the speed of phonegap apps can be very slow, so i want to try making the app without an extra JS framework.
Dan you'd be better off sticking with the Android way of providing this functionality which is providing an options menu that appears when you click the menu button.
https://developer.android.com/guide/topics/ui/menus.html#options-menu
From there in your onOptionsItemSelected method you can call a Javascript function using this.sendJavascript().
Well for some reason, position:fixed worked all of the sudden. I have no idea why??
This basically does what I want it to do with a menu in the bottom.. If I only could figure out what made the difference..

Is there an Android Tablet equivalent of UIPopOverController?

I'm just mucking around with Android tablet stuff in 3.0. I have fragments set up to do the equivalent of UISplitViewController for iPad. Anyone know what the best solution to get something like the iPad UIPopOverController is?
I'm thinking the options are either a separate dialog or something in the Action Bar ...?
I haven't actually seen any Android tablets running 3.0 so not clear what the standard will be ...
Many thanks in advance
This may not be exactly what you are looking for because I'm not all that familiar with UIPopOverController but I think you can accomplish something similar using a Toast with a customized layout.
I would take a look at Creating Toast Notifications and see if it works for you.
Depending on the functionality needed it might work, otherwise you might need to look into trying to generate a modeless dialog with a custom layout.
As for your other question, yes options are generally stored in a separate activity within your application and following Honeycomb design the options activity would be accessible from the Action Bar and the options itself could be a fragment.
Its nothing official but I would crack open the source code to the contacts app for 2.0+ They emulate the popover UI using an Activity in a pretty creative way. It might be a little over kill as it was designed to be usable by any application not just itself. But it should help give you a nudge in the right direction.
Also depending on what the behavior you are looking for exactly a combination of fragments and action bar could be the way to go, but its not going to be as easy as iOS.

Categories

Resources