how could i get an image and a text from the Internet and made a button for my android application dynamically?And draw them in th position i want.
i.e by Java code
thinks
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.
Download the image and the text, then:
You’ll have to create a Drawable from the image, which you can probably do using
Drawable#createFromStream.Drawing the button in the position you want is no different from a normal button. Just declare it in your XML (possible set to Visibility.GONE at first), get a reference to it using
View.findViewByIdand then do the above operations on it.