Do I need to create more activites?

221
December 31, 2017, at 4:05 PM

I made a app about a City in India Called "Chennai". It is a tour guide app, in that I have four fragments for different type of tourist places and other categories.

I have attached a screenshot .

So in that app if I wanted to provide more details of that location when a user clicks the List View Item (in a separate screen) ,Do I need to create a new activity and Layout for each List Item.

Is there any shorter way?

Answer 1

No , if you are fetching data from database Create only one activity and pass data like "id" through intent and receive data in that activity and check data for particular "id"

READ ALSO
(React Native) ScrollView that “buffers” in display (not continuous)

(React Native) ScrollView that “buffers” in display (not continuous)

I have a list of large block-like cards in a ScrollView right now, and I want each card to "bounce" within a page when the cards are scrolled down(Not completely sure how to explain this)

233
How to force renderscript version to fix lint error: GradleCompatible

How to force renderscript version to fix lint error: GradleCompatible

All the support libraries I use have version: 261

320
What's App multiline text share intent

What's App multiline text share intent

I tried to share a multi-line text using the following code, but only the last line appearsval sharingIntent = Intent(Intent

207