Slider in Android App - java

I'm working on a project that requires a button to only be pressed once a translucent screen has been slid up. This allows for access to the main button (Press Me, in the picture). I would like for the top screen to be translucent so a user can see the button behind it, but I would also like to have buttons (green buttons 1, 2, and 3) on the top screen. Are there any good tutorials on this? I have looked, but haven't found much that relates a whole lot. If you have any sugguestions please let me know. I'd also like to know how difficult this is since I'm new to Java/Android. Here's the illustration to give you a better idea of what I want:
This would work similar to how the iPhone has the screen that can be pulled down from the top, but this one is always down and can be moved upward. Let me know if you have any suggestions.
Thanks!

I have try this demo for My requirement and it helps me a lot: Android-Slider Demo
Just Try it for your purpose and it will surly help you.
Enjoy. :)

I have created something like you are trying to do. Sorry I can't post the code since it's part of the company I work for. However here is what I did.
I copied the SlidingDrawer.java source to my project and made sure it was first working as expected. I than started modifying it to slide from the top and not the bottom. Took me a little time but it was well worth the learning experience.
Good luck!

Related

Add hint bulb for users in eclipse rcp procuct

I am working on eclipse RCP product. I want to know how to add hints to users. I mean when they open our tool for the first time, I want to add some hints to click here and there (kind of a walk-through of the tool). Not just light bulb hint (which we see in eclipse), some other different types of arrows as well. My requirement can be best illustrated with the interactive tutorial of criminal case game in facebook. Please check this image with hints: http://www.mobygames.com/images/shots/l/673844-criminal-case-browser-screenshot-first-crime-scene-a-tutorial.jpg. When the user accesses the game for the first time, they have a very nice walk through. Can this be done in eclipse? May be not this much fancier, but at least basic version with an arrow to indicate user to click the button, and then the next button, and so on. Please let me know if any of you have idea on this. It would be of great help. Please point me to any example if it is available online.
You could try to use popup to achieve this. Each hint is an SWT popup and place it in the right location.

Scroll able Arc Menu android

we have got a requirement in our ongoing project where we need to show menu items in arc style at both upper space and lower space of the screen in reverse direction(will show you samples). i've tried to use some of the code from the demo of ArcMenu used in Path android application, but what i came up with is this:
This is not what i want to achieve but something like menus in following images.
I am trying to achieve this from last 4 to 5 days but not getting it right. if any one out there has done any research on such problem then please guide me.
any help would be greatly appreciated.
Make ListView in Circular
Follow this its working code. Code is provided by Samsung
may be it will workfor your issues
http://developer.samsung.com/android/samples/Circle-Launcher
That's quite a complicated task, especially since you want it to scroll while respecting its arc shape. There are probably no fixed answers for this, you'll have to manually create this type of interaction. Unless you have specific code examples of what you've tried and failed at, I don't think anyone can really help you here. Besides the technical difficulty, you could wonder if it is really a smart idea to have THAT many options in an already pretty unclear/overwhelming widget, that you can scroll to even more options. Maybe some design re-thinking is a better option.
Some examples though which could you get on the way would be here;
https://stackoverflow.com/questions/12072692/a-circular-layout-with-scrollable-contents-in-it

Continuous Image Marquee

I'm just curious if anyone knows the easiest solution for an image marquee in Android with clickable events, etc.
I've looked at a few various projects and flicked through the manual, but I can't seem to find anything appropriate.
I would like to create a scrolling image effect similar to the Expedia android application homepage. See https://play.google.com/store/apps/details?id=com.expedia.bookings&hl=en
What I've looked at so far :
FragmentActivity -- Scrolling seems jittery and would take a fair old amount of adapting to achieve what I want
HorizontalScrollView -- Limited scroll functionality (this would be perfect if I could
continiously loop the contents, but short of overriding the draw I can't see how it's possible)
GLSurfaceView -- So far this seems like it's the only viable solution, but it's gonna take me a while to implement all the functionality manually
Before I get cracking deep into the OpenGL route it would be of great help to know if there is something out there that can already do this.
If anyone could suggest anything it would be much appreciated!
Thanks

"Home Screen" like effect while switching between views on Android

I'm creating an application on android similar to that of a book. I would simply like to have the scrolling effect between views (not activities) similar to that of the home screen. Currently I am using a ViewFlipper and don't have the animation I would like, since the shift is sudden as opposed to following your finger.
I am aware that there are several opensource projects and classes being developed to achieve such a thing more easily for the individual programmer, but wondered if there was a way I may have overlooked to implement a homescreen-esque effect. An alternative which I have thought of using would be a TabView, with no label tabs being displayed above the content of the page, yet have not heavily looked into this option yet.
If anyone has encountered the same hurdle and has any ideas of how to overcome it, I will buy you a pizza! (Not really... I don't know your address) But I'd be very appreciative! :)
Thanks
I think you're looking for the ViewPager. It's part of the compatibility library.

Adding content to tabs!

I'm a complete noob at android and java and have just got going with it, I have just done the appwidget tutorial from google, have set up three tabs like they have and have some pretty icons to go with them.
Now I have no idea how to add content and hide other tabs when one is clicked etc, in fact I have no idea where to even start adding content. I have had a huge scroll on google to find not much, just a lot of people with the same problem.
If anyone could point me to a tutorial or give me a push in the right direction I would be very grateful, I'm hoping you Java/Android programmers are a little nicer than the c++ programmers I've dealt with on forums ;)
Thanks! si
As for my experience with TableView ( you meant them, didn't you?), you have to put data into them directly. I would advice to use the ListView, that is not so buggish as tableview and can be connected to a cursor from a DB table. It has a tutorial http://developer.android.com/resources/tutorials/views/hello-listview.html
BTW, tableview, if you insist on using it, has tutorial there, too

Categories

Resources