I want to show a popup similar to this one on Android using PhoneGap.Is this a native popup? or is it designed by Twitter?
I can't find its name on the internet
Using JavaScript:alert and navigator.notification.alert(message, alertCallback, [title], [buttonName]) shows the default black dialog.
That is the native dialog from the Light Holo Theme, twitter definitely hasn't built that. You just need to set the correct theme for your app. You can't do that on the HTML5 layer, but it's very easy to set in your manifest.
Assuming that you are running on any device with android 3.0 or higher you can set up your app theme to Holo.Light in your manifest file:
And if you want to target lower versions you can take a look on this question.
And don't use javacript.alert(), that will display an ugly title in your dialog, always use phonegap notification for native dialogs.
Related
I want to customize my android device with custom icons for every app. I have downloaded whicons, but they don't cover all apps, so Now I want to make my own icons for the apps that whicons doesn't cover in android studio. In conclusion I want to make app that can change other apps icons.
I haven't done anything yet, because I'm like new in java programming. I don't know much about android api.
I want to ask if it is possible to change the system font size out of an App.
So the idea is to create an App to change some system parameters, but I don't know if I can use RRO's or the Dynamic Theme function from Android 12 or another alternative.
I read that:
"The “Styles” option for customizing system icons, icon outlines, and
fonts will be removed with Android 12" / © NextPit."
https//new.in-24.com/News/111901.html
I know I can change the font size in the settings but I want to do it out of an App and maybe also change the icon size and more later.
Does anyone have a good idea of how to start or an example?
To make any system changes, you need the user to navigate to Settings App. an OTT app cannot do system level changes.
Other Possibility is, root your device and make your app as an system app.
I am developing an application with the use of Ionic 3.
I would like my app to look the same on all platforms and I want to use a kind of a mix of android and ios styles.
In general, I will go for android (md) mode of the app, but I want to override certain elements to have ios styles.
For example, I would like my toasts, popovers and alert to have ios style and transition animations.
I can't seem to find a way to do it, please help :)
Thank you
This is my first question on StackOverflow, so please bear with me if I fail to articulate my question.
I am working on an Android app that targets Android O, and I want the launcher to NOT show the icon adapted i.e. remove the white background.
I tried to use adaptive icons and they work, but the problem is that they change the icon itself making it rouned, square, squircle and tear-shaped.
At first I thought it's out of my hands, but some other apps (facebook, whatsapp and snapchat for example) have their icons unchanged.
tl;dr: How can I force an icon to be used by the launcher on Android O?
The other apps you mention (Facebook, Whatsapp, and Snapchat) don't yet target Android O. Once they do, they'll also be forced to have an adaptive icon as well.
Just remove the targetSdkVersion property from your app level build.gradle file. It will work.
I downloaded some free icons and created a notification. At first I thought something was broken but then I realized that the icon I had used was in the same color as the background.
The pack I downloaded included several versions like "holo_dark" and "holo_light". I assume that this has something to do with theming in different android versions or user customizable settings.
What is the intended way to figure out which icon to use in such cases?
The icons are specific to the theme that you will be using in your android application. You have to identify the theme in your application and then use the specific set of icons for your theme.
For more clarity you can refer the Android Asset Studio ActionBar and Tab Icon Generator and see the difference in icons generated for different themes.
Also this article will be very useful in understanding how Styles and Themes work in Android.