Android app UI design - java

I'm just trying to make an android app design similar to the one in the link below.
http://itunes.apple.com/gb/app/id406490694?mt=8
how would I go about making a multiple page application like this? I've only ever worked on single page applications so any advice you have would be great.
How would I make the buttons at the bottom change the page etc?
Thanks,
David

This app was designed for ios. You should make your app native to the android platform. Otherwise you will be spending a lot of time performing hacks to get the UI to look the same. You may keep some of the design but focus more on how to make this app look great for android.
In terms of switching "screens" you will need to declare each activity in the manifest like so...
<activity android:name=".YourClass"
android:label="#string/app_or_class_name" />
Then when a button or event is triggered you can use the following to load up that screen or activity.
Intent nextIntent = new Intent(v.getContext(), YourClass.class);
startActivity(nextIntent);

you should use tabActivity for this purpose with tabs at the bottom.
http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

I have very little android programming experience, But I think I can point you in the right direction.
http://developer.android.com/guide/topics/fundamentals/activities.html
specifically look down the page a little at "starting an activity"
It appears that tabActivity is deprecated, so.... I wouldn't use it. The dev guide points to Fragments as an alternative:
http://developer.android.com/guide/topics/fundamentals/fragments.html
good luck, and I hope someone else answers that knows a little more about it...

Related

How to make an Android application to run some UI element above other application?

Sorry if the title is it's not self explanatory.
I'm trying to make an application that can interact with other ones by adding them a graphic element in their UI.
Just like Google does with Google Translate new function.
You can see a graphic example here: EXAMPLE GIVEN
My questions are:
Is that even possible? (I guess it is)
Where can I start searching about this? I haven't seen anything in Androids Developer documentation. I really don't know how to search info about this.
Thank you all.
If you'd like to add a graphic element to your app, I suggest using the Toolbar widget (it's automatically added with the Basic Activity template). There's also the ActionBar, but I think the toolbar is preferred to use (newer).
You can get a better idea about it here.
https://blog.xamarin.com/android-tips-hello-toolbar-goodbye-action-bar/
http://www.101apps.co.za/index.php/articles/using-toolbars-in-your-apps.html/
As far as the behavior of the icons, you'll have to add your own logic to them. Intents (implicit/explicit) are one way to interact with other things.
I hope this helps push you in the right direction.

Fragment transition?

Any help would be great with my issue. Basically I'm using this tutorial and its a web view fragment. So I got rid of the WebView and made new activities. My issue is connection the activities with the drawer so then every thing goes to a different activity. Once again, any idea on how to do this would be helpful.
I would recommend this tutorial instead.
http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/
I've used it and I have a functioning application at the moment. You can download the source, change the text and images if you'd like.

Directing to a Second Menu on Android

I'm very new to Android programming and working on Android Studio. I want to go to a second menu by clicking on a button and I will need these kind of stuff during my development. Is there any good tutorial that you know for Java for Android? Android's own tutorial is not very sufficient and there are lots of tutorials about android but all of them are very complex. I'm looking for something like android for dummies or something :)
Thank you very much.
Android has the concept of Fragments and Activites for different views.
The Android training guide by google is really superb for the basics and have the sample code too, you should start from there
For the different views, here is a guide for that using fragments
http://developer.android.com/training/basics/fragments/index.html

First android app for iOS developer

i am iOS app developer. Now when i created an app on iOS i want to do the same on android. With java i was familiar just now need some time to remember.
i was looking at some tutorial how to do one or other things. But what i can't find is the basics how everything works. How classes is interacting with each other.
For example i want to create registration window with few buttons and alerts.
I want registration window to be called just once when app is installed and just that.
Should i create new java class and few layouts, one for View with buttons and other for Alerts ?
Or should i create other class for alerts if i need them in other flow of my app ?
And how i should call that window with registration from my main class, which is
extends Activity
Also if there are some developers who came this road from objective-c (iOS) to java (android). It would be nice for some share experience how they did that.
Thank you for any help :)
Very few of the concepts in iOS and Android are similar. On Android you have Activites, Intendts the Manifest. When you design your layout it should be resolution independent. You have a search, back and a menu button and variable hardware. All of this has no equivalent in iOS.
That said, I think you just have to read the basic concepts and the getting started guide no matter if you come from iOS or never have done mobile development before.
EDIT
To answer your concrete question. Take a look at the lifecycle of an Activity and Preferences. With this, you could do some action on the first start of your main Activity and store some flag in the preferences when it's done. On the next start you just test that preference and skip the logic.
You can create one activity (.java file) and one layout(.xml file with buttons and input boxes) , alerts could be toast notifications:
http://developer.android.com/guide/topics/ui/notifiers/toasts.html
All you require for this is a activity and a layout xml for that activity, this activity will be your main ie the entry point to your application, in that activity oncreate method you can check if it is registered or not by setting a flag or something which will direct to the next activity if its registered.
GOOD LUCK...
Just like your nibs in iPhone you create xml layouts in Android. And for view controllers here you make activity. One important thing is AndroidManifest.xml file, it contains all information of your app (like plist) plus all the activity information(Intent type and launcher methods).

Android specific UI

I would like to make a system of page on android 3.0 a little bit special.
Here is a plan of the management of the pages that I would like to have:
http://imageshack.us/photo/my-images/814/schemau.jpg/
It would be a question of making as for the management of the notification on the desktop.
I thought of the slideDraw but at the moment it is little decisive.
Have you an idea of which component to use and how?
You can use FrameLayout and simple View Animation, this is what comes to my mind. Place three layouts on top of each other using FrameLayout, then animate them as you like on touch event. Hope this helps.

Categories