be the
correct class type.
To me, this is a bug in the Eclipse previewer.
On Mon, Dec 27, 2010 at 7:03 AM, Mark Murphy mmur...@commonsware.comwrote:
On Mon, Dec 27, 2010 at 10:02 AM, John Lussmyer johnlussm...@gmail.com
wrote:
I've restarted Eclipse, multiple times.
This appears to have
I have a custom view that programmatically creates several widgets within
itself.
I need to give these widgets ID numbers, so the RelativeLayout can position
them properly.
How do I find unused ID numbers that I can use?
Just using constants won't work. Even if I happen to choose some that
nobody
Yes, but that still doesn't assure that you won't collide with somebody
elses custom view ID numbers.
On Mon, Dec 27, 2010 at 9:22 AM, Bret Foreman bret.fore...@gmail.comwrote:
You could use a static value in your widget class. Increment the
static value in the constructor and use that to
My app plays very short sounds frequently.
I'd like the user to be able to use their normal volume controls to turn the
volume up or down.
The problem is that while my app is running, the volume control defaults to
the Ringer volume, and only adjusts the Media volume if the user happens to
press
Thanks. Using:
setVolumeControlStream(AudioManager.STREAM_MUSIC);
did the trick.
(Sure would be nice if the setVolumeControlStream() docs actually told you
what the valid values are, or at least where to find them.)
On Mon, Dec 27, 2010 at 9:49 AM, Mark Murphy
Well, things just aren't quite working that way.
I had 2 instances of my custom view (subclass of RelativeLayout) on screen.
Each of these did have a unique ID number.
When the children of my view all used the same set of ID numbers
(900,901,902 for the 3 children of the custom view), then when
I have a RelativeLayout with children. After a while, I want to change the
size of one child - which should cause at least one other to move.
I can change the childs size, but the other doesn't move.
I've tried calling forceLayout(), but that had no effect.
Is there some way to get a view to
Thanks!
On Mon, Dec 27, 2010 at 5:36 PM, snpe snp...@gmail.com wrote:
You can take a look at Android Sources plugin
http://code.google.com/p/adt-addons/
Update site :
http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/
Just update this feature and after
Is there an examples page somewhere that shows what all the standard widgets
look like?
It'd be nice to see them all on one page.
This would be especially helpful since Android seems to have come up with
their own set of names for widgets. What they call a Spinner, would be a
ComboBox or
On Sun, Dec 26, 2010 at 9:52 AM, Mark Murphy mmur...@commonsware.comwrote:
On Sun, Dec 26, 2010 at 12:46 PM, John Lussmyer johnlussm...@gmail.com
wrote:
Is there an examples page somewhere that shows what all the standard
widgets
look like?
It'd be nice to see them all on one page
It DOES have to run forever.
On Sun, Dec 26, 2010 at 4:14 PM, Doug beafd...@gmail.com wrote:
On Dec 25, 7:37 am, John Lussmyer johnlussm...@gmail.com wrote:
I've already found that RepeatMode/Count on an AnimationSet doesn't work.
I may end up manually restarting it each time. It just
I'm attempting a not-that-complex layout using RelativeLayout, and getting a
weird problem.
When I set things up in a way that seems correct, I get:
Thread [3 main] (Suspended (exception IllegalStateException))
RelativeLayout$DependencyGraph.getSortedViews(View[], int...) line:
1260
Is it possible to get just the source for the Android .jar files?
I don't want the whole bleeding OS, just the source that will help me figure
out what's going wrong in my code when I get weird exceptions.
Like, right now, this line of code:
Button btn = new Button( context);
is throwing:
2010/12/26 Muhammad Hakim hakim...@gmail.com
check the logcat
While that statement may be helpful, I don't have the faintest idea what it
means.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Ahh, I just figured it out.
You meant the logger output in the Debug view of Eclipse.
logcat is completely empty.
On Sun, Dec 26, 2010 at 8:54 PM, John Lussmyer johnlussm...@gmail.comwrote:
2010/12/26 Muhammad Hakim hakim...@gmail.com
check the logcat
While that statement may
I've already found that RepeatMode/Count on an AnimationSet doesn't work.
I may end up manually restarting it each time. It just seemed that having
an AnimationSequence was a pretty obvious function. I'm surprised it
doesn't exist yet.
On Fri, Dec 24, 2010 at 11:31 PM, Doug beafd...@gmail.com
I'd like to have a Seekbar oriented vertically, but I can't figure out how
to do it.
Is it possible?
--
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
I've been looking, and haven't found anything yet. That's why I was asking.
On Sat, Dec 25, 2010 at 10:49 AM, brian purgert brianpurge...@gmail.comwrote:
Are you sure there is not anything in the xml properties for that.
On Dec 25, 2010 1:20 PM, John Lussmyer johnlussm...@gmail.com wrote
I'm used to Java Swing layout managers (especially GridBagLayout), and I
haven't been able to figure out to do something relatively simple with the
Android layouts.
I want to have a bar of controls at the top, and another bar of controls at
the bottom.
Then I want to have an area in the middle
Thanks, I did finally get it done with a relative layout.
The only problem I ran into was making sure there were no forward references
in the id's. (Which is why your example had the middle layout at the
bottom.) I was just trying to modify my existing layout, and it had the
middle in the
I just tried to use the draw9patch program, invoked via draw9patch.bat.
It fails with:
C:\Projects\android-sdk-windows\toolscall java -Djava.ext.dirs=lib\ -jar
lib\dr
aw9patch.jar
Exception in thread AWT-EventQueue-0 java.lang.NoClassDefFoundError:
org/jdesk
top/swingworker/SwingWorker
at
I'm building some parts of my UI dynamically, and really need to know an
ImageView's size before it's painted on screen.
How can I do this?
My code currently does this:
ImageView iv = new ImageView(this.getApplicationContext());
iv.setImageResource(R.drawable.icon);
Ok, found it. I can use iv.getDrawable().getIntrinsicWidth() and height.
On Fri, Dec 24, 2010 at 11:55 AM, John Lussmyer johnlussm...@gmail.comwrote:
I'm building some parts of my UI dynamically, and really need to know an
ImageView's size before it's painted on screen.
How can I do
I have a set of 3 animations that I want to play sequentially, and have them
repeat.
I can put them in an AnimationSet, and use a startOffset to start them all
in the correct order - BUT they then each start repeating by their duration
setting - so they end up running simultaneously after the
I thought about doing that, but doesn't that add an undefined delay before
the animation starts again?
(Plus, I'd have to have a state machine to keep track of which animation
needs to start next.)
On Fri, Dec 24, 2010 at 8:10 PM, Doug beafd...@gmail.com wrote:
On Dec 24, 2:33 pm, John Lussmyer
The layout performance docs say that RelativeLayout is faster due to fewer
calls to calculate child dimensions.
I actually got it working with a fairly minimal layout definition.
On Fri, Dec 24, 2010 at 8:19 PM, Doug beafd...@gmail.com wrote:
I really think what you're trying to do is most
On Thu, Dec 23, 2010 at 8:31 AM, Kostya Vasilyev kmans...@gmail.com wrote:
23.12.2010 19:08, CasaDelGato пишет:
I must be doing something wrong with the animation, but I haven't been
able to figure out what.
You are calling an Android UI framework method from a background thread,
and
Now, I have the problem that my animation won't repeat.
It plays just once.
My onCreate does this:
testAnimation = AnimationUtils.loadAnimation(getBaseContext(),
R.anim.testanim);
testAnimation.setAnimationListener(mAnimationListener);
testAnimation.setDuration(3000);
Using this instead of getBaseContext() made no difference.
listener onAnimationRepeat() is never called.
Very simple animation:
set xmlns:android=http://schemas.android.com/apk/res/android;
android:shareInterpolator=false
translate
Now, that is interesting.
Moving the repeatCount and repeatMode settings to the XML made it mostly
work.
Setting the Duration in the Java does properly override the setting in the
XML. Setting Count and Mode does not.
Also, the listeners onAnimationStart() is called exactly once.
onAnimationEnd() is called exactly once - when I do the
testShape.clearAnimation() to stop it.
On Thu, Dec 23, 2010 at 1:14 PM, John Lussmyer johnlussm...@gmail.comwrote:
Now, that is interesting.
Moving the repeatCount and repeatMode settings to the XML made it mostly
work.
Setting
Is there a way to report a bug with Android? I can't seem to find one...
--
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
Thanks. All my searches just found more people asking if there was one,
with never an answer.
On Thu, Dec 23, 2010 at 5:04 PM, TreKing treking...@gmail.com wrote:
On Thu, Dec 23, 2010 at 7:01 PM, John Lussmyer johnlussm...@gmail.comwrote:
Is there a way to report a bug with Android? I can't
Since I finally have my simple animation repeating (by working around a bug
in Android), I get to run into the next problem.
AnimationListener.onAnimationRepeat() never gets called.
I use a button to start my animation, let it run a while, and press the
button again to stop it.
Since I want to do
101 - 134 of 134 matches
Mail list logo