本文整理汇总了Java中org.robovm.apple.uikit.UITableViewCellStyle.Default方法的典型用法代码示例。如果您正苦于以下问题:Java UITableViewCellStyle.Default方法的具体用法?Java UITableViewCellStyle.Default怎么用?Java UITableViewCellStyle.Default使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.robovm.apple.uikit.UITableViewCellStyle
的用法示例。
在下文中一共展示了UITableViewCellStyle.Default方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCellForNextPage
import org.robovm.apple.uikit.UITableViewCellStyle; //导入方法依赖的package包/类
@Override
public PFTableViewCell getCellForNextPage(UITableView tableView, NSIndexPath indexPath) {
final String cellID = "NextPageCell";
PAPLoadMoreCell cell = (PAPLoadMoreCell) tableView.dequeueReusableCell(cellID);
if (cell == null) {
cell = new PAPLoadMoreCell(UITableViewCellStyle.Default, cellID);
cell.getMainView().setBackgroundColor(UIColor.black());
cell.setHideSeparatorBottom(true);
cell.setHideSeparatorTop(true);
}
cell.setSelectionStyle(UITableViewCellSelectionStyle.None);
return cell;
}
示例2: getCellForRow
import org.robovm.apple.uikit.UITableViewCellStyle; //导入方法依赖的package包/类
@Override
public PFTableViewCell getCellForRow(UITableView tableView, NSIndexPath indexPath, PAPActivity activity) {
final String cellID = "CommentCell";
// Try to dequeue a cell and create one if necessary
PAPBaseTextCell cell = (PAPBaseTextCell) tableView.dequeueReusableCell(cellID);
if (cell == null) {
cell = new PAPBaseTextCell(UITableViewCellStyle.Default, cellID);
cell.setCellInsetWidth(CELL_INSET_WIDTH);
cell.setDelegate(this);
}
cell.setUser(activity.getFromUser());
cell.setContentText(activity.getContent());
cell.setDate(activity.getCreatedAt());
return cell;
}
示例3: getCellForRow
import org.robovm.apple.uikit.UITableViewCellStyle; //导入方法依赖的package包/类
@Override
public PFTableViewCell getCellForRow(UITableView tableView, NSIndexPath indexPath, PAPActivity activity) {
final String cellIdentifier = "ActivityCell";
PAPActivityCell cell = (PAPActivityCell) tableView.dequeueReusableCell(cellIdentifier);
if (cell == null) {
cell = new PAPActivityCell(UITableViewCellStyle.Default, cellIdentifier);
cell.setDelegate(this);
cell.setSelectionStyle(UITableViewCellSelectionStyle.None);
}
cell.setActivity(activity);
cell.setIsNew(lastRefresh.compare(activity.getCreatedAt()) == NSComparisonResult.Ascending);
cell.hideSeparator(indexPath.getRow() == getObjects().size() - 1);
return cell;
}
示例4: getCellForNextPage
import org.robovm.apple.uikit.UITableViewCellStyle; //导入方法依赖的package包/类
@Override
public PFTableViewCell getCellForNextPage(UITableView tableView, NSIndexPath indexPath) {
final String loadMoreCellIdentifier = "LoadMoreCell";
PAPLoadMoreCell cell = (PAPLoadMoreCell) tableView.dequeueReusableCell(loadMoreCellIdentifier);
if (cell == null) {
cell = new PAPLoadMoreCell(UITableViewCellStyle.Default, loadMoreCellIdentifier);
cell.setSelectionStyle(UITableViewCellSelectionStyle.None);
cell.getSeparatorImageTop().setImage(UIImage.create("SeparatorTimelineDark"));
cell.setHideSeparatorBottom(true);
cell.getMainView().setBackgroundColor(UIColor.clear());
}
return cell;
}
示例5: getCellForRow
import org.robovm.apple.uikit.UITableViewCellStyle; //导入方法依赖的package包/类
@Override
public PFTableViewCell getCellForRow(UITableView tableView, NSIndexPath indexPath, PAPPhoto photo) {
final String cellIdentifier = "Cell";
int index = getIndexForObjectAt(indexPath);
if (indexPath.getRow() % 2 == 0) {
// Header
return getDetailPhotoCellForRow(indexPath);
} else {
// Photo
PAPPhotoCell cell = (PAPPhotoCell) getTableView().dequeueReusableCell(cellIdentifier);
if (cell == null) {
cell = new PAPPhotoCell(UITableViewCellStyle.Default, cellIdentifier);
cell.getPhotoButton().addOnTouchUpInsideListener(didTapOnPhotoAction);
}
cell.getPhotoButton().setTag(index);
cell.getImageView().setImage(UIImage.getImage("PlaceholderPhoto"));
if (photo != null) {
cell.getImageView().setFile(photo.getPicture());
// PFQTVC will take care of asynchronously downloading files,
// but will only load them when the tableview is not moving. If
// the data is there, let's load it right away.
if (cell.getImageView().getFile().isDataAvailable()) {
cell.getImageView().loadInBackground();
}
}
return cell;
}
}
示例6: getCellForNextPage
import org.robovm.apple.uikit.UITableViewCellStyle; //导入方法依赖的package包/类
@Override
public PFTableViewCell getCellForNextPage(UITableView tableView, NSIndexPath indexPath) {
final String loadMoreCellIdentifier = "LoadMoreCell";
PAPLoadMoreCell cell = (PAPLoadMoreCell) tableView.dequeueReusableCell(loadMoreCellIdentifier);
if (cell == null) {
cell = new PAPLoadMoreCell(UITableViewCellStyle.Default, loadMoreCellIdentifier);
cell.setSelectionStyle(UITableViewCellSelectionStyle.None);
cell.setHideSeparatorBottom(true);
cell.getMainView().setBackgroundColor(UIColor.clear());
}
return cell;
}
示例7: getCellForNextPage
import org.robovm.apple.uikit.UITableViewCellStyle; //导入方法依赖的package包/类
@Override
public PFTableViewCell getCellForNextPage(UITableView tableView, NSIndexPath indexPath) {
final String cellIdentifier = "NextPageDetails";
PAPLoadMoreCell cell = (PAPLoadMoreCell) tableView.dequeueReusableCell(cellIdentifier);
if (cell == null) {
cell = new PAPLoadMoreCell(UITableViewCellStyle.Default, cellIdentifier);
cell.setCellInsetWidth(CELL_INSET_WIDTH);
cell.setHideSeparatorTop(true);
}
return cell;
}
示例8: TableViewCell
import org.robovm.apple.uikit.UITableViewCellStyle; //导入方法依赖的package包/类
public TableViewCell(String resource, String reuseIdentifier) {
super(UITableViewCellStyle.Default, reuseIdentifier);
LayoutBridge bridge = new LayoutBridge(getContentView().getBounds());
bridge.setAutoresizingMask(UIViewAutoresizing.FlexibleWidth.set(UIViewAutoresizing.FlexibleHeight));
getContentView().addSubview(bridge);
LayoutInflater inflater = new LayoutInflater();
inflater.inflate(resource, bridge, true);
this.layoutBridge = bridge;
}