Can I use glyphicons in an android app?
If yes, how?
You can use ImageView to simply display a picture.
However Glyphicons icons are not free.
It's free for Twitter Bootstrap due to a partnership only.
If you want to display a SVG picture, take a look to this article.
Allthough it is possible to use any custom image in an imageview it is not recomended by the android branding guide, since the android user is familiar with android's own icons.
To use them you can put them among your resources and use them just like you would do with other resources, images and icons.
Related
I want to place a google sign in button in my cross-platform xamarin app.
I downloaded the assets from google and am confused as to how I'm supposed to use them...
In the android folder, there are assets for the various DPIs. But the problem is they all seem to have some weird black lines around them...
What is the intended use of these lines? Am I supposed to crop them out?
Obviously I could just edit the files to my liking but I want to stay as true to google's usage policy as possible, and avoid altering another company's assets if possible.
I noticed that in the "web" folder there are complete buttons. So why would I use what's in the android folder?
How does google intend for developers to use these assets?
I too have similar questions when trying to customise my Google Sign In buttons, and finally figured it all out after digging through the Android Documentation.
What is the intended use of these lines?
The top and left lines define the area of the image that you are allowed to stretch, and the bottom and right lines define the area of the image that your text will occupy (see image below)
Am I supposed to crop them out?
No. Add this image into your drawable/res folder. Make sure you leave the .9.png extension as it is otherwise Android Studio won't adhere to the features mentioned previously!
Why would I use what's in the android folder?
Great question! Because using this will make customising your app for different devices easier. To explain further, it is worth clarifying that:
unlike any image assets, you will realise that this asset has a .9.png extension, suggesting that it is a Nine Patch Drawable Graphic
it allows your text to fit nicely within the predetermined area, so it helps you to adhere to Google's branding guidelines
For more information, read here.
Hope this helps! Cheers.
Just use the batch drawable in android and edit the picture in ANDROID cropping out the image black lines.
I am wondering what are the legal ramifications of using an icon from the internet in my app. I am not much of an artist but there are gazillions of icons on the web. I was going to use one and tweak it a bit and use it for my android app. Is this legal to do?
Thanks.
If you wish you can use your icons from drawable folder by creating vector icons giving it your own colors and styles
Are there any OSS libraries/collections that provide some of the look and feel of iPhone apps (i.e. bg colors, button, drop down list shape/colors, etc) for Android.
I've seen a few apps like that on the Google Market.
BTW I'm not talking about skinning the Android Home screen to make it look like iPhone.
The way to i did that is with Images, and adjust it. But i prefer a original UI, not a copy from iOS.
I was wondering how to get to add some custom designed animated GIF emoticons to native applications in android like SMS/EMAIL and to other applications like Whatsapp?
I know how to display an animated Gif in Android using AnimationDrawable object. I just want to know if it's possible to do the following:
1) Add custom animated images to Whatsapp application.
2) Add custom animated images to SMS/EMAIL in some easy way?
Just give me hints. I have been looking everywhere.
Thanks in advance.
Unless the application explicitly provides hooks for you to extend its configuration with particular animations/images there is no way to add any content to the existing application APKs. As far as I can tell the whatsapp application and the default email and sms apps do not provide extension hooks, so you won't be able to do this.
I have created an Android app using the standard controls available. It seems that most apps on the market have their own set of controls. It generally looks much better that the standard controls. How do I create better looking control? Can I just apply a theme or should I overwrite the onDraw method? For instance, there is a problem with the default android spinner control details here .
adding custom images is the best way to have more eye-catching GUI, use colorful & meaningful images to your application to appeal users. Custom theme's and styles are helpful too.....
You can apply different themes and styles on the one hand or work with 9patch-drawables - have a look here for details and examples