Pulldown control on Android 2.3.3 (API10) - android

I am developing an app in which the main display needs to be as uncluttered as possible, but with quick and easy access to menu controls.
What I would like to implement is similar to the main pulldown control (for Data, WiFi, BT on/off and so on) but am unsure what would be the best way to go about it.
I'm very new to Android and quite new to Java (not to programming in general, although my main focus is embedded development in C) so aside from a complete answer, any basic advice would be most appreciated.

See my example here. Its uses the sliding drawer with a custom view.

It's called a Sliding Drawer. Look at the examples online and follow the documentation, you will be fine.

Related

Xamarin Android Wear - Navigation

I'd like an example of a step-by-step implementation of this type of menu on Android Wear.
I can not understand the concept of this implementation
It can be in Xamarin or Java.
Documentation:
https://developer.android.com/training/wearables/ui/ui-nav-actions#java
Expectancy:
ndroid
Glad you are enjoying Xamarin!
There's multiple ways of navigating between fragments, regardless if it's a Watch. One of them is using ViewPagers. If you look into the Android documentation, you will find details of how to make it look really cool and fancy with small changes to the ViewPager code.
As far as examples to the Google Wear app that uses ViewPagers, you can take a look at this and some of the other examples of Android wear applications. Let me know if that helps. Btw, you might have more success simply implementing that code (layout/activity_main.xml, SimpleGridPagerAdapter.cs and MainActivity.cs) in your project, than making those projects works since they're old.
Since you are looking for the usage of the android.support.wear.widget.drawer.WearableDrawerLayout, you can take a look at this, particularly at the activity_main.xml. For implementing the WearableDrawerLayout, you have the following
WearableNavigationDrawerView that acts as the top navigation drawer
FrameLayout that contains your fragment
WearableActionDrawerView that acts as your bottom action drawer
PS: I noticed you are looking for Java examples too, this one seems very simple example to follow. You just have to check the Planets.java, MainActivity.java, and activity_main.xml files in that repo

Simple and compact chat user-interface

I am developing a multiplayer android game and I am trying to add a chat UI for players to talk to eachother.
I don't want this chat UI always visible because of space issues, I'd like there to be a tab that you can press or slide that will bring the chat menu up. I have a sketch so you can see what I mean...
How can I go about implementing this in android.
I know I am going to need to use EditText and TextView etc but How can I get the sliding thing to work.
EDIT: I'm not looking for a flat out answer. I just need guidance. What widgets, methods etc should I be studying
There used to be a SlidingDrawer in the Android SDK. It is officially deprecated and, to be honest, was never that good.
There is nothing in the Android SDK that directly replaces the old SlidingDrawer. The leading third-party implementation seems to be AndroidSlidingUpPanel, though there are probably others floating around.

a moving tab in android application

I want to make a moving list appear from the left of the screen of the activity in the android app.
Something like the facebook app shown below :
,,
how can I make something like that in an android app.
Thanks.
This is a very popular UI pattern called a sliding menu / slider. You can search for open source libraries / projects which implement this for you.
Here is the first one I found on google.
This one is useful if you want to support old (pre holo) android devices too. It's an addon to the excellent holoeverywhere library.
And last but not least, take a look at this official pattern by google which also implements the same behavior. The code for creating it is available here.
The concept behind this is that you are taking a screen grab of the current activity and then loading in the menu. Your not actually sliding between activities, your moving the screen shot. Thats a very basic explanation of whats happening.
If you search for slide navigation on github I'm sure you'll find something.

android ui - is there any android wizard framework around?

I was wondering if there is any android wizard framework around which helps implementing a wizard like setup sequence. Surely it can be implemented from the ground with not too much pain (for example one discussion here) yes as this seems a quite standard need I hope there is already some support framework for this available.
Thanks buddies
martin
I can answer this - but not in the affirmative. There is nothing in the core API, neither is there anything in ActionBarSherlock, and I've failed to find anything remotely useful anywhere else.
I've ended up developing my own wizard framework on the back of ABS but at the moment its so heavily intertwined with my own app (and my other framework code) that it isn't in a state to put up as a public repo on github (which is my longer term plan).
If you decide to go your own way I recommend you start from ActionBarSherlock and use a tabbed view with fragments. Its easy to put together and the end user can use the tabs, or swiping, or buttons (if you provide them) to navigate from step to step. It may also be possible to hide the tabs if you don't want them visible (but they do give the user an idea of what is coming up which can be helpful). Have a look at the fragments sample app, specifically the "Tabs and Pager" sample. ViewPager and FragmentPagerAdaptor are your friends. You can download ABS and the samples from the Action Bar Sherlock site

Is there an Android Tablet equivalent of UIPopOverController?

I'm just mucking around with Android tablet stuff in 3.0. I have fragments set up to do the equivalent of UISplitViewController for iPad. Anyone know what the best solution to get something like the iPad UIPopOverController is?
I'm thinking the options are either a separate dialog or something in the Action Bar ...?
I haven't actually seen any Android tablets running 3.0 so not clear what the standard will be ...
Many thanks in advance
This may not be exactly what you are looking for because I'm not all that familiar with UIPopOverController but I think you can accomplish something similar using a Toast with a customized layout.
I would take a look at Creating Toast Notifications and see if it works for you.
Depending on the functionality needed it might work, otherwise you might need to look into trying to generate a modeless dialog with a custom layout.
As for your other question, yes options are generally stored in a separate activity within your application and following Honeycomb design the options activity would be accessible from the Action Bar and the options itself could be a fragment.
Its nothing official but I would crack open the source code to the contacts app for 2.0+ They emulate the popover UI using an Activity in a pretty creative way. It might be a little over kill as it was designed to be usable by any application not just itself. But it should help give you a nudge in the right direction.
Also depending on what the behavior you are looking for exactly a combination of fragments and action bar could be the way to go, but its not going to be as easy as iOS.

Categories

Resources