Howot insert icons, styling text in TextView

by Shadakshari Hiremath » Wed, 29 Apr 2009 14:26:13 GMT

Sponsored Links
 Hello Android,

I am trying to draw icon followed by styled text1 followed by styled
text2 followed by styled text3 as shown below using TextView. Text3
after wrapping should start drawing text below the icon. So, we
thought its better to insert the icon inside TextView. Style selective
text inside TextView with different size and color. Please let us know
if this is possible using TextView and methods which provide this
feature? Also let us know if there is a better way to do it.

ICON, normal italic red text, big bold blue text, small italic green text wra-
pped so that text is drawn below the ICON too.



Other Threads



I'm in the process of changing my Makefile based build system
(existing application in C, porting to Android next to a bunch of
other platforms, therefore using non-standard build) to the new 2.3
based stuff.

Producing an APK file still works, but installing it fails (e.g. on
Logcat reveals that the first png file in res/drawable causes the
problem. Removing it only causes the problem to appear with the next
png file. Adding a dummy png file (see old posts about this error
message) doesn't help.

What can I do to fix ?

The application is RoadMap (, its source
is there).
An APK file that fails is at




2. A ready for Android development Eclipse

Download Eclipse, download the SDK, install ADT in Eclipse, point Eclipse to
the SDK, download the last APIs from GoogleI have no idea how many times I
had to repeat this process on my machines, enough to go crazy!

So, to improve the trainings we do at and to not have to repeat
this ever again, I made a .zip where youl find an Eclipse 3.5 with ADT,
the Android SDK version 7, and a workspace with some code examples.
You can find more information here:

Roc Boronat


3. Conversion to Dalvik format failed with error 1

4. Android location

5. Computer Vision / Image Processing

6. Reading assets directory without AssetManager

7. AccountManager's storage