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


Java CustomButton类代码示例

本文整理汇总了Java中cn.eoe.app.widget.CustomButton的典型用法代码示例。如果您正苦于以下问题:Java CustomButton类的具体用法?Java CustomButton怎么用?Java CustomButton使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


CustomButton类属于cn.eoe.app.widget包,在下文中一共展示了CustomButton类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initControl

import cn.eoe.app.widget.CustomButton; //导入依赖的package包/类
private void initControl() {

        imm = (InputMethodManager) getApplicationContext().getSystemService(
                Context.INPUT_METHOD_SERVICE);
        loadLayout = (LinearLayout) findViewById(R.id.view_loading);
        loadFaillayout = (LinearLayout) findViewById(R.id.view_load_fail);
        mAboveTitle = (TextView) findViewById(R.id.tv_above_title);
        mAboveTitle.setText("社区精选");
        imgQuery = (ImageView) findViewById(R.id.imageview_above_query);
        imgQuery.setOnClickListener(this);
        imgQuery.setVisibility(View.GONE);
        imgMore = (ImageView) findViewById(R.id.imageview_above_more);
        imgMore.setOnClickListener(this);
        imgLeft = (ImageView) findViewById(R.id.imageview_above_left);
        imgRight = (ImageView) findViewById(R.id.imageview_above_right);
        // editSearch.setOnKeyListener(onkey);
        mViewPager = (ViewPager) findViewById(R.id.above_pager);
        mIndicator = (PageIndicator) findViewById(R.id.above_indicator);
        lvTitle = (ListView) findViewById(R.id.behind_list_show);
        llGoHome = (LinearLayout) findViewById(R.id.Linear_above_toHome);
        imgLogin = (ImageButton) findViewById(R.id.login_login);

        imgLogin.setOnClickListener(this);
        cbFeedback = (CustomButton) findViewById(R.id.cbFeedback);
        cbFeedback.setOnClickListener(this);
        cbAbove = (CustomButton) findViewById(R.id.cbAbove);
        cbAbove.setOnClickListener(this);
        title = findViewById(R.id.main_title);
        mlinear_listview = (LinearLayout) findViewById(R.id.main_linear_listview);
        mFrameTv = (FrameLayout) findViewById(R.id.fl_off);
        mImgTv = (ImageView) findViewById(R.id.iv_off);

        bn_refresh = (Button) findViewById(R.id.bn_refresh);
        bn_refresh.setOnClickListener(this);
    }
 
开发者ID:shengge,项目名称:eoe-android-app,代码行数:36,代码来源:MainActivity.java

示例2: initControl

import cn.eoe.app.widget.CustomButton; //导入依赖的package包/类
private void initControl() {

		imm = (InputMethodManager) getApplicationContext().getSystemService(
				Context.INPUT_METHOD_SERVICE);
		loadLayout = (LinearLayout) findViewById(R.id.view_loading);
		loadFaillayout = (LinearLayout) findViewById(R.id.view_load_fail);
		mAboveTitle = (TextView) findViewById(R.id.tv_above_title);
		mAboveTitle.setText("社区精选");
		imgQuery = (ImageView) findViewById(R.id.imageview_above_query);
		imgQuery.setOnClickListener(this);
		imgQuery.setVisibility(View.GONE);
		imgMore = (ImageView) findViewById(R.id.imageview_above_more);
		imgMore.setOnClickListener(this);
		imgLeft = (ImageView) findViewById(R.id.imageview_above_left);
		imgRight = (ImageView) findViewById(R.id.imageview_above_right);
		// editSearch.setOnKeyListener(onkey);
		mViewPager = (ViewPager) findViewById(R.id.above_pager);
		mIndicator = (PageIndicator) findViewById(R.id.above_indicator);
		lvTitle = (ListView) findViewById(R.id.behind_list_show);
		llGoHome = (LinearLayout) findViewById(R.id.Linear_above_toHome);
		imgLogin = (ImageButton) findViewById(R.id.login_login);

		imgLogin.setOnClickListener(this);
		cbFeedback = (CustomButton) findViewById(R.id.cbFeedback);
		cbFeedback.setOnClickListener(this);
		cbAbove = (CustomButton) findViewById(R.id.cbAbove);
		cbAbove.setOnClickListener(this);
		title = findViewById(R.id.main_title);
		mlinear_listview = (LinearLayout) findViewById(R.id.main_linear_listview);
		mFrameTv = (FrameLayout) findViewById(R.id.fl_off);
		mImgTv = (ImageView) findViewById(R.id.iv_off);
	}
 
开发者ID:RyanLee7,项目名称:eoe_android,代码行数:33,代码来源:MainActivity.java


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