Questions tagged [sectionheader]

101 questions
1
vote
1 answer

How to highlight/change background color of table view section header while scrolling

I am stuck with displaying the table view section header. Problem is, when I scroll down, until I hit the next section header, I want my previous section header to be highlighted and as soon as I hit the next section header,I want my this "new"…
Emrah Akgül
  • 630
  • 2
  • 7
  • 18
1
vote
1 answer

Implementing Android (no 3rd party) Listview Subheaders

is there any possibility to implement the subheader behaviour as suggested by the google guidelines (see: https://www.google.com/design/spec/components/subheaders.html)? Especially the sticky functionality of the headers is important for me. I found…
Krisna
  • 13
  • 5
1
vote
3 answers

reload section header when tapped on other section header

I have a UITableView with two sections in it. I have used custom views for the section headers and also added UITapGestureRecognisers on both of them. I want to change the data on a section header when I tap on the other section header. How can I…
1
vote
1 answer

Flickering Section Headers when it refreshes?

I have a a series of UITableViewCells that update every second or so. First Attempt: In order to perform such an update, I call self.tableView.reloadData() to reload all the cell contents. Second Attempt: I have tried just refreshing the sections…
user1871869
  • 3,317
  • 13
  • 56
  • 106
1
vote
3 answers

UICollectionReusableView Section Header crashes because of IBOutlet connection

I have a UICollectionViewController which delegates UICollectionViewDataSource and UICollectionViewDelegate. My collection view displays 2 sections with multiple rows of data and works fine. I have created a Section Header (in IB Attributes…
1
vote
2 answers

Looking for a way to change the fixed height of page header in Access 2007

I am new at modifying reports in Access and would sincerely appreciate any help to find a away to change the height of a page header in Access 2007. I have a page header stuck with a height of 22". I try to move the page header up using the double…
Temp
  • 23
  • 6
1
vote
2 answers

toggle a UIButton on the UITableView section header when table in edit mode

I have a custom view with a UILabel and UIButton that I use for my grouped UITableView section headers like so: - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { sectionHeaderView *headerView =…
JackyJohnson
  • 3,106
  • 3
  • 28
  • 35
1
vote
1 answer

Android : ListView get jumbled up while trying to write ViewHolder class for ListView with Section Headers

I am using a ListView with sections and section headers. Below is the GetView method of adapter without ViewHolder class, which works fine but when scrolled several times, freezes the UI and also kills the app on several devices. @Override public…
user3513843
1
vote
1 answer

Android : How to create a jagged array dynamically taking values from the database

I am using Android Amazing ListView to create a custom ListView with sticky headers. In this library, the data is being set inside Data.java class. What I need to do is, I have to pass the values for headers and list data for the headers from the…
user3513843
1
vote
1 answer

iPhone When increasing the height of UITableView section header the height of the cell below it decreases. How to avoid?

I created a UITableView of which I adjusted the height and background of the section header. This all works as expected but the cell (row) below it becomes smaller. It almost seems that the section header goes over the first cell. Is there a way to…
iJar
  • 147
  • 2
  • 15
1
vote
1 answer

Update TableView SectionHeader after cell updates

Hi hope someone can help. I currently have a tableview which has a set of sections, in my titleForHeaderInSection i am returning a string that includes a sum of values contained in the section cells to display in the section header. This is fine…
Edelmundo
  • 23
  • 1
  • 4
0
votes
1 answer

iOS - UITableView section header part of grouped table

I want to add a section header to my tableview when it is in editing mode. Basically I would just want it to be a part of the datasource to have the same look as the rest of the table (see below image for wanted result). But inserting an object…
Peter Warbo
  • 11,136
  • 14
  • 98
  • 193
0
votes
1 answer

Custom SectionHeaderView in landscape persisting in portrait view after rotation

I'm using a custom sectionheader class with a tableview, and getting some unexpected behavior after rotation. Here's the use case: Tap on cell in UITableView View pushed onto stack. Rotate the view to landscape. Rotate back to portrait. Pop the…
beaudrykock
  • 248
  • 2
  • 17
0
votes
0 answers

How to update the collection view section header height as per the content size on some event?

I'm having issues with the dynamic height of the collection view's header on tab change. I have a collection view of multiple sections. In one of the header sections, I'm using a segment view with two tabs and under each tab, there is a table view.…
Malika Arora
  • 439
  • 1
  • 4
  • 6
0
votes
2 answers

viewForHeaderInSection creating a memory leak?

I am having great success getting the look I want using a custom header view and the delegate method tableView: viewForHeaderInSection:. But I think it is producing a memory leak, and I'm not sure what to do about it. The code is this: - (UIView *)…
Jim
  • 5,940
  • 9
  • 44
  • 91