コード例 #1
0
  public TextStyle getTextStyle(ListItemDecor.Result result, int position) {
    TextStyle ts = null;

    if (result.contains(position, ListItemDecor.Type.TextStyle)) {
      ts = result.getTextStyleAt(position);
    }

    return ts;
  }
コード例 #2
0
  public Drawable getDrawable(ListItemDecor.Result result, int position) {
    Drawable drawable = null;

    if (result.contains(position, ListItemDecor.Type.Icon)) {
      IconData icon = result.getIconAt(position);
      drawable = icon.drawable();
    }

    return drawable;
  }