本文整理匯總了Java中android.widget.ListView.setTag方法的典型用法代碼示例。如果您正苦於以下問題:Java ListView.setTag方法的具體用法?Java ListView.setTag怎麽用?Java ListView.setTag使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.widget.ListView
的用法示例。
在下文中一共展示了ListView.setTag方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: findView
import android.widget.ListView; //導入方法依賴的package包/類
private void findView() {
this.mRoot = (PublicLoadLayout) findViewById(R.id.find_act_content_container_layout);
this.mRoot.addContent(R.layout.activity_find_act_content);
this.mPullListView = (PullToRefreshListView) this.mRoot.findViewById(R.id.find_act_listView);
ListView mFindActListView = (ListView) this.mPullListView.getRefreshableView();
this.mPullListView.setOnRefreshListener(this.onRefreshListener);
this.mPullListView.setParams(Boolean.valueOf(true), "FindActActivity");
this.mFindActAdapter = new FindActAdapter(this.mContext, this.mFindChildDataAreaBean);
mFindActListView.setAdapter(this.mFindActAdapter);
mFindActListView.setTag(this.mFindActAdapter);
mFindActListView.setOnItemClickListener(new OnItemClickListener(this) {
final /* synthetic */ FindActActivity this$0;
{
if (HotFix.PREVENT_VERIFY) {
System.out.println(VerifyLoad.class);
}
this.this$0 = this$0;
}
public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {
LogInfo.log("Emerson", "------------position = " + position + "---id = " + id);
FindChildDataAreaBean fcda = (FindChildDataAreaBean) this.this$0.mFindChildDataAreaBean.get((int) id);
HomeMetaData homeMetaData = new HomeMetaData();
homeMetaData.at = Integer.valueOf(fcda.at).intValue();
homeMetaData.mobilePic = fcda.mobilePic;
homeMetaData.webViewUrl = fcda.webViewUrl;
homeMetaData.webUrl = fcda.webUrl;
homeMetaData.nameCn = fcda.nameCn;
homeMetaData.subTitle = fcda.subTitle;
homeMetaData.cmsid = fcda.cmsid;
homeMetaData.duration = fcda.duration;
homeMetaData.episode = fcda.episode;
homeMetaData.nowEpisodes = fcda.nowEpisodes;
homeMetaData.zid = fcda.zid;
homeMetaData.streamUrl = fcda.streamUrl;
homeMetaData.streamCode = fcda.streamCode;
homeMetaData.tag = fcda.tag;
UIControllerUtils.gotoActivity(this.this$0.mContext, homeMetaData);
}
});
((ImageView) findViewById(R.id.topic_back_btn)).setOnClickListener(new OnClickListener(this) {
final /* synthetic */ FindActActivity this$0;
{
if (HotFix.PREVENT_VERIFY) {
System.out.println(VerifyLoad.class);
}
this.this$0 = this$0;
}
public void onClick(View v) {
this.this$0.finish();
}
});
this.mRoot.setRefreshData(new RefreshData(this) {
final /* synthetic */ FindActActivity this$0;
{
if (HotFix.PREVENT_VERIFY) {
System.out.println(VerifyLoad.class);
}
this.this$0 = this$0;
}
public void refreshData() {
if (NetworkUtils.isNetworkAvailable()) {
this.this$0.requestDate(false);
} else {
ToastUtils.showToast(this.this$0.mContext, 2131100493);
}
}
});
}