コード例 #1
0
 private void loadBlogPostContent(int position) {
   BlogPost blogPost = (BlogPost) this.adapter.getItem(position);
   this.adapter.setCurrentItemId(this.adapter.getItemId(blogPost));
   this.txtBlogTitle.setText(blogPost.getTitle());
   this.txtBlogContent.setText(blogPost.getContent());
 }
コード例 #2
0
 private void toggleItemFavourite(BlogPost item) {
   item.setFavourite(!item.isFavourite());
 }