[android-developers] Re: Android custom ImageView fade animation

2011-12-27 Thread AlexBonel
On 28 дек, 00:56, Seb wrote: > Hmm I kind of understand... are you able to provide any code or psuedo > code though to show how it would fit together? > On Dec 25, 5:08 pm, AlexBonel wrote: For example: public class MyActivity extends Activity { private GameView

[android-developers] Re: Android custom ImageView fade animation

2011-12-25 Thread AlexBonel
On 25 дек, 15:31, Seb wrote: > But can I still define my animations in XML using your suggested > method? Yeah, Why not, just call static AnimationUtils.() with context instance (which is your Activity) and id of your animation xml and it'll return you Animation object that you can pass to your

[android-developers] Re: Android custom ImageView fade animation

2011-12-24 Thread AlexBonel
On 23 дек, 07:49, Seb wrote: > Brilliant, that's useful, will give that a go. Any advice for the > original issue? > Well, I have got only one idea, but I think there is another better method to do, but never mind, try to call Activity.runOnUIThread(Runnable) method and pass there a Runnable wh

[android-developers] Re: Android custom ImageView fade animation

2011-12-22 Thread AlexBonel
Has looked through your code and saw one big perfomance issue: protected void onDraw(Canvas canvas) { Paint foreground = new Paint(Paint.ANTI_ALIAS_FLAG); ... } It takes too much time when your try to allocate memory for Paint object. If you work with animation it always calls invalidate() me

[android-developers] Animation doesn't start again after several times of running

2011-12-21 Thread AlexBonel
Hello everyone. I make custom AdapterView which items should be scrolled in two directions (from bottom left to top rigth and conversely). During scrolling I use TranslateAnimation and AlphaAnimation. Here is the steps of scrolling: 1) Top (Bottom) View starts to hidem using AlphaAnimation 2) I s

[android-developers] Start application on System boot without home screen

2011-11-28 Thread AlexBonel
Good afternoon. Tell me, anybody please, is it possible to start my application after device's startup without viewing Home Screen? I know that to start any application at device's startup, I just need to make BroadcastReceiver and recieve BOOT_COMPLETED. But in this case I will see Home Screen fi

[android-developers] Re: Build specific api test

2011-11-28 Thread AlexBonel
> Hello Android, > > I just want to build and generate a apk file for only one specific > test instead of all api > tests..http://developer.android.com/resources/samples/ApiDemos/src/com/examp... > > Can any one help me on this would be a great help.. Thanks in advance. Excuse me, didn't understa

[android-developers] Re: Creating AnimationDrawable from assets

2011-09-29 Thread AlexBonel
> On 28 сен, 15:22, Mark Murphy wrote: > Why? Why, what? ))) Why don't I avoid using of R.java? Well in shorts, because it's generated by Android platform tools and this is really big problem for my application's idea. -- You received this message because you are subscribed to the Google Grou

[android-developers] Creating AnimationDrawable from assets

2011-09-28 Thread AlexBonel
Hello, everyone. I'v stucked with a problem of creating of AnimationDrawable object not using xml file, but from assets. Here is my Activity code: package org.example.Animation; import java.io.IOException; import android.app.Activity; import android.content.res.AssetManager; import android.graph

[android-developers] Getting rid of white line in Tab Widget

2011-04-03 Thread AlexBonel
Didn't find any discussion of this problem in the group. How can I get rid of the white line under tab widgets in TabActivity? And if anybody knows I would be verry gratefull if you would also tell me how to change background color in TabWidget? -- You received this message because you are subscr

[android-developers] Re: java.lang.OutOfMemory decoding Bitmaps

2011-03-08 Thread AlexBonel
Oh, I see. Thanks for explanation, Doug. -- 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...@g

[android-developers] java.lang.OutOfMemory decoding Bitmaps

2011-03-02 Thread AlexBonel
I know that there are a lot of topics in our group, related with this one. But I would specify the most intelligent methods to avoid this problem. Is it always necessary to use recycle() method to free an allocated memmory, because As I understand correctly BitmapFactory.decode... (...) methods we