Navigation in WebView with keyboard - android

Is it possible to navigate through elements in WebView? For example if web page contains 3x3 grid with buttons, is it possible to select and press these buttons using key events?

Yes.You can enable javascript for your WebViewClass.Please check this : https://developer.android.com/guide/webapps/webview.html#NavigatingHistory

Related

Unable to scroll down in TV(EPG-GUIDE)Using TV Remote Down Button

1.I am Developing an android application as Electronic Program Guide(EPG) for set-top-box followed by this project https://github.com/codessentials/android-tv-epg."
2.I can able to navigate left to right,rigtht to left(Horizontal scroll) & able to see the focus also(Left & right Remote key navigation),
3.I can't navigate Top to Bottom & Bottom to Top,unable to scroll it & can't see the focus,that view fully opened, so focus went to down but i can't see that.
4.How to scroll as Top to buttom(Up & Down Remote key navigation)
You may check this documentation. The Android framework automatically applies a directional navigation scheme based on the relative position of focusable elements in your layouts. You should test the generated navigation scheme in your app using a D-pad controller. After testing, if you decide you want users to move through your layouts in a specific way, you can set up explicit directional navigation for your controls. Check the lists of all of the available navigation attributes for Android user interface widgets. To use one of these explicit navigation attributes, set the value to the ID (android:id value) of another widget in the layout. You should set up the navigation order as a loop, so that the last control directs focus back to the first one.

Gif Keyboard for Android

How would I go about creating a dynamic Gif keyboard for Android? I would like the user to scroll horizontally across the Gif's and possibly search across them via an integrated search bar in the keyboard
I've seen this link but it doesn't talk about dynamically changing the keys: How to make a Android custom keyboard?
In your InputMethodService there is a callback onCreateInputView()
You can create whatever custom view you want and return in there.
For horizontal scrolling, maybe look at view pager

Android app custom keyboard

I want to make a lock page for my app which should have lock screen with custom keyboard (not soft keyboard) like that in Moto G.
Any pointers in this regards would be helpful.
Seems you don't want to use the 'keyboard' which android provide, if so you can just
place some buttons on your layut
place labels on each buttons
make that buttons to commit texts what you want to commit for each buttons

Detect button click or touch from java webview android

In my activity I have webview and top of WebView there is a RelativeLayout which contains edittext and button. This RelativeLayout has to open/close when user touch on webview. The problem is that I can't detect where user touch in html content, for instance if user click the button in HTML , RelativeLayout shoudn't open but if user touch blank area in html then RelativeLayout will open. How can I detect user's touch is not in any touchable or clickable area in html content ?
HTML pages are not in my control so I couldn't build jafascriptinterface, I has to do in with Webview.
event.preventDefault();
if your menu uses a jquery function that toggles the areas visible..
ex. if you have an click function..
$(".menu-item").click(
function () {
event.preventDefault();
yourcodethattogglesmenu
}
);
Show your code first in the future, will help us understand and give a better answer.
If i understood you correctly, you want to show a native view (RelativeLayout) once a specific HTML element is clicked.
The only way to trigger JAVA code from HTML content is the JavascriptInterface. If you do not control the HTML stuff you are out.

How to avoid click on lower html element when clicking on the html element above it on touch devices?

I am making cross-platform mobile site using html and jQuery for android, windows and iPhone devices .
The problem Is when I click on an element which is above another element then the click event is also triggered on below element.
I am having a custom popup which opens on center of page and having a button exactly below the button there is also a button on page with click event.
So on clicking the button on popup the event is also fired on button below the popup.
How to prevent this kind of events on Touch devices.
Same is the case with the drop-down when I select or click the option then the below button's click event get fired up.
you should use event.stoppropagation():
$('your-element').on('click', function(e){
e.stopPropagation();
// other stuff here
})
That should solve your problem.

Categories

Resources