move fragment(?) by swiping and show underlying fragment - android

Small question, but I think it is an interresting one as I haven't found the answer yet:
what is being used in the Youtube app to be able to swipe the fragment(?) to the right and showing the options behind it. You can do it on the main page and then your personal settings are being displayed.
Anyone have an idea how this is done? I saw it in one other (none-google) app too...

To get similar effect in app you can use ViewPager.
Some information and code examples: http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html

Related

Custom keyboard with swipe functionality in android?

I want a custom keyboard in android. I have referred many more examples and seen source codes on github but, couldn't found any relevant reference for swipe functionality.Now i want funcationality like if user want to write Hello World then it should only swipe on that words only like in some devices it gives by default. So, can anyone have any idea or suggestions regarding this, because i am facing first time this type of requirement. Thanks in advance. This below image is for what i actually want.

App browsing page bar

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

Android swipe left and right from record to record

A lot of apps that I have (such as gmail) has a feature where you can swipe left and right to go from one record to another. In gmail, this navigation takes you from one email to the next (or previous, depending on which way you swipe). When you reach the end, you get this blue halo effect, and the swiping in that direction doesn't work. My question is, what is this navigation called? Is it something in the sdk, or is it written by the developer for each app? Can I use it in my app where I have data stored in the sqlite database that I would like to show one record at a time this way? Is it available in all sdk versions?
I would search for it, but I don't know what it's called so I can't really think of any good search terms here. If someone just points me in the right direction, I can read the documentation and figure it out.
The component you are looking for calls ViewPager. You'll find in under the compatibility pack jar.
android viewPager implementation
http://android-developers.blogspot.co.il/2011/08/horizontal-view-swiping-with-viewpager.html
You can use something called a viewFlipper if you want to use animations.
There's a nice tutorial here: http://www.warriorpoint.com/blog/2009/05/26/android-switching-screens-in-an-activity-with-animations-using-viewflipper/
Good luck :)

How can I create a slide out options menu for Android ListView items?

I am making an Android app and one of the activities in the app is a List Activity. I want the ListView to have the slide out options menu for the list items like you often see in apps like twitter:
I thought I read a while back that Android had a feature like this included in the sdk, but I can't seem to find any documentation or tutorials on it. Part of my problem is that I don't know exactly what the feature is called. I have done quite a bit of searching, but I haven't come up with anything useful. I am hoping that someone with a bit of Android development experience has seen this before and could recommend a resource or two.
Thanks!
This question has been asked before. They're called quick actions.

what are best practices for showing help information

I would like to put fairly extensive help information within my app - both "how to use" and explanation of what one is seeing.
The app (map oriented) has a row of buttons at the bottom, and I was considering adding a help button.
Context sensitive help is mostly not appropriate, btw.
What are common and best practices for this?
Thanks
I wouldn't suggest using a help button, once the user knows how to use your app it will be useless, and will only takes some space.
What I do (but it's maybe not the best practice) is to show a popup on the first use. Within the popup I put some basic help and a link to my website which fully explains how my app works (with some screenshots to make it user-friendly). I also put a "Help" button in the activity menu which redirects to my website again.
What I can suggest is to explore by yourself how other android apps shows the help information, and reuse or adapt the one you prefer (this is what I've done).
I have put help into a menu item as I expect new users to click the menu button anyway (my app, Zwitscher also has a button bar at the bottom).
Clicking the menu item then starts an Activity that simply shows a table view that explains the various buttons in the system and contains a link to more information online.
See https://github.com/pilhuhn/ZwitscherA/blob/master/src/de/bsd/zwitscher/HelpActivity.java and
https://github.com/pilhuhn/ZwitscherA/blob/master/res/layout/help.xml
Another option I've seen sometimes is including a help option in the preferences/configuration screen.
Usually it starts a new activity with a sequence of steps to make the user understand everything.

Categories

Resources