I am trying to create an expandable table view using Xamarin.iOS with accordion type functionality.
For example there will be some rows initially and taping on any row the cell will expand to some other rows in the table view.
Thanks!
Hey I made a sample of an expandable tableview here using only Xamarin.iOS
It looks like this:
Hope it helps.
Related
I'm trying to build an accordion style ( expand/collapse ) list in IOS/Swift 3. Was confused on which approach to follow like a static UITableView ( since my sub divisions have different types of Ui Controls in the cells ie some have checkbox ,spinner, textview etc. with labels to show configure a list of different Valves) , UIView with nested UIViews sections with an option to clip views . But both have been messed up with without any success.
Illustration
http://imgur.com/a/Bs9SF
Below are the links I followed
https://github.com/justinmfischer/SwiftyAccordionCells
http://www.appcoda.com/ios-static-table-view-storyboard/
https://github.com/Weebly/TableSchemer
https://github.com/Alliants/ALAccordion
Any other approach without UITableView?
Please help . Thanks in advance .
Static vs dynamic table will depend on your data source. Does your data source for your table change? If so you'll want a dynamic table, if not then you can design it out in a static one.
As for the accordion feature, what I've done in the past is to add a tap gesture recognizer to the header view of each section. When the tap is detected I change my datasource and reload the table view. What happens is that number of rows for section is called on reload, and I return 0 so that none of the rows show. When tapped again you can go back to showing the normal number of rows.
To get the animation you need to use delete rows with index paths and animate it.
I'm new to Corona and I want to make a collapsed tableview which scrolls,
that has widgets in it, like checkboxes, buttons and pickerwheels.
Is that possible?
Thanks for det help!
https://docs.coronalabs.com/api/library/widget/newTableView.html, have a look at this api. Here there s an function called insert rows in that function you can add widgets to each you create in an table view.
For the iOS we are not been provided any expandable list view as a component. so to use the expandable list we are having 2 basic options:
Option-1: Table header as the main view and then clicking on it open cells under that header.
Option-2: Cell as the main view and add more cell below as if its sub cells when clicking on any of the cell.
And more than this 2 different developer uses different logic. so Can we know that which would be the best practice to use expandable/ collapsable Table view in iPhone/iPad application.
Thanks in advance. This could be consider as a knowledge sharing or better coding practice related question.
There are a million ways you could do this.
In the past I have created a custom "stretching" cell that would stretch its own size to show items that were hidden. This could be a way of doing it.
What you would need to do is have a cell that when clicked, opens up (revealing a new cell hidden underneath it). You could also have it seem as if there is another cell being shown below the clicked index, but in reality you are only adding a new cell at cell_index_clicked + 1.
Hope this helps you think it out.
Use iOS 8 auto layout ..........
Can the interface in this picture be created using UITableView?
Yes this is creted using tableView with custom cells and having section with two lablels.If you need how to build custom cells than this may help http://www.appcoda.com/customize-table-view-cells-for-uitableview/
Hey Guys i am trying to figure out how to build grouped textfields inside storyboards ? Any Ideas ?
Use a containerView in your main view and populate two rows as necessary. You'll need to add a Cell template to the tableView to avoid the static cell error message.