当前位置: 首页>>代码示例>>Java>>正文


Java ListView.setTag方法代码示例

本文整理汇总了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);
            }
        }
    });
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:75,代码来源:FindActActivity.java


注:本文中的android.widget.ListView.setTag方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。