How can I know what functions to call when programming Android features? - android

Basically, I don't know what functions & XML attributes to provide when programming a specific Android feature; eg, Android Search Widget with Edittext in the middle, magnifier glass on the right, and a custom icon on the left.
From where I can find out what methods, parameters & XML attributes to call when doing a specific Android task?
Fron what sources can we find out how to program specific Android feature? Are there some overall programming pictures to reference?
Praiser

Everything you need to know about Android development can be found at developer.android.com.

Related

Can we still able to use activity in Xamarin Project

This is my first time doing Xamarin Form or PCL. In Xamarin Form, I can see there are few controls and pages available. Can we still able to design android layout in resource folder and called setContentView in onCreate function.
Sure you can - you're fully able to mix-and-match any Xamarin.Classic code within Xamarin.Forms . You'll have to create the Android design inside the .Droid folder and understand that this functionality will only be available on Android.
To make it work, you'll have to create a Custom Renderer. Forms will use this Custom Renderer to embed the Xamarin.Classic code inside the Forms application. I suggest you to read the documentation about this subject, or check out this video.
Take note that - if you're doing this - you're not fully using the power of Xamarin.Forms. Forms is created in such a way it should be easy to create cross-platform apps with loads of re-use. Creating Custom Renderers will make it work for one platform, but not magically for the other. The OnCreate functionality is something is available in the Xamarin.Forms lifecycle as well, which does work cross-platform.
I hope this guides you to the right direction - good luck!

Icon Next to the Search Orb in Android TV App

How can I add an icon next to the search orb, just as displayed below? I'd like to display a login page when the user clicks on the icon.
You can't, if you want to use the standard widgets offered by the Leanback library, such as BrowseFragment.
There is a way of creating your own version of the BrowseFragment widget, so that it is fully customizable and you can add as many buttons as you like, but it is definitely not easy to do. I've written a series of posts on this subject, which you can find here:
Building for Android TV
There is also a demo project that already gives you a starting point for the custom interface. The code can be found on this GitHub repo (episode_4 is probably what you're looking for).

What do they utilize to build android apps with custom graphics and controls ?

What I mean to say while you're just getting started with the development and say you add a slider theres a predefined skin for that and you can place it somewhere on the screen, but in some apps there are things like a knob in a place of slider which you can rotate to do the same stuff what the slider does . How do they do that, does it require openGL or something I am not asking for a complete tutorial or something just curious on what stuff goes into building such thing
Mostly, if something is not provided out of the box, you will have to build your own control.
For example, you mention a Knob. That isn't available in the Android SDK. Such a control could prove to be useful.
Here is a tutorial to build such a custom Control: http://go-lambda.blogspot.in/2012/02/rotary-knob-widget-on-android.html
This is an image of the final result from the tutorial linked above:
Here is an example of a custom slider / seek bar: http://permadi.com/blog/2011/11/android-sdk-custom-slider-bar-seekbar/
This should give you a rough idea on how to go about creating your own custom views.
And finally, what I personally find the best possible resource for keeping track of almost all good Custom Views is here: http://www.androidviews.net/
The androidviews.net website has shut down. Android Arsenal is a new website that lists several third party Android libraries.

Sample code to create a simple form in honeycomb

I am an expereinced Java developer but very new to android programming. I am working on a project for one of my clients who wants to create an android application out of a site survey they have been doing by hand (pen and paper).
What I'm looking to do is create a UI mach up to present as a possible solution. I have looked around but cannot find any sample code to create a simple form.
What I want to do:
I want to have a form (that ideally kinda looks like the way mail looks when you are creating a new message) that allows the user to fill out Name, Address, Business Name, etc. As well a as some custom drop downs, buttons, etc.
I want to do this for a tablet pc so I'm targeting Honeycomb 3.x as my platform.
Can someone point me to any sample code to get me started?
I would start by reading some layout tutorials such as this one: http://www.learn-android.com/2010/01/05/android-layout-tutorial/, or the Android developer docs: http://developer.android.com/guide/topics/ui/layout-objects.html.
All of the objects you require can be implemented as views in your layout.

Android Application looks like iphone

I came across this app and I wonder how was it developed on android (Cause it looks so much like an iphone app), see this screenshot.
Anyone have any idea how to accomplish that type of look on Android?
That's just a matter of styling after all. In general, I would consider it to be discouraged to make your Android app look like an iPhone app. Every platform has its own UX standards, and Android's standards are different from iPhone's. That quite obviously also reflects in the user interface.
Anyhow, you may want to read this article about Android themes and styles. It should get you going with defining own widget styles and stateful drawables to implement custom buttons.
This app obviously uses customized ListViews, ButtonView on the bottom of the screen.
Theses are pretty much standard and common in android apps.
Here is how to create custom components:
https://developer.android.com/guide/topics/ui/custom-components.html

Categories

Resources