当前位置: 首页>>代码示例>>Java>>正文


Java UITableViewCellStyle.Default方法代码示例

本文整理汇总了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;
}
 
开发者ID:robovm,项目名称:robovm-samples,代码行数:18,代码来源:PAPFindFriendsViewController.java

示例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;
}
 
开发者ID:robovm,项目名称:robovm-samples,代码行数:19,代码来源:PAPPhotoDetailsViewController.java

示例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;
}
 
开发者ID:robovm,项目名称:robovm-samples,代码行数:20,代码来源:PAPActivityFeedViewController.java

示例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;
}
 
开发者ID:robovm,项目名称:robovm-samples,代码行数:15,代码来源:PAPAccountViewController.java

示例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;
    }
}
 
开发者ID:robovm,项目名称:robovm-samples,代码行数:36,代码来源:PAPPhotoTimelineViewController.java

示例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;
}
 
开发者ID:robovm,项目名称:robovm-samples,代码行数:14,代码来源:PAPPhotoTimelineViewController.java

示例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;
}
 
开发者ID:robovm,项目名称:robovm-samples,代码行数:15,代码来源:PAPPhotoDetailsViewController.java

示例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;
}
 
开发者ID:liraz,项目名称:robolayout,代码行数:14,代码来源:TableViewCell.java


注:本文中的org.robovm.apple.uikit.UITableViewCellStyle.Default方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。