How can i create this multiple activities one after another - android-activity

Activity 1
Activity 2
How can i create these multiple activity when i have to put textView and ImageView data in every activity.

Related

I want to make an spinner when i select any item just fetch data from firestore database and put into the textviews

I want to make an spinner when i select any item just fetch data from fire store database and put into the text views

Different Images on Single view for Multiple buttons

In my UIView am having 4 buttons Like animals,birds,nature``fruits. While clicking the other view shows the set of selected category images. Instead of putting 4 views for 4 buttons i want to perform in single view?Can any one tell idea regarding this??
As per your requirement you take one imageView and on each button click just call imageView.setBackgroudResource(Your_image_from_drawable); in this way you dont need to use four imageView.

Adding a button to last UITableView row

I'm developing an app where the user can choose between a number of included songs. I also want the user to be able to choose a song from his/her iPod Library.
Currently the song is choosen by selecting it in a UITableView. So I figure I would like to add a new row at the end of the table and make it a button that will fire a MPMediaPickerController. All songs are placed in an array consisting of their names.
My question is how I add this last row? And also how I can "save" the selected song (or the path to it) to be used in the parent viewcontroller?
Well, you can use the UITableViewCell directly as a button itself, so when a user clicks on the last row, the action is being executed. But if I understand you right, you want to add a specific extra button as a subview of a UITableViewCell. That means if the cell (the last row) is being built, you compose your button, add its target and action, and add the button just as simple subview of the cell.
Well, the parent should now receive the message that the button has been pushed. I would do this using NSNotification, that is very easy to use, just check out the Apple documentation and take a look at an example. You can even send the selected song or its name path via the notification directly to the parent controller, where you can handle this notification.

In TableView How can i show "Showmore" option for displaying more Records?

I have used TableView and i am displaying Data coming from the Web.NOW I WANT TO PERFORMING the Paging TableView so after 5 record i want to show "showmore" Option and by pressing "showmore" It Display remaining data so how it is possible?
In your table view, include a cell with the text "Show more...". It should probably also contain a UIActivityIndicator that is hidden at the moment.
If this cell is tapped, show the activity indicator and load more content from the Web in the background.
When you have received a response from your web service and have parsed the results, send your table view a insertRowsAtIndexPaths:withRowAnimation: message to have it load the new data.
Depending on whether you want to keep the "Show more" cell or remove it now, either hide the activity indicator and re-enable the cell or delete it by calling deleteRowsAtIndexPaths:withRowAnimation:.

iPhone Dev: Get more data functionality in twitter iPhone clients?

I'm building an app (not necessarily a twitter client) and I'm trying to figure out how developers create the buttons above and below a table view where a user presses them to either reload newer data or reload older data into a table view. Does anyone know of any tutorials out there that does this or know of an easy way?
If you want fixed buttons, you can just make your table view not use the full screen and add the buttons in the space. If you want the buttons to scroll with the table view, you can add a header or footer view to the table and put your buttons inside that.
Check the Three20 project. I believe there's a tableview there that does that.
It's actually not that hard to add inline buttons to a tableview. First you check and see if there's actually more data to show. If so, you want to add 1 to the number of rows returned from the datasource. When asked to draw that last row you return a cell that contains "Press for more" caption as well as a hidden spinner instead of the standard cell that shows your normal data.
If the user presses that last button the table view handler turns on the spinner then fires off a network event. Once the network request completes the data is processed and added to the same tableview datasource that was used to draw the first table.
Now all you have to do is tell the tableview to reload itself and the new data will show up. If you want to limit the amount of data shown you can prune out N number of items from the head of the datasource before redrawing so the memory-use stays manageable.