Linethrough/strikethrough a whole HTML table row

Oh yes, yes it is! CSS: table { border-collapse: collapse; } td { position: relative; padding: 5px 10px; } tr.strikeout td:before { content: ” “; position: absolute; top: 50%; left: 0; border-bottom: 1px solid #111; width: 100%; } HTML: <table> <tr> <td>Stuff</td> <td>Stuff</td> <td>Stuff</td> </tr> <tr class=”strikeout”> <td>Stuff</td> <td>Stuff</td> <td>Stuff</td> </tr> <tr> <td>Stuff</td> <td>Stuff</td> <td>Stuff</td> … Read more

Removing a row from an Excel sheet with Apache POI HSSF

/** * Remove a row by its index * @param sheet a Excel sheet * @param rowIndex a 0 based index of removing row */ public static void removeRow(HSSFSheet sheet, int rowIndex) { int lastRowNum=sheet.getLastRowNum(); if(rowIndex>=0&&rowIndex<lastRowNum){ sheet.shiftRows(rowIndex+1,lastRowNum, -1); } if(rowIndex==lastRowNum){ HSSFRow removingRow=sheet.getRow(rowIndex); if(removingRow!=null){ sheet.removeRow(removingRow); } } }

Deleting a Row from a UITableView in Swift?

Works for Swift 3 and Swift 4 Use the UITableViewDataSource tableView(:commit:forRowAt:) method, see also this answer here: func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) { if editingStyle == .delete { print(“Deleted”) self.catNames.remove(at: indexPath.row) self.tableView.deleteRows(at: [indexPath], with: .automatic) } }

Highlight ListView selected row

Other solution (mostly in XML) 1) set the choiceMode of the ListView to singleChoice <ListView android:choiceMode=”singleChoice” …/> 2) Items of the list must be a Checkable View and use a Color State List as Background eg: album_item.xml <?xml version=”1.0″ encoding=”utf-8″?> <CheckedTextView xmlns:android=”http://schemas.android.com/apk/res/android” android:background=”@drawable/list_selector” …/> 3) the background Color State (list_selector.xml) defines the highlight color <?xml … Read more