[android-developers] Problems extending AbsSeekBar, ProgressBar and SeekBar

2011-04-07 Thread Luiz Vitor Martinez Cardoso
Hello,

I'm modifying the SeekBar a little bit but I'm having troubles with
the com.android.internal.R.stylable. In a 2-hour research I found
that the best way to fix it is to do something like the following:


# resources.xml

?xml version=1.0 encoding=utf-8?
resources xmlns:android=http://schemas.android.com/apk/res/android;
declare-styleable name=SeekBar
attr name=android:SeekBar/
/declare-styleable

declare-styleable name=SeekBar_thumb
attr name=android:SeekBar_thumb/
/declare-styleable

declare-styleable name=SeekBar_thumbOffset
attr name=SeekBar_thumbOffset/
/declare-styleable

declare-styleable name=Theme
attr name=android:Theme/
/declare-styleable

declare-styleable name=Theme_disabledAlpha
attr name=android:Theme_disabledAlpha/
/declare-styleable

/resources

But I'm getting the following error messages:

[2011-04-08 01:18:47 - AdBoxApp] ERROR: In declare-styleable
SeekBar, unable to find attribute android:SeekBar
[2011-04-08 01:18:47 - AdBoxApp] ERROR: In declare-styleable
SeekBar_thumb, unable to find attribute android:SeekBar_thumb
[2011-04-08 01:18:47 - AdBoxApp] ERROR: In declare-styleable
SeekBar_thumbOffset, unable to find attribute SeekBar_thumbOffset
[2011-04-08 01:18:47 - AdBoxApp] ERROR: In declare-styleable Theme,
unable to find attribute android:Theme
[2011-04-08 01:18:47 - AdBoxApp] ERROR: In declare-styleable
Theme_disabledAlpha, unable to find attribute
android:Theme_disabledAlpha
[2011-04-08 01:18:48 - AdBoxApp] ERROR: In declare-styleable
SeekBar, unable to find attribute android:SeekBar
[2011-04-08 01:18:48 - AdBoxApp] ERROR: In declare-styleable
SeekBar_thumb, unable to find attribute android:SeekBar_thumb
[2011-04-08 01:18:48 - AdBoxApp] ERROR: In declare-styleable
SeekBar_thumbOffset, unable to find attribute SeekBar_thumbOffset
[2011-04-08 01:18:48 - AdBoxApp] ERROR: In declare-styleable Theme,
unable to find attribute android:Theme
[2011-04-08 01:18:48 - AdBoxApp] ERROR: In declare-styleable
Theme_disabledAlpha, unable to find attribute
android:Theme_disabledAlpha
[2011-04-08 01:18:49 - AdBoxApp] ERROR: In declare-styleable
SeekBar, unable to find attribute android:SeekBar
[2011-04-08 01:18:49 - AdBoxApp] ERROR: In declare-styleable
SeekBar_thumb, unable to find attribute android:SeekBar_thumb
[2011-04-08 01:18:49 - AdBoxApp] ERROR: In declare-styleable
SeekBar_thumbOffset, unable to find attribute SeekBar_thumbOffset
[2011-04-08 01:18:49 - AdBoxApp] ERROR: In declare-styleable Theme,
unable to find attribute android:Theme
[2011-04-08 01:18:49 - AdBoxApp] ERROR: In declare-styleable
Theme_disabledAlpha, unable to find attribute
android:Theme_disabledAlpha



How can I discovery the correct XML resource path to these names?

Thank you so much!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Self-managing wake-up/shutdown on Android based devices

2011-03-02 Thread Luiz Vitor Martinez Cardoso
Dear Androiders,

I'm looking for a Android feature to set BIOS wake-up settings
directly (from an application).

The propose is a wakeup/sleep self-manageable device.

I've been searching for it a while without any specific solution on
Android platform. Does something exists related to it?

Using, purely GNU/Linux, I discovered that we can use nvram-
wakeup (http://sourceforge.net/projects/nvram-wakeup/) to set BIOS
settings from command line or directly using C/C++ and nvram-wakeup
API.

I also know, that we can implement directly accessing /dev/nvram but
I see it as the harder way to go at moment.

What do you think about using nvram-wakeup library together the NDK
Android framework?
   - How difficult is to compile third-party C/C++ libraries using
NDK?
   - Does the NDK framework offers something like SWIG to create JNI
interfaces automatically based on nvram-wakeup headers?

Please give me your opinion and new ideas!

Best regards,
Luiz Vitor.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Home screen widget behavior implementation

2011-02-03 Thread Luiz Vitor Martinez Cardoso
Hi,

I want to implement the same behavior when moving home screen widgets on a
custom View widget.

The behavior can be described as follows: you touch the widget, the widget
poup-up bigger, you move your finger and the widget follow you and when you
hold off the finger the widget self align to the layout grid.

Anyone know about a sample or something else?

Thank you,
Luiz Vitor.

-- 
Regards,

Luiz Vitor Martinez Cardoso
cel.: (11) 8187-8662
engineer student at maua.br
http://maua.bremployee at gepower.com
entrepreneur at geeksys.com.br

If you wanna be successful, you need total dedication, go for your last
limit, give your best and love your love infinitely!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en