I used AQGridView for showing record in GridView. I want to customise all cell size. But AQGridView always take constant cell size and showing empty space if records view is small size.
Related
So what I have is a collection view with a uitextview in each cell. The cells start off with a preset size (for example: a size of 60) and as you type in the textview, the textview grows and the cell grows with it in real time.
How would I go about it? I saw this video: https://www.youtube.com/watch?v=0Jb29c22xu8
however, he doesn't use a uicollectionviewcell. Is there a method to use where the cell doesn't have a fixed width and grows with the contents inside?
I am designing a chat app in which I am using the UITableViewAutomaticDimension property of table view when I am setting the label lines to 6 then all cells height is according to the text which label contains but when I increase the number of lines for label then some cells have extra height. Even when scrolling it then cell height again changed.You can check the image so that you can understand it easily thanks.
You need to give label constraints from top and bottom, rather than center vertically.
Give vertical content hugging priority
I am creating a one column PdfPTable given a Rectangle, at a particilar absolute position. In this table, I need to add a collection of PdfPCells and show as much of the cell content as possible and the cells must be clipped at the table rectangle boundaries. I took care of the width by:
PdfPTable cutTable = new PdfPTable(1);
cutTable.setTotalWidth(200f);
cutTable.setLockedWidth(true);
I have a phrase object in each cell and I add a set of cells to the table. The problem is that the cells overflows the table height boundary and it is not clipped. I tried keeping track of the total cells' height after adding each cell, but the problem is that since I ask the table for the row height, a cell must be inserted before and my calculation is off as the last cell overflows.
How do I get the table to clip the cell contents at its boundaries? If I can't do this, how do I determine the height of the cell(the phrase uses Arial 8 font) with the default text wrapping, before it is added to the table?
Thanks in advance for your help.
Take a look at the CellHeights example from my book "iText in Action." It uses the different options to set the height of a cell. I think you need the setFixedHeight() method. When using this method, all content added to the cell that doesn't fit the height will be dropped.
I need to display a spreadsheet in a view. There's no need to edit the cells of the spreadsheet, and the spreadsheet will consistently have the same number of rows and columns. (The spreadsheet cells will be populated with financial figures generated by the user in a different view)
How would I do this? A UITableView seems inadequate, as there need to be around 70-80 cells displayed in this table.
One way to do it is to write your own table cell to contain all the columns in a particular row. Then you can load the cell for each row in UITableView
If the cells don't need to be editable, they don't contain images, and the number of cells isn't large, you could just use labels or drawn text inside a grid of framed rectangles in a UIView, and display that larger view inside a UIScrollView.
I am using a grouped tableview and need to resize 1 cell where the enclosed cell.detailTextLabel has exceeded the size of the cell (i.e. about 3 lines worth).
Is there any easy way for the cell to auto-size itself to it's contents or otherwise, how do I change the size of that particular cell?
The UITableViewDelegate has a method called tableView:heightForRowAtIndexPath:. Just have it return the desired height for each row.