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


Java PopupWindowUtil类代码示例

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


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

示例1: onClick

import cn.eoe.app.utils.PopupWindowUtil; //导入依赖的package包/类
@Override
public void onClick(View v) {
	// TODO Auto-generated method stub
	switch (v.getId()) {
	case R.id.imageview_user_title:
		new PopupWindowUtil(mViewPager).showActionWindow(v,
				UserCenterActivity.this, mTabsAdapter.tabs);
		break;
	}
}
 
开发者ID:shengge,项目名称:eoe-android-app,代码行数:11,代码来源:UserCenterActivity.java

示例2: onClick

import cn.eoe.app.utils.PopupWindowUtil; //导入依赖的package包/类
@Override
public void onClick(View v) {
    // TODO Auto-generated method stub
    switch (v.getId()) {
        case R.id.Linear_above_toHome:
            showMenu();
            break;
        case R.id.login_login:
            SharedPreferences share = this.getSharedPreferences(
                    UserLoginUidActivity.SharedName, Context.MODE_PRIVATE);
            // [start] 修复上一个bug
            String Key = share.getString(UserLoginUidActivity.KEY, "");
            if (Key != "" && !Key.contains(":")) {
                Editor edit = share.edit();
                edit.putString(UserLoginUidActivity.KEY, "");
                edit.commit();
            }
            // [end] 下一版本删除掉
            if (share.contains(UserLoginUidActivity.KEY)
                    && !share.getString(UserLoginUidActivity.KEY, "")
                    .equals("")) {
                IntentUtil.start_activity(this, UserCenterActivity.class);
            } else {
                IntentUtil.start_activity(this, UserLoginActivity.class);
            }
            break;
        case R.id.imageview_above_more:
            if (isShowPopupWindows) {
                new PopupWindowUtil(mViewPager).showActionWindow(v, this,
                        mBasePageAdapter.tabs);
            }
            break;
        case R.id.imageview_above_query:

            if (NetWorkHelper.isNetworkAvailable(MainActivity.this)) {
                IntentUtil.start_activity(this, SearchActivity.class,
                        new BasicNameValuePair("tag", current_page));
            } else {
                Toast.makeText(getApplicationContext(), "网络连接失败,请检查网络",
                        Toast.LENGTH_LONG).show();
            }
            break;
        case R.id.cbFeedback:
            FeedbackAgent agent = new FeedbackAgent(this);
            agent.startFeedbackActivity();
            break;
        case R.id.cbAbove:
            IntentUtil.start_activity(this, AboutActivity.class);
            break;
        case R.id.bn_refresh:
            switch (mTag) {
                case 0:
                    imgQuery.setVisibility(View.GONE);
                    new MyTask().execute(topDao);
                    break;
                case 1:
                    new MyTask().execute(newsDao);
                    break;
                case 2:
                    new MyTask().execute(wikiDao);
                    break;
                case 3:
                    new MyTask().execute(blogsDao);
                    break;
                default:
                    break;
            }
            break;
    }

}
 
开发者ID:shengge,项目名称:eoe-android-app,代码行数:72,代码来源:MainActivity.java

示例3: onClick

import cn.eoe.app.utils.PopupWindowUtil; //导入依赖的package包/类
@Override
public void onClick(View v) {
	// TODO Auto-generated method stub
	switch (v.getId()) {
	case R.id.Linear_above_toHome:
		showMenu();
		break;
	case R.id.login_login:
		SharedPreferences share = this.getSharedPreferences(
				UserLoginUidActivity.SharedName, Context.MODE_PRIVATE);
		// [start] 修复上一个bug
		String Key = share.getString(UserLoginUidActivity.KEY, "");
		if (Key!="" && !Key.contains(":")) {
			Editor edit = share.edit();
			edit.putString(UserLoginUidActivity.KEY, "");
			edit.commit();
		}
		// [end] 下一版本删除掉
		if (share.contains(UserLoginUidActivity.KEY)
				&& !share.getString(UserLoginUidActivity.KEY, "")
						.equals("")) {
			IntentUtil.start_activity(this, UserCenterActivity.class);
		} else {
			IntentUtil.start_activity(this, UserLoginActivity.class);
		}
		break;
	case R.id.imageview_above_more:
		if (isShowPopupWindows) {
			new PopupWindowUtil(mViewPager).showActionWindow(v, this,
					mBasePageAdapter.tabs);
		}
		break;
	case R.id.imageview_above_query:

		if (NetWorkHelper.isNetworkAvailable(MainActivity.this)) {
			IntentUtil.start_activity(this, SearchActivity.class,
					new BasicNameValuePair("tag", current_page));
		} else {
			Toast.makeText(getApplicationContext(), "网络连接失败,请检查网络",
					Toast.LENGTH_LONG).show();
		}
		break;
	case R.id.cbFeedback:
		UMFeedbackService.openUmengFeedbackSDK(this);
		break;
	case R.id.cbAbove:
		IntentUtil.start_activity(this, AboutActivity.class);
		break;
	}

}
 
开发者ID:RyanLee7,项目名称:eoe_android,代码行数:52,代码来源:MainActivity.java


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