search

Home  >  Q&A  >  body text

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? ?

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?

巴扎黑巴扎黑2884 days ago743

reply all(2)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 13:32:10

    Use action, data, category, extras according to the actual combination, and you can jump to the activity that meets the conditions

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-16 13:32:10

    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.

    reply
    0
  • Cancelreply