本文整理汇总了Java中net.oschina.app.widget.ScrollLayout类的典型用法代码示例。如果您正苦于以下问题:Java ScrollLayout类的具体用法?Java ScrollLayout怎么用?Java ScrollLayout使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ScrollLayout类属于net.oschina.app.widget包,在下文中一共展示了ScrollLayout类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initViews
import net.oschina.app.widget.ScrollLayout; //导入依赖的package包/类
private void initViews(View view) {
mScrollLayout = (ScrollLayout) view.findViewById(R.id.scrolllayout);
mScrollLayout.setIsScroll(false);
mEmptyView = (EmptyLayout) view.findViewById(R.id.error_layout);
mLvCatalog = (ListView) view.findViewById(R.id.lv_catalog);
mLvCatalog.setOnItemClickListener(mCatalogOnItemClick);
mLvTag = (ListView) view.findViewById(R.id.lv_tag);
mLvTag.setOnItemClickListener(mTagOnItemClick);
if (mCatalogAdapter == null) {
mCatalogAdapter = new SoftwareCatalogListAdapter();
sendRequestCatalogData(mCatalogHandler);
}
mLvCatalog.setAdapter(mCatalogAdapter);
if (mTagAdapter == null) {
mTagAdapter = new SoftwareCatalogListAdapter();
}
mLvTag.setAdapter(mTagAdapter);
if (mSoftwareAdapter == null) {
mSoftwareAdapter = new SoftwareAdapter();
}
mLvSoftware = (ListView) view.findViewById(R.id.lv_software);
mLvSoftware.setOnItemClickListener(this);
mLvSoftware.setOnScrollListener(this);
mLvSoftware.setAdapter(mSoftwareAdapter);
}
示例2: initView
import net.oschina.app.widget.ScrollLayout; //导入依赖的package包/类
private void initView()
{
mBack = (ImageView)findViewById(R.id.frame_software_head_back);
mTitle = (TextView)findViewById(R.id.frame_software_head_title);
mProgressbar = (ProgressBar)findViewById(R.id.frame_software_head_progress);
mScrollLayout = (ScrollLayout) findViewById(R.id.frame_software_scrolllayout);
mBack.setOnClickListener(backClickListener);
//禁用滑动
mScrollLayout.setIsScroll(false);
software_catalog = (Button)findViewById(R.id.frame_btn_software_catalog);
software_recommend = (Button)findViewById(R.id.frame_btn_software_recommend);
software_lastest = (Button)findViewById(R.id.frame_btn_software_lastest);
software_hot = (Button)findViewById(R.id.frame_btn_software_hot);
software_china = (Button)findViewById(R.id.frame_btn_software_china);
software_catalog.setOnClickListener(this.softwareBtnClick(software_catalog,HEAD_TAG_CATALOG,"开源软件库"));
software_recommend.setOnClickListener(this.softwareBtnClick(software_recommend,HEAD_TAG_RECOMMEND,"每周推荐软件"));
software_lastest.setOnClickListener(this.softwareBtnClick(software_lastest,HEAD_TAG_LASTEST,"最新软件列表"));
software_hot.setOnClickListener(this.softwareBtnClick(software_hot,HEAD_TAG_HOT,"热门软件列表"));
software_china.setOnClickListener(this.softwareBtnClick(software_china,HEAD_TAG_CHINA,"国产软件列表"));
software_catalog.setEnabled(false);
this.initSoftwareCatalogListView();
this.initSoftwareTagListView();
this.initSoftwareListView();
}