For my app I need (like I think many and many devs) to customise colours and drawables; at the moment I need to customise a platform drawable (the action bar background, which for the android platform is ab_solid_light(or _dark)_holo.9.png) which can be taken from various sources (android.jar, git, etc.). In my case, I'd like to modify it from grey to another color; can I simply take it, modify it with gimp/Photoshop/similar application and include in my resources? Should I give credits to aosp in "open source licenses" section of my app? Is there a standard or conventional way to do these kind of things?
Related
How to get the copy and paste selection in MuPdf.
I want to get like this below image.
Let me start with my standard spiel...
MuPDF is, at heart, a portable C library for opening/manipulating/rendering PDF (and other) file formats. It provides a C level API. Provided with the MuPDF library are various tools (such as PDF manipulation/rendering utilities, and example viewers for various different platforms).
As far as possible all the 'smarts' for these tools are encapsulated within the core library, and the tools themselves are thin veneers over this core functionality.
The Android viewer is one such example of this. The UI is written in Java, and it calls down to the core using a set of JNI functions to do all the file opening/page selection/rendering etc.
Now onto your question:
The logic for text selection already exists within MuPDF. Open a PDF, then from the top bar select the rightmost icon "(v)" to see more options. Choose the "Copy to clipboard" option from here.
Then you can drag your finger across the area of text you want selected. It will be highlighted on screen. Then click the tick icon in the top bar to finalise.
You can then swap app and paste the text out again. (All this assumes that the PDF has been built in a reasonable way so we can figure out what unicode char each glyph on the page corresponds to).
What MuPDF doesn't offer are the selection 'end tags' that you can drag with your finger. If you want that, you'll need to alter the android viewer specific java classes yourself. You shouldn't need to make any changes within the MuPDF core to support what you want. You might possibly need to tweak the JNI classes a bit.
It's probably not a huge job for a competent Android app developer, but it's too large for us to provide detailed information on a Stack Overflow answer.
If you have more questions, please don't hesitate to come visit us in the #ghostscript irc channel on freenode (see www.mupdf.com for a web link you can use if you don't have an irc client set up).
I have an app that features a grid view. For each item in the grid view I want to provide a context menu, much like you see on the play store
I would like to use the built in android menu icon, but I can't find it anywhere in android.R.drawable, like one might expect it to be. Where, therefore, can I find the icon so I can set it as a drawable in my grid view item.
According to Dmags' answer to this question Google advises that
you should not reference these icons using the Android platform resource IDs (i.e. menu icons >under android.R.drawable).
(though the page linked no longer appears to contain this warning)
I am puzzled as to why this advice would be given? I would want the design to be consistent with the OS it is running on. If Android 5 decides to have an image of a lemon to display the menu, I'd want my app to also use the same image of a lemon to show sub menus.
So can anybody either give me a good reason as to why I should be creating my own graphic rather than use the default Android graphic, or give me the location in which the menu graphic can be found?
Have a look at your android-sdk folder:
C:\Program Files\android\sdk\platforms\android-18\data\res\drawable-hdpi\ic_menu_moreoverflow_normal_holo_light.png
I think this might be the one you are looking for.
It is not a good practice to use drawable direct from #android:... because android is an open-source platform and every customer (like Samsung or the cyanogen mod crew) can build their own version of it without the drawable u are using. so you can get a null pointer exception. The better way is to copy the drawable from the android sdk directly into your project.
I'm an amateur android programmer and I really like to code. My main difficulty is to make apps nice.
I came across a simple app, but at the same time, nice: https://play.google.com/store/apps/details?id=com.linksaude.bulas
I would like to know if this app has been designed with some specific plugin/add-on for Eclipse or whatever. It seems to be so consistent and beautifully designed that there must be an answer to simplify the building process of such apps.
Thanks!
I think what you're impressed with is the consistent color theme of the application. It looks like its designers carefully overrode the default design of Android widgets with their own custom scheme.
There is NOT any plugin for development tools that will help you achieve this; however, there are many external tools.
Here is a tool to generate styles for the action bar (the navigation bar at the top):
http://jgilfelt.github.io/android-actionbarstylegenerator
A tool to generate custom colored Holo widgets: (Holo is the theme in modern Android platforms):
http://android-holo-colors.com/
And my #1 favorite resource for this type of customization, this website:
http://www.stylingandroid.com/
These three are more than sufficient to customize an interface like the one you linked to above. Good luck!
Though beauty is in the eye of the beholder, this will do the job.
http://developer.android.com/design/index.html
Welcome to Android Design, your place for learning how to design
exceptional Android apps.
There are some DevBytes videos on YouTube of how you make your app beautiful.
The result is an application which looks very modern and beautiful, you should have a look at those videos
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've been asked to develop an App for both systems, Android and iPhone, and both must look the same. So, I would like to get a set of icons that look like the iPhone buttons.
Anybody knows a link where I can download/buy a set of .png to make the Android app look like the iPhone one? (In iPhone, im gonna use de default buttons)
Thank you.
Before giving a few links to get you started, let me also include a link from Android's design guidelines followed by a quote from the same link:
Pure Android
Don't mimic UI elements from other platforms
Platforms typically provide a carefully designed set of UI elements
that are themed in a very distinctive fashion. For example, some
platforms advocate rounded corners for their buttons, others use
gradients in their title bars. In some cases, elements may have the
same purpose, but are designed to work a bit differently.
I am not sure if aping / mimicking the iPhone is the intention or the right way heading into multi-platform development (although I am inclined to think, based on the topic heading, that you intend to keep just a common icon base across platforms). But without getting into that debate and the proverbial can of worms. Anyway, here a few links as mentioned at the top:
NOTE: I do not develop for the iOS platform and am not entirely aware of what the default icons are. If the links posted are useless, give me a heads up. ;-)
http://www.glyphish.com/
http://www.designshock.com/free-iphone-icons/
http://www.iconshock.com/iphone-icons/
http://speckyboy.com/2008/07/18/35-free-icon-sets-for-your-iphone-pimp-it-up/
http://visionwidget.com/free-iphone-themes-icons-sets.html
http://ntt.cc/2010/05/10/50-free-hand-picked-iphone-icon-sets.html
http://www.tutorialchip.com/freebies/25-impressive-fantastic-icon-sets-for-your-iphone/
http://skyje.com/iphone-themes-and-icon-sets/
http://inspiredm.com/5-essential-icon-sets-for-iphone-applications/
The first link (glyphish) usually pops up all over Google when searching for mobile icons. Oh. They also support the Retina Display. :-)