row-height

How can I stretch the cells of the GridView vertically?

痞子三分冷 提交于 2019-12-06 10:38:45
I have this GridView: <GridView android:id="@+id/gridEtebarSanji" android:layout_width="match_parent" android:layout_height="480dp" android:background="@color/black" android:gravity="center" android:horizontalSpacing="2dp" android:isScrollContainer="false" android:numColumns="3" android:stretchMode="columnWidth" android:verticalSpacing="2dp" > </GridView> And this layout to be used for the item inside of it: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"

Xcode 6 iOS 8 UITableView rowHeight property returns -1 [duplicate]

时光怂恿深爱的人放手 提交于 2019-12-06 07:46:25
This question already has answers here : Wrong value from UITableView:rowHeight at iOS8 (6 answers) Closed 5 years ago . I have a UITableView in Xcode in my project and I set rowHeight to be 44 in StoryBoard . In iOS7 everything is fine but in iOS8 rowHeight returns a value of -1 which cause my table view not being displayed. In iOS 8, Apple introduces a new feature for UITableView known as Self Sizing Cells. If you want to display dynamic content in table view with variable height, you would need to calculate the row height manually. tableView.estimatedRowHeight = 44.0 tableView.rowHeight =

Is it possible to specify TableRow height?

笑着哭i 提交于 2019-12-06 04:41:56
问题 I have a TableLayout with multiple TableRow views inside it. I wish to specify the height of the row programatically. E.g. int rowHeight = calculateRowHeight(); TableLayout tableLayout = new TableLayout(activity); TableRow tableRow = buildTableRow(); TableLayout.LayoutParams rowLp = new TableLayout.LayoutParams( LayoutParams.FILL_PARENT, rowHeight); tableLayout.addView(tableRow, rowLp); But this isn't working and is defaulting to WRAP_CONTENT. Digging around in the Android source code, I see

Change UITableviewCell height dynamically in iPhone?

时间秒杀一切 提交于 2019-12-06 03:40:12
问题 I have three custom UILabel in UITableViewCell. The cell design like this, Date(12.1.2012) Time(12.00pm) Cost: $20.00 Details I have specified the row height 100 in - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath; . But, now the details some times return empty(Null) from the server. On that time i need to remove the Details label from the cell and change the particular cell(row) height to 70. How can i do this? I searched my level best in Google.

How to implement jtable with variable row-height

点点圈 提交于 2019-12-05 16:04:05
问题 None of the answers to two previous questions (here and here) resolve my problem. I have a multi-column jtable for which I want to display string-content of some columns over more than one line within the cell based on newline char's ("\n") within the string. The number of newlines per string is random, known only at run-time. Only the affected row must be adjusted across all columns to the new height. There may be a different number of lines per affected column, and the row-height needs to

How to detect values that do not fit in Excel cells, using VBA?

帅比萌擦擦* 提交于 2019-12-05 08:29:05
We are generating long Excel sheets using various tools, which have to be reviewed and used as input further down in the workflow. The problem that some cells are too small for texts they contain. So humans and programs that are reading the worksheets will not see the same data. This is usually true for merged cells containing auto-wrapped texts, when Excel does not adjust the row height properly. But there are also other cases: for instance, when some columns have width explicitly set, which is not enough for long values. |Group|Def1 |Subgroup|Definition| Id |Data |Comment | |----------------

Setting the height of a row in a JTable in java

我们两清 提交于 2019-12-05 00:40:53
I have been searching for a solution to be able to increase the height of a row in a JTable. I have been using the setRowHeight(int int) method which compiles and runs OK, but no row[s] have been increased. When I use the getRowHeight(int) method of the row I set the height to, it does print out the size I increased the row to, so I'm not sure what is wrong. The code below is a rough illustration how I am trying to solve it. My class extends JFrame. String[] columnNames = {"Column 1", "Column 2", "Column 1 3"}; JTable table = new JTable(new DefaultTableModel(columnNames, people.size()));

AutoLayout in UITableview with dynamic cell height

巧了我就是萌 提交于 2019-12-04 17:38:55
For dynamic height of my table view cell I take reference from this link. Using Auto Layout in UITableView for dynamic cell layouts & variable row heights Here is my code of tableview data source and delegate methods -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section; { return arrTemp. count; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellIdentifier=@"AutoLAyoutCell"; AutoLayoutTableViewCell *cell=(AutoLayoutTableViewCell *)[tableView dequeueReusableCellWithIdentifier

Change height of textarea based on number of lines of text in javascript [duplicate]

天大地大妈咪最大 提交于 2019-12-04 14:18:29
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Autosizing textarea using prototype How do I change the height of a text area based on the number of lines of text that the user puts into it? For the example below if the user changed the text in the textarea to more than one line of text then the textarea would put a scroll bar on itself rather than changing its height to fit the number of lines. <textarea> This is the default text that will be displayed in

Is it possible to specify TableRow height?

若如初见. 提交于 2019-12-04 12:49:14
I have a TableLayout with multiple TableRow views inside it. I wish to specify the height of the row programatically. E.g. int rowHeight = calculateRowHeight(); TableLayout tableLayout = new TableLayout(activity); TableRow tableRow = buildTableRow(); TableLayout.LayoutParams rowLp = new TableLayout.LayoutParams( LayoutParams.FILL_PARENT, rowHeight); tableLayout.addView(tableRow, rowLp); But this isn't working and is defaulting to WRAP_CONTENT. Digging around in the Android source code , I see this in TableLayout (triggered by the onMeasure() method): private void findLargestCells(int