Disable Copy/Paste/Share menu but keep text selectable - android

I already know about user-select: none css rule, but it doesn’t help me with my problem.
The thing is I have my own custom menu that appears when I long press or select text in my paragraphs, however the android default menu is displayed on top of my own and hinders the user experience.
I know there is a cordova plugin that already takes care of the issue in iOS but I couldn’t find one for android.
I want to remain able to select my text, with my own custom options on top of that but disable the default android menu. Please help.

Related

How to hide certain actions from the Chrome Custom Tab menu (e.g. the bookmark and download buttons)?

I'm using a Chrome Custom Tab on my app and I'd like to be able to disable a few buttons that pop up automatically when I launch it to open a Google drive file, namely the button for bookmarking the page and the button for downloading it. I've searched throughout the web with no luck whatsoever.
Below is the image highlighting which buttons exactly I seek to hide in my custom tab. Anyone knows how to achieve this?! Thank you so much in advance.
There is a "hidden" API that lets you hide these buttons: add an extra with the key org.chromium.chrome.browser.customtabs.EXTRA_DISABLE_STAR_BUTTON and the value true to the Intent before launching it to disable the bookmark button, and one with the key org.chromium.chrome.browser.customtabs.EXTRA_DISABLE_DOWNLOAD_BUTTON to disable the download button.
Note that this doesn't fully disable the functionality: It's still possible to reparent the custom tab to Chrome and add a bookmark or download the page there.
Also note that this is not a public API, so it might disappear in future versions of Chrome.

How to style select option elements in Ionic for Android?

I'm using the Ionic framework to build my application. My application includes lots of select elements.
When I view the application on Android 4.4, the selects and their options look as expected.
When I view the application on Android 5.0 or 5.1, the text of the options is grey, which leads my users to think the options are disabled (they are not).
Ionic's documentation for the select css includes the following: "Ionic's select is styled so its appearance is prettied up relative to the browser's default style. However, when the select elements is opened, the default behavior on how to select one of the options is still managed by the browser."
Can anyone tell me how I can control the styling of the select options so they don't appear disabled? Monkeying around with Ionic's css doesn't appear to change anything, and I'm guessing that's because Android is "styling" the element, rather than Ionic.
Thanks.

How can I add buttons with proper functionalities in the top of android keypad like iPhones?

Here, I just want to know that how to add buttons in the top of keypad of android devices. They should not be custom. I just want to use this functionality of android like iPhone does. I want to open and close keypad then I want also close or open next,previous and done button
I've searched it alot on this site but I haven't get a possible solution yet.
I wish I will get now.
Thanks in advance.

Android Default Text Selection Behavior for a WebView

I am expanding a previously written app. The main component of the app is a webview. In the previous iteration of the app we did not want to allow the users to select text. In the expansion we want to allow the users to be able to select text. I made the assumption that text selection is enabled by default on webviews and the developer who wrote the app disabled the ability for people to select text. In trying to enable this feature i commented out all the touch and click listeners that were attached to my webview one by one to see where they disabled text selection, but even with every touch listener commented out i still can't select text. My question is, was my original assumption correct? Is text selection enabled by default? Should i instead be looking for a way to enable text selection instead of not disabling it?
Thanks!
I found there was no text selection by default for Android 2.2 - 2.3, but it did enable copy/paste if long touch happened for Android 4.0+. Then I tried to disable this feature, but failed unfortunately. All answers right here (SO) didn't work too.

HTML select multiple in Android renders weird?

I'm trying to figure out how to code for proper use through Android phones. Looking at...
http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_select_multiple
...it looks nice when selecting options. However, the page always only shows the first option in the list no matter what is selected. Do you know of anything I can do to handle this better?
I had my coworker load up a test page with a multi-select box.
It appears that on Android (and likely other smartphones) the multi-select elements will only display the first value, since tapping on it brings up (on Android anyways) a dialog to select the elements.
Even using CSS height doesn't change the appearance.

Categories

Resources