Esempio n. 1
0
 /**
  * ************************************************************************************************************************
  */
 private void setViewData(Node node) {
   AdapterSimpleTree.ViewHolder v = mAdapter.getViewMap().get(node.getId());
   if (null == v) return;
   Long p = 100L;
   if (node.getStatus() != INode.STATUS_FINISH) {
     p = node.getProgress() * 100 / node.getMax();
   }
   v.pbTreeNode.setProgress(p.intValue());
   v.pbTreeNode.setMax(100);
   AdapterSimpleTree.refreshStatus(v.txtBtn, node.getStatus());
 }
Esempio n. 2
0
 private void refreshDownloadName(Node node) {
   AdapterSimpleTree.ViewHolder v = mAdapter.getViewMap().get(node.getId() + "_dl");
   node.setName(node.isClickedDownloadAll() ? "全部暂停" : "全部下载");
   if (null == v) return;
   v.txtTreeNodeLable.setText(node.getName());
 }