Exemplo n.º 1
0
 public void setItemList(List<Segment> items) {
   itemList = items;
   if (itemList.size() == 0) {
     noLinksTV.setVisibility(View.VISIBLE);
   } else {
     noLinksTV.setVisibility(View.GONE);
   }
   notifyDataSetChanged();
 }
Exemplo n.º 2
0
 public LinkTextAdapter(
     SuperTextActivity context, List<Segment> itemList, SefariaTextView noLinksTV) {
   this.itemList = itemList;
   this.activity = context;
   this.noLinksTV = noLinksTV;
   if (itemList == null) itemList = new ArrayList<>();
   if (itemList.size() == 0) {
     noLinksTV.setVisibility(View.VISIBLE);
   } else {
     noLinksTV.setVisibility(View.GONE);
   }
 }