A horizontal selector for tips - java

I'm looking to implement tips into my app, and I really like this style of selector I'm attaching here (it's a screenshot from an iOS app). Is there something equivalent to this sort of horizontal selector on the Android side? Or should I just be squashing buttons or other views together?
Thanks for the help, I have also considered using a spinner instead, but I like this sort of style of all the options shown at one time in one line.

Yes. They are called Chips.
Specifically you probably referring to a ChipGroup.
and there's a guide and some examples on how to use them here
They are rather new (might be the reason you were having trouble finding the name of what you are looking for) but they are included in the google material library so that provides support for older android versions.

Related

Google's interactive text fields in java swing

I am struggling with something regarding java swing....I need to know how the linear text fields in most google apps are made....the ones where there is only one line in the bottom and how can I make them interactive. I don't need the app designer in net beans(that's our instructor)..Anyone can help please?
PS: I tried so hard to look up for such a thing but all I find is a drag and drop design. I searched everywhere but I found nothing.
The design of the graphic component in Google app is depending to the mobile operative system. In iOS and Android you will have different design for the same component, as you can see:
If you want to change the design of a graphic component (in an App or, in this case, in Java Swing) you have to write a Custom text field.
You can read Customizing JTextField for a simple example.

Audio/Video Capture in PhoneGap/Cordova using external Java plugin

I am developing an android application using PhoneGap/cordova and Javascript. I want to include audio/video capturing functionality in a particular html Div of my application using external Java plugin.
Or some mechanism where I can have a native Java based widget which will come in the same screen at a particular location (rather than replacing the current view completely and occupying the entire screen)
I have searched across the web but could not find an efficient way to do it. Can anyone suggest me any way to handle this?
Is it an option to use the built-in feature?
http://docs.phonegap.com/en/1.9.0/cordova_media_capture_capture.md.html
Try to read this blog,hope will be helpful
http://www.raymondcamden.com/2013/5/20/Capturing-camerapicture-data-without-PhoneGap
Might not be exactly what you want: Instead of DIV use overlay android fragment.
CordovaWebView is part of an Android activity. That means we can overlay a fragment or say dialog at a location we want. Similar to native android development.
Challenge: If you want to show DIV/Dialog in between HTML you will have to take care of lot of positioning related issue.
Solution: You can target to have your DIV/Dialog positioned at the start or end and can then re-position your HTML placeholders.
Things you would require: Cordova Plugin creation, Dialog/Fragment understanding, JavaScript to reposition the DOM elements (if required), Then all is native.
Here is a SO link which can help you.
Please let us know if it helps and it would be great if you share your end solution.

How to create a GMail.app like menu

I'm new into Android programming, but making steady progress with it. My app has several activities, and I would like to add an GMail.app like menu to it.
It would be very stunning if someone could give me a hint what I should search the API docs for to create a menu like this. Thanks a lot.
If you're targeting API 11 and higher you can just use the ActionBar. If you want to provide the same UI for devices with older versions of Android as well, you can give ActionBarSherlock a try. Here's a tutorial on how to use it.
You can start off by creating a custom Menu. Read up on it here. To have your Menu look a certain way, you'll want to mess with Themes and Styles. You can find a basic tutorial on that here. Your question is somewhat broad so I can't provide specific code examples, but the links should get you on your way.
Specifically what you're looking for in this case is the ActionBar Dropdown Navigation Mode (see the ActionBar docs). Of course, this is only for API level 11 and higher since it involves the ActionBar.

JGoodies for Android?

I looking for an UI plugin library for Android like what JGoodies is to Swing.
It should be configurable with or without the library existing (meaning, if the library exists, it renders the UI component specific to library, otherwise use the default android ui)
regards,
kiwi
Although there is none that I know like JGoodies, I think the following two links will be of help for you:
Using Themes in Android Applications
Android: how can i improve the look of an app?
I think responses so far are missing the point of JGoodies (and where I am presuming the question isn't about look-and-feel). It's predominantly not a look-and-feel library, it's a mechanism for automatically firing relevant events throughout a GUI, based on other changes on the same screen.

"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.

Categories

Resources