How can I add a seekbar to mi homescreen widget? when I do it it says it cannot inflate, and I readed here that you can only use progess bar not seekBar, Any suggestion?
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.
I’m sorry to say that – but you just can’t. android let’s you use only minimal view types inside an AppWidget. I really don’t understand why they did this limitation.
only thing you can do about it is to modify and customize one of the views that appWidget allows (such progress bar) by creating your own class extending the origin view, and change/add behavior and look, then in the appWidget xml layout file – use this custom view. in this why you can manipulate android appWidget limitations to show your derived custom view.