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


Java ScrollLayout类代码示例

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

示例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();
}
 
开发者ID:WallaceLiu,项目名称:oschina-android-app,代码行数:31,代码来源:SoftwareLib.java


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