I know there are a few workarounds to create an always visible bottom menu and still be able to scroll the content. (iscroll, jquery)
But isn't it possible to add this in the java file itself and then "communicate" with it. (highlight when selected and such) and the webview only extends to the bottom menu?
Or does anybody knows if there is an easy way with the new update 1.9 where their own webview is included? They haven't included many examples yet.
I know most people swear by jquery/prototype and all these frameworks, but i have heard that the speed of phonegap apps can be very slow, so i want to try making the app without an extra JS framework.
Dan you'd be better off sticking with the Android way of providing this functionality which is providing an options menu that appears when you click the menu button.
https://developer.android.com/guide/topics/ui/menus.html#options-menu
From there in your onOptionsItemSelected method you can call a Javascript function using this.sendJavascript().
Well for some reason, position:fixed worked all of the sudden. I have no idea why??
This basically does what I want it to do with a menu in the bottom.. If I only could figure out what made the difference..
Related
Does Android use or have native buttons for something like NEXT or CONTINUE - I'm working on a 2 step process and want to use what Android has NATIVELY vs Custom design.
For example, IOS has the native TOP NAVIGATION that you can change.
In this instance, we are using a CONTINUE button up top. This is a native option with IOS. Does Android have anything like this? If so, what does it look like and where is it placed. I cannot find anything on this.
Thank you in advance!
No android do not have native button.
You have to make your custom xml for action bar and add next/continue buttons.
A good way to learn about what action bar/ App bar provides and what it doesn't visit Material.io.
I would suggest using a floating action button (FAB).
I think this is as close as it gets for a native next button, although it can be used for many things.
For android design components I would recommend you having a look at Material.io. There you will get in depth explanations for almost all android design patterns!
Im developing an app and wanted to add some page browsing with those dots to identify your current page like the image below, can someone tell me how is that control called?
Thank you in advance
There is nothing in the Android SDK that provides this "out of the box". It is probably implemented as a LinearLayout holding ImageView widgets, though there are plenty of ways of doing it. If your intention is to use this with a ViewPager, there is an implementation of this UI in the ViewPagerIndicator library and perhaps in other open source libraries as well.
If you really want to see what that app is doing, use uiautomatorviewer to inspect the running UI of that activity and see what widgets are involved.
There is no default Android view for that.
Take a look at this:
https://github.com/JakeWharton/Android-ViewPagerIndicator
I'm devolopping a tablet app. I want it to work full screen. After days of investigeting on google, I achived it using:
.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
.getWindow().getDecorView().setSystemUiVisibility(Window.FEATURE_ACTION_BAR_OVERLAY);
.getWindow().getDecorView().setSystemUiVisibility(Window.FEATURE_ACTION_MODE_OVERLAY);
The Tablet I'm using is 4.1 Android version. That was working perfectly though I had to made some changes like doing my own action bar (because sistem action bar made navigation buttons comes up) and dialogs.
Now the problem is that I've installed my application on 4.2 Android version and it's a disaster. Each time I touch the screen, navigation buttons comes up. It's really annoying. This is driving me mad, I've tried many things but it's still coming up.
Is there a way to solve this problem? I think if I could override the method that makes navigation buttons comes up I could achieve my objective. Anybody know which is this method??
It is not working in 4.0 Android version neither. That doesn't bother me much, but if you know a way to solve it as well, that would help me a lot.
I would appreciate any help. Thanxs a lot.
Each time I touch the screen, navigation buttons comes up.
One of the core Android concepts is that the user is always in control of the UI. If developers were allowed to create fullscreen Apps and override the navigation buttons, it would be trivial for an App (rogue or otherwise) to create a screen which the user could not get out from.
If you really want to remove the system bar, you will system-level access or you need to build your own custom Android.
I am developing an app for Android, and would like to have a menu button in the top left corner, above a webview. When this button is pressed, I want a menu filling almost the entire screen to slide in from the side, as in Evernote's android app. How is this most easily achieved?
I have googled quite a bit without finding an answer, all help is appreciated.
There are many different libraries you could use to implement a sliding menu like this. I'm currently using this library which is very easy to implement. It also uses ActionBarSherlock which is included.
The menu is probably programmed using ActionbarSherlock and the transition between activities is explained here:
Duplicate
Without any code this is all we can do for you. Hope this might help.
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.