How to change system view icons/style, functionality on android? - android

How to change view and functionality of multiwindow form(picture 1) like that done samsung(picture 2)?
Do we need a launcher (just a specific system change) or do we need to compile a new ROM (if ROM, then where do we need to change the code and view)?
I tried to find a section of the system where the design and window functions are regulated in the multiwindow / freeform mode, but it did not work out. How do you think what part of the code is responsible for the style and elements of this "app header" (panel with button close and others)?

Take a look at Android Runtime Resource Overlay (aka RRO).

Related

AIR for Android: toggle SYSTEM_UI_FLAG_HIDE_NAVIGATION

I want to toggle SYSTEM_UI_FLAG_HIDE_NAVIGATION or SYSTEM_UI_FLAG_LOW_PROFILE flag when compiling with AIR for ANDROID, but I don't know how to to this. Probably I had to modify the name_of_app.xml ...
I want to 'try' to switch off the menu bar in an Android Tablet, but every methods I try are a mess ....
Any Help ??
Massimo
If you want to remove the statusbar (the bar at the top), you need to go fullscreen. You can do this either in your app.xml by setting <fullscreen>true</fullscreen> or in your app at runtime by setting stage.displayState = StageDisplayState.FULL_SCREEN;
If you are trying to hide the menubar (the soft-navigation present at the bottom of Nexus devices and a limited number of other Android devices), this will set those buttons to be in their minified state as well (they are not hidden, but are set to a simple glowing circle rather than the icon). I do not know if it is possible through AIR to hide the menubar completely. It should be possible using an AIR Native Extension, assuming it is possible at all, but that may (likely is) more trouble than it is worth for such a simple task.
For future reference, you can't set most Android flags through AIR. It simply is not supported. You can set uses-permission and uses-feature in your app.xml as Manifest additions, but that is it.

Android - Show App is in Development mode

I have a mobile commerce app and I would like to show in the app that it is running in Development mode or Production mode so that there is no chance of a member of our team accidentally placing an order on the production server.
I had the foresight to derive all my Activity class from a super Activity class where I can add code that will run in all the app's activities. I tried to change the theme here and although the theme changes, I don't quite know how best to indicate the difference.
I would change the text in the TitleBar but my app doesn't have one. The next idea was to change background color of the entire app but some activities have a default color in the layout.
Ideally, I would like text somewhere on the screen saying something like 'dev mode' but I realize that this might be pretty hard to do so I'm up for interesting suggestions.
How about using a ViewStub for development mode?
You can place a ViewStub in each of your layouts where you want to indicate development mode. Your ViewStub can just hold a simple TextView of some sort that says "Development Mode", kind of like a Title bar.
In the code-behind get the reference to the ViewStub and pass it into that common method that runs in each activity. If you are in development mode, inflate the ViewStub.
Take a look at this:
http://developer.android.com/resources/articles/layout-tricks-stubs.html

Android Layout qualifiers don't work?

I am developing an android using the API Google Tv Addon, i wanna use the screen qualifiers no touch, i created a folder under /res/ called layout-notouch, i named my layout test.xml, in my activity when i put setContentView(R.layout.test) the application crash. how could i use this screen qualifier. Or otherwise, could i set qualifiers programatically. you can take a look here enter link description here
You can use layout-large-notouch for layout and drawable-land-xhdpi for drawables to target Google TV.
I figured out that the layout-notouch is not working.You can find the google bug report at this links https://code.google.com/p/android/issues/detail?id=20087
Some people are suggesting to use resource qualifiers layout-tvdpi-notouch (720) & layout-xhdpi-notouch (1080),layout-large-notouch.
But not sure the suggestion is working.
I'm not entirely sure about what I'm about to say, but it seems to me that "notouch" qualifiers will not work because current Google-TVs support some sort of touch. You have a trackpad that acts as a mouse and you can click on things, simulating "touch" events.
If in the GTV emulator you edit the avd settings, you can specifically declare the "touch screen type" as "notouch". Then, if you run your application under those conditions you will see that the "notouch" qualifiers work. This means that by default "touch-screen type" is set to "touch" instead of "notouch".

Floating Honeycomb window

How can I create a floating window in Android Honeycomb like the one of Calculator or notepad application?
I've tested with
android:theme="#android:style/Theme.Dialog"
and I get a centered transparent activity but the problem is that it isn't movable and hasn't close button.
That calculator you show isn't a part of Android. Also, Android windows don't have close buttons like that. I don't know what you are looking at, but it isn't standard Android in any way shape or form.
AirCalc can do it https://play.google.com/store/apps/details?id=com.myboyfriendisageek.aircalc&hl=en
--Edit
Just to add to my previous answer. It doesn't need to be Custom API provided by device manufacturer as #hackbod mentioned in the above answer.
You can actually write a Service and Add a Layout to the WindowManager and set it to be TYPE_SYSTEM_OVERLAY and there you go, your application is running on top of other applications.

Android Dropdown List (iPhone style)

Could anyone tell me either what this widget is or how it could be recreated? I'm having to port over a iPhone app, and my boss wants me to make it look as similar as possible, but while using android controls. Here is a picture of it in Android:
http://cdn3.staztic.com/screenshots/android-swim-32-2.jpg
Thanks!
It is not a standard thing, but for this purpose, there is a: QuickAction dialog.
this can be done with a PopupWindow (it can also be shown as dropdown) where the background is a custom nine-patch file and the content is a listview (or any other view that fits your needs).
I'm sure that GreenDroid Library can do this but I don't know the name of the class to use

Categories

Resources