Sample code to create a simple form in honeycomb - android

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.

Related

Xamarin forms how to make a graphical custom UI component

I'm learning Xamarin (Forms) at the moment and I want to create a special component for my app so I'm looking for some guidance to get me started.
I'm imagining a component which has a main button in the middle, with text that could be "Birds" followed by the number of birds spotted this week.
Then, for each species spotted this week, there would be a line leading to the species name and the aggregated number of how many of that species have been spotted (so x number of lines). Basically a kind of a grouping diagram which acts like buttons.
I drew it up in mspaint, just without numbers.
I imagine my first step working with Xamarin Forms is to create the component in both Android Studio and Xcode, then package it as an component.
Can my idea be done in both Android and iOS? If so, would you please provide some tutorials on creating something like it, because I haven't come across something that I can use to get started yet.
UPDATE: SkiaSharp looks like the way I should be going.. https://developer.xamarin.com/guides/cross-platform/drawing/introduction/
Xamarin allows you to build mobile apps completely in C# so you don't need native development tools (like Android Studio and Xcode) all development can be done completely in Visual Studio (Mac or PC).
You can totally make what you're describing with Xamarin Forms! In order for you to do it, you must make a Custom Render. See this guide on Xamarin's website for making a custom renderer.

Android - App with layouts only - without controllers

I'm programming an app in Android.
My client needs a 'dummy' like application, I mean, an app with all layouts but just navigable, without the actual controllers or activities, just navigate through layouts. By clicking buttons, but just pass to the other layouts without executing java or whatever code.
My question is, is this possible in AndroidStudio?
Or should I generate another kind of graphical app in order to accomplish this?
Any ideas?
Thanks in advance!
The short answer to your question (as I understood it) is no. You have to have activities to have an android app that will function. You could create a very rudimentary set of activities to do what you want.
However, if you are simply trying to create a mockup of what the app will look like for your client, I suggest using a tool like FluidUI. This will allow you to layout the general look and feel of your app without any actual code required.
Let me know if this helps!

Android - How to make blocks with content, simular to post-block in facebook's app

I am working on simple app, similar to Instagram, Facebook app or G+ app. I want to make board with other users posts. The posts on board will be displayed in bocks, simular to Facebook:
How should i create such blocks, that i can fill with downloaded data and add up to the board, modify them or remove them from board while user is still in board activity? Is there any class that i could use?
You should probably look at ListView.
It lets you maintain a list of objects and build views from visible ones, add more dynamically etc.
As for the actual block.. Depends on how you want to display them. I hope you know about View types such as LinearLayout etc, if not you should probably read some basic guide for android programming before you begin.

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.

Creating a "dashboard" homescreen in iOS

I'm creating my first app in iOS and I'm very accustomed to developing in eclipse for Android. My first step is that I need to create a dashboard as the homescreen. I'm a little "confused" as of which layout I should choose in xcode. In android I always select the most basic of settups, and I end up with a blank activity and a blank layout. That's where I would like to start, since that's what I'm used to. I'm wondering if any experienced iOS dev can point me in the right direction into which template to start with.
It seems really easy to just say to use an empty application, but If I'm going to have to do a lot more settup that is not worth my time, then please enlighten me.
You' probably want to go with a single view application. This will give you a template with a view controller and a blank interface file (your choice of xib or storyboard) that you can build from. From there you can add what ever you want.
Using this template you will immediately be able to build your app to the simulator or to your device. However, if you already have an idea of how you would like your app to work, you could choose tab based if your app should have multiple tabs and most of the work will be done for you, or a utility based app will give you two view controllers, one of which will be presented modally. Etc, etc...

Categories

Resources