Let me preface my question by saying that I have done a lot of research into creating dynamic buttons in an Android application, and most of them are simply wrong or have a different understanding of dynamics than I do. If I missed something, just send the link and I will check it.
What I'm looking for is a way to create a button in my application based on the information that I collect from online sources. For example, when someone creates a message on forums that interest me, the application will find this, analyze it for me, and return some information. Since I cannot put all this information on the screen for each published message, I want to create dynamically dynamically to view this information. For example, the username, date and a brief description (in the form of a preview, clicking on it will provide all the information in a separate action). For the sake of this post, let's pretend that I get this information from the text input location (not from the actual internt forum post).
First of all, how can I create a button dynamically? The other half of my question is less important to me. I would like to do this programmatically. The links to the tutorials are great.
Secondly, and less important ... Once I created this button dynamically, how can I get custom button representations based on the predicted format.
If something is unclear, just ask and I will try to clarify. Thanks for your help!
source share