How can I programmatically display an hourglass in an Android application?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use a
ProgressDialog:The above code will show the following dialog on top of your
Activity:Alternatively (or additionally) you can display a Progress indicator in the title bar of your
Activity.You need to request this as a feature near the top of the
onCreate()method of yourActivityusing the following code:Then turn it on like this:
and turn it off like this: