Android specific UI - java

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.

Related

How can i create an responsive app to all sizes in android studio

I'm really confused about this, i've been working with linearlayout only and apparently it's not responsive to all screen sizes, i looked online about some solutions and i found that people usually create diffrent xml files for diffrent screen sizes which seems like alot of work, is there any other way for doing that without going throught all of that trouble ?
what trouble? Creating individual layouts for your screen's variations in xml files is good way to separate layouts from code. Beside, you could use fragments for reusing layouts
I think you should try using other layouts, arbitrary options for designing a scalable interface, such as ConstraintLayout, you would design probably based on the aspect ratio of the screen, there are a few things. will help you, Chain, GuildeLine, .... All of it is in ConstraintLayout
More information about ConstraintLayout from Google:
https://developer.android.com/training/constraint-layout.
Some special screens need separate layouts such as Tablet, .....
best solution for doing this is constraint layout by using can build your responsive ui .
you can find some tutorials for using this layout in youtube .
or you can use google tutorial in android developer site.

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.

Android app UI design

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

Android View similar to Google's Youtube app?

I know that Android's Youtube app is not open source, but I pulled apart the apk with apktool and found that they have a class, YoutubeListView used frequently in their app. Is there already an open source implementation of the Youtube Player Activity's title/ fling view/ layout? I know of similar views like Joao Machete's FlingAndScrollViewer, but I need it to be rigge to a title menu and work as smoothly as that on the Youtube app. If there is no open source implementation, either how hard would it be to convince Google to release just that component's source, or to implement it myself?
Thanks
Btw, the footer in this layout is what I am talking about. It has titles like Info & Related videos that can be clicked and it scrolls to them, and it can be scrolled left and right.
I've come to the conclusion that there is no such view. It would be best to make my own custom layout.

Tools for rapid layout/interface creations?

Does anyone know of any tools (besides DroidDraw) that can help me create the basics of my projects a bit quicker? I'm looking for something that will allow me to very quickly generate the XML for my layouts so I don't have to sit there typing like a robot for so long.
Thanks!
However the drag and drop layout design method is not recommended for Android Applications UI designers but there is an Open Source project on Google Code: android-ui-utils , in which you might find something intersiting.
It uses a Firefox addon Pencil to draw and design android layouts and also uses an online "Android Assets Studio" where you can design your custom Icons like:
Launcher icons
List item icons
Menu Icons
Notification icons
You can give up a try here:
http://code.google.com/p/android-ui-utils/
DroidDraw is OK, but the reality is that if you are going to write for Android you are going to want to learn how to write XML layouts from scratch. I remember that XML layouts seemed bizarre when I first started working with the Android SDK, but eventually it starts to make sense.
I read a blog post from a member of the Android team at Google explaining why XML layouts are better than GUI-based layout systems (such as the one included with the iPhone SDK). I can't find the link right now, but basically XML allows for layouts that gracefully scale across devices of radically different sizes and purposes where a GUI-based layout designer often has to be tweaked at best and redone at worst for devices of different sizes.
The official Android Plugin for Eclipse comes with a GUI Editor which supports drag'n'drop of GUI Elements. Not necessarily better than DroidDraw, but maybe you didn't know yet: http://developer.android.com/sdk/eclipse-adt.html

Categories