Style/Theme XML attributes

by MobDev » Tue, 26 Jan 2010 21:57:33 GMT


Sponsored Links
 Hi,
I have been looking at the examples regarding themes and styles on the
Dev guide...
I see a lot of attributes have been used, for example :

<style name="SpecialText" parent="@style/Text">
<item name="android:textSize">18sp</item>
<item name="android:textColor">#008</item>
</style>

Now I was wondering where can I find a list with all existing
attributes ?

I'd like to change the (standard) Menu-items background, both a color
change as using an Image as the background for every item would be
acceptable...
Any hints, tips or code that might help are very welcome...
Thanks in advance...

--



Other Threads

1. Not able to see Bluetooth files

Hi,

I am not able to see bluetooth transfered files in android
gallery,music,video application.

After reboot am able to get this.

What could be reason for this? I am using 2.3.3 version of android.

Any settings required or Any idea?

-- 

2. NAND flash booting problems

hi all,

I am trying to boot android froyo from NAND flash on DM368 Board. i
have got some problems while booting from NAND flash.

here is the logcat msg.

--------- beginning of /dev/log/main
I/DEBUG   ( 1739): de{*filter*}d: Apr 22 2011 15:45:22
I/Netd    ( 1738): Netd 1.0 starting
--------- beginning of /dev/log/system
I/Vold    ( 1737): Vold 2.1 (the revenge) firing up
D/Vold    ( 1737): Volume sdcard state changing -1 (Initializing) -> 0
(No-Media)
W/Vold    ( 1737): No UMS switch available
D/AndroidRuntime( 1741):
D/AndroidRuntime( 1741): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime( 1741): CheckJNI is ON
I/        ( 1742): ServiceManager: 0xacd0
E/ALSALib ( 1742): external/alsa-lib/src/control/control.c:902:
(snd_ctl_open_noupdate) Invalid CTL AndroidOut
W/AudioHardwareALSA( 1742): Unable to attach mixer to device
AndroidOut: No such file or directory
E/ALSALib ( 1742): external/alsa-lib/src/control/control.c:902:
(snd_ctl_open_noupdate) Invalid CTL AndroidIn
W/AudioHardwareALSA( 1742): Unable to attach mixer to device
AndroidIn: No such file or directory
I/CameraService( 1742): CameraService started: pid=1742
D/AudioHardwareALSA( 1742): openOutputStream called for devices:
0x00000002
D/ALSAModule( 1742): open called for devices 00000002 in mode 0...
E/ALSALib ( 1742): external/alsa-lib/src/pcm/pcm.c:2210:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker_normal
E/ALSALib ( 1742): external/alsa-lib/src/pcm/pcm.c:2210:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker
E/ALSALib ( 1742): external/alsa-lib/src/pcm/pcm.c:2210:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
I/ALSAModule( 1742): Initialized ALSA PLAYBACK device default
I/AudioFlinger( 1742): AudioFlinger's thread 0x3c960 ready to run
D/ALSAModule( 1742): route called for devices 00000002 in mode 0...
D/AndroidRuntime( 1741): --- registering native functions ---
I/SamplingProfilerIntegration( 1741): Profiler is disabled.
I/Zygote  ( 1741): Preloading classes...
E/Zygote  ( 1741): setreuid() failed. errno: 2
D/dalvikvm( 1741): GC_EXPLICIT freed 820 objects / 47408 bytes in 9ms
D/dalvikvm( 1741): GC_EXPLICIT freed 218 objects / 13560 bytes in 6ms
D/dalvikvm( 1741): GC_EXPLICIT freed 253 objects / 14360 bytes in 7ms
D/dalvikvm( 1741): GC_EXPLICIT freed 466 objects / 28864 bytes in 8ms
D/dalvikvm( 1741): GC_EXPLICIT freed 413 objects / 21720 bytes in 9ms
I/dalvikvm( 1741): Unable to dlopen(/system/lib/libexif.so): Cannot
load library: load_library[1083]: Library '/system/lib/libexif.so' not
found
W/dalvikvm( 1741): Exception Ljava/lang/UnsatisfiedLinkError; thrown
during Landroid/media/ExifInterface;.<clinit>
E/Zygote  ( 1741): Error preloading android.media.ExifInterface.
E/Zygote  ( 1741): java.lang.ExceptionInInitializerError
E/Zygote  ( 1741):      at java.lang.Class.classForName(Native Method)
E/Zygote  ( 1741):      at java.lang.Class.forName(Class.java:235)
E/Zygote  ( 1741):      at java.lang.Class.forName(Class.java:182)
E/Zygote  ( 1741):      at
com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:302)
E/Zygote  ( 1741):      at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:589)
E/Zygote  ( 1741):      at dalvik.system.NativeStart.main(Native Method)
E/Zygote  ( 1741): Caused by: java.lang.UnsatisfiedLinkError: Library
exif not found
E/Zygote  ( 1741):      at java.lang.Runtime.loadLibrary(Runtime.java:461)
E/Zygote  ( 1741):      at java.lang.System.loadLibrary(System.java:557)
E/Zygote  ( 1741):      at
android.media.ExifInterface.<clinit>(ExifInterface.java:82)
E/Zygote  ( 1741):      ... 6 more
D/AndroidRuntime( 1741): Shutting down VM
W/dalvikvm( 1741): threadid=1: thread exiting with uncaught exception
(group=0x4001d7f0)
D/skia    ( 1741): purging 6K from font cache [1 entries]
I/ServiceManager( 1736): service 'media.audio_flinger' died
I/ServiceManager( 1736): service 'media.player' died
I/ServiceManager( 1736): service 'media.camera' died
I/ServiceManager( 1736): service 'media.audio_policy' died
D/AndroidRuntime( 2171):
D/AndroidRuntime( 2171): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime( 2171): CheckJNI is ON
D/AndroidRuntime( 2171): --- registering native functions ---
I/        ( 2170): ServiceManager: 0xacd0
E/ALSALib ( 2170): external/alsa-lib/src/control/control.c:902:
(snd_ctl_open_noupdate) Invalid CTL AndroidOut
W/AudioHardwareALSA( 2170): Unable to attach mixer to device
AndroidOut: No such file or directory
E/ALSALib ( 2170): external/alsa-lib/src/control/control.c:902:
(snd_ctl_open_noupdate) Invalid CTL AndroidIn
W/AudioHardwareALSA( 2170): Unable to attach mixer to device
AndroidIn: No such file or directory
I/CameraService( 2170): CameraService started: pid=2170
D/AudioHardwareALSA( 2170): openOutputStream called for devices:
0x00000002
D/ALSAModule( 2170): open called for devices 00000002 in mode 0...
E/ALSALib ( 2170): external/alsa-lib/src/pcm/pcm.c:2210:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker_normal
E/ALSALib ( 2170): external/alsa-lib/src/pcm/pcm.c:2210:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker
E/ALSALib ( 2170): external/alsa-lib/src/pcm/pcm.c:2210:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
I/ALSAModule( 2170): Initialized ALSA PLAYBACK device default
I/AudioFlinger( 2170): AudioFlinger's thread 0x3c960 ready to run
D/ALSAModule( 2170): route called for devices 00000002 in mode 0...
I/SamplingProfilerIntegration( 2171): Profiler is disabled.
I/Zygote  ( 2171): Preloading classes...
D/dalvikvm( 2171): GC_EXPLICIT freed 815 objects / 47120 bytes in 6ms
D/dalvikvm( 2171): GC_EXPLICIT freed 218 objects / 13520 bytes in 6ms
D/dalvikvm( 2171): GC_EXPLICIT freed 253 objects / 14320 bytes in 7ms
D/dalvikvm( 2171): GC_EXPLICIT freed 466 objects / 28856 bytes in 8ms
D/dalvikvm( 2171): GC_EXPLICIT freed 413 objects / 21672 bytes in 9ms
I/dalvikvm( 2171): Unable to dlopen(/system/lib/libexif.so): Cannot
load library: load_library[1083]: Library '/system/lib/libexif.so' not
found
W/dalvikvm( 2171): Exception Ljava/lang/UnsatisfiedLinkError; thrown
during Landroid/media/ExifInterface;.<clinit>
E/Zygote  ( 2171): Error preloading android.media.ExifInterface.
E/Zygote  ( 2171): java.lang.ExceptionInInitializerError
E/Zygote  ( 2171):      at java.lang.Class.classForName(Native Method)
E/Zygote  ( 2171):      at java.lang.Class.forName(Class.java:235)
E/Zygote  ( 2171):      at java.lang.Class.forName(Class.java:182)
E/Zygote  ( 2171):      at
com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:302)
E/Zygote  ( 2171):      at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:589)
E/Zygote  ( 2171):      at dalvik.system.NativeStart.main(Native Method)
E/Zygote  ( 2171): Caused by: java.lang.UnsatisfiedLinkError: Library
exif not found
E/Zygote  ( 2171):      at java.lang.Runtime.loadLibrary(Runtime.java:461)
E/Zygote  ( 2171):      at java.lang.System.loadLibrary(System.java:557)
E/Zygote  ( 2171):      at
android.media.ExifInterface.<clinit>(ExifInterface.java:82)
E/Zygote  ( 2171):      ... 6 more
D/AndroidRuntime( 2171): Shutting down VM
W/dalvikvm( 2171): threadid=1: thread exiting with uncaught exception
(group=0x4001d7f0)
D/skia    ( 2171): purging 6K from font cache [1 entries]
I/ServiceManager( 1736): service 'media.audio_flinger' died
I/ServiceManager( 1736): service 'media.player' died
I/ServiceManager( 1736): service 'media.camera' died
I/ServiceManager( 1736): service 'media.audio_policy' died


the logcat says libexif.so is not found in the system/lib directory .
libexif.so is present in the directory system/lib but it says library
is not found.this is something i find very strange.

i commented the line System.loadLibrary("exif"); in the android repo
so that i wont try to load the library.

now the problem comes to the "libmedia_jni.so"

I/dalvikvm( 2285): Unable to dlopen(/system/lib/libmedia_jni.so):
Cannot load library: load_library[1083]: Library '/system/lib/
libmedia_jni.so' not found

W/dalvikvm( 2285): Exception Ljava/lang/UnsatisfiedLinkError; thrown
during Landroid/media/DecoderCapabilities;.<clinit>
W/dalvikvm( 2285): Exception Ljava/lang/ExceptionInInitializerError;
thrown during Landroid/media/MediaFile;.<clinit>

E/Zygote  ( 2285): Error preloading android.media.MediaFile.

can anyone help me in understanding whats going wrong?

Thanks,
Siva.



can anyone help me whats going wrong ?

-- 

3. [ WTI ] Amethyst LX100 Android Pad, harga promo Rp1,999.999

4. [WTA] Gtab jadi modem

5. [WTA] motorola droid 1 stuck di logo motorola

6. Whatsapp bikin battery boros

7. [WTA]inject xoom