Change color of progressbar

by vandy » Fri, 23 Apr 2010 08:03:51 GMT


Sponsored Links
 hi

Is there any way to change the color of indeterminate progressbar.

i made changes in the progress_indeterminate.xml and saved it my
projects drawable folder and tried to set
progressBar.setProgressDrawable(R.drawable.progress_indeterminate)

but still the color did not change. it uses the default color.

Any help on this?????????

--



Change color of progressbar

by Kumar Bibek » Fri, 23 Apr 2010 13:07:56 GMT


 Well, I guess, there's just not a single file/image which you need to
change. You will also need to change the background and other stuff.

This file must be referring to other internal drawables which you
would need to change.

Thanks and Regards,
Kumar Bibek



>


Sponsored Links


Change color of progressbar

by vandana toshniwal » Fri, 23 Apr 2010 15:02:36 GMT


 well, i made changes to the drawables that this
progress_indeterminate.xml uses, and included them in my projects
drawables, but still no luck..........





>>



Other Threads

1. Do existing scheduled items on the AlarmManager get cancelled after an application update from the Marketplace?

Hi all.  I was wondering what would happen in the following scenario:

Your application schedules a service or any type of pending event on
the AlarmManager.  Let's say it repeats every 24 hours at noon.  If an
application update is available, and the user updates the application
at 10 AM through the Marketplace app, does that update remove all
scheduled events from the AlarmManager?  Or will the service still
start at noon?

I understand that there could be complications if the pending events
aren't removed: the application update could have completely removed
the service that would have been started.  But in that case, the
AlarmManager would just catch an exception when it tries to start the
service and ignore it.

On the other hand, if the AlarmManager DOES remove all the scheduled
events, how is your application supposed to restart the services?
1. You can't tell on the application startup whether or not your
previous services have been cancelled, because there is no way for
your application to query AlarmManager to see if your services are
still scheduled or not.
2. You can't blindly start your service at app startup, because you
don't want a service that is supposed to run every 24 hours to run 5
times a day if the user starts your app 5 times that day.
3. Even if you persist a flag to disk indicating that your service is
running, your application doesn't receive an event that the service
was stopped (that I know of), so you can't turn that flag off if the
service is cancelled during an application update.

Does anyone have any advice on how to reliably keep a service
scheduled consistently after an application update?
Thanks!

-- 

2. Is it possible to get android device id? (Urgent -- Please)

I tried bilion different ways but still not avaliable to get its device id
...

TelephonyManager tm = (TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE);
DeviceId = tm.getDeviceId();

read_phone_state permissons set in manifest file ... I'm gonna release the
app but i don't have the client deviceid ....

Please help me, it's so urgent ... Thanks in advance


-- 
Nesim TUN
Senior Software Developer of Distributed Applications

-- 

3. Enabling SoundRecorder in Emulator built from GB src code

4. redirct the an alert or replay to the device that send sms

5. HTC Hero getPicture failed error

6. Code Assist still Slow

7. Cannot get WiFi and Bluetooth running