android - listview has a large number of items and is variable, click to jump to the activity. Now I want to share an activity, what should I do? ?
巴扎黑2017-05-16 13:30:10
0
2
665
You can pass its position as a parameter and then use the switch statement to judge, but the cases inside cannot be dynamically increased or decreased. Is there any other way to write it?
Your question is too vague. I’m not sure what the scenario is. The simplest way is to use webview to display it. Jumping to the activity only carries a URL. You can also use routing. The activity you jump to only does routing forwarding, not routing. The specific display content and which page to jump to are specified by the custom schema information brought by the item.
Use action, data, category, extras according to the actual combination, and you can jump to the activity that meets the conditions
Your question is too vague. I’m not sure what the scenario is. The simplest way is to use webview to display it. Jumping to the activity only carries a URL. You can also use routing. The activity you jump to only does routing forwarding, not routing. The specific display content and which page to jump to are specified by the custom schema information brought by the item.