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


Java TitleLayout类代码示例

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


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

示例1: getPageTitle

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
private TitleLayout getPageTitle() {
    this.llTitle = new TitleLayout(getContext());
    this.llTitle.setId(1);
    this.llTitle.getBtnBack().setOnClickListener(this);
    int resId = R.getStringRes(this.activity, "multi_share");
    if (resId > 0) {
        this.llTitle.getTvTitle().setText(resId);
    }
    this.llTitle.getBtnRight().setVisibility(0);
    resId = R.getStringRes(this.activity, "share");
    if (resId > 0) {
        this.llTitle.getBtnRight().setText(resId);
    }
    this.llTitle.getBtnRight().setOnClickListener(this);
    LayoutParams lp = new LayoutParams(-2, -2);
    lp.addRule(9);
    lp.addRule(10);
    lp.addRule(11);
    this.llTitle.setLayoutParams(lp);
    return this.llTitle;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:22,代码来源:EditPage.java

示例2: onCreate

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
@Override
public void onCreate() {
	super.onCreate();
	TitleLayout llTitle = getTitleLayout();
	llTitle.setBackgroundColor(Color.WHITE);
	
	//返回箭头设置
	ImageView backIcon = (ImageView)llTitle.getChildAt(0);		
	backIcon.setImageResource(R.drawable.abc_ab_back_black);
	backIcon.setPadding(12, 20, 12, 20);
	
	//去掉返回返回箭头后面的divider
	ImageView backIconDivider = (ImageView)llTitle.getChildAt(1);		
	backIconDivider.setVisibility(View.GONE);
       
	
	//设置默认右边logo消失,设置actionbar的title
       hideShareSDKLogo();
       disablePopUpAnimation();
       TextView abTitle = (TextView)getTitleLayout().getTvTitle();
       abTitle.setText(R.string.regin_login_atuth_title);
       abTitle.setTextColor(getActivity()
       		.getResources().getColor(R.color.sina_auth_title_text_color));

}
 
开发者ID:SimonJoker,项目名称:OnTheRoad,代码行数:26,代码来源:CustomAuthAdapter.java

示例3: WechatPage

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
public WechatPage(SlidingMenu menu) {
    super(menu);
    pageView = getPage();

    llTitle = (TitleLayout) pageView.findViewById(R.id.llTitle);
    llTitle.getBtnBack().setOnClickListener(this);
    llTitle.getTvTitle().setText(R.string.sm_item_wechat);

    ctvPlats = new CheckedTextView[]{
            (CheckedTextView) pageView.findViewById(R.id.ctvStWc),
            (CheckedTextView) pageView.findViewById(R.id.ctvStWm),
            (CheckedTextView) pageView.findViewById(R.id.ctvStWf)
    };
    ctvPlats[0].setChecked(true);
    for (View v : ctvPlats) {
        v.setOnClickListener(this);
    }
    ViewGroup vp = (ViewGroup) ctvPlats[0].getParent().getParent();
    for (int i = 0, size = vp.getChildCount(); i < size; i++) {
        vp.getChildAt(i).setOnClickListener(this);
    }
}
 
开发者ID:snowdream,项目名称:android-sharesdk,代码行数:23,代码来源:WechatPage.java

示例4: onCreate

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
public void onCreate() {
	activity.setContentView(R.layout.page_show_user_info);
	llTitle = (TitleLayout) activity.findViewById(R.id.llTitle);
	llTitle.getBtnBack().setOnClickListener(this);
	if (TextUtils.isEmpty(title)) {
		llTitle.getTvTitle().setText(R.string.app_name);
	} else {
		llTitle.getTvTitle().setText(title);
	}

	final TextView tvJson = (TextView) activity.findViewById(R.id.tvJson);
	new Thread() {
		public void run() {
			tvJson.setText(format("", bigData));
			bigData = null;
		}
	}.start();
}
 
开发者ID:snowdream,项目名称:android-sharesdk,代码行数:19,代码来源:JsonPage.java

示例5: getPageTitle

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
private TitleLayout getPageTitle() {
		llTitle = new TitleLayout(getContext());
		llTitle.setId(1);
//		int resId = getBitmapRes(activity, "title_back");
//		if (resId > 0) {
//			llTitle.setBackgroundResource(resId);
//		}
		llTitle.getBtnBack().setOnClickListener(this);
		int resId = getStringRes(activity, "multi_share");
		if (resId > 0) {
			llTitle.getTvTitle().setText(resId);
		}
		llTitle.getBtnRight().setVisibility(View.VISIBLE);
		resId = getStringRes(activity, "share");
		if (resId > 0) {
			llTitle.getBtnRight().setText(resId);
		}
		llTitle.getBtnRight().setOnClickListener(this);
		RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(
				LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
		lp.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
		lp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
		lp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
		llTitle.setLayoutParams(lp);

		return llTitle;
	}
 
开发者ID:liupengandroid,项目名称:ywApplication,代码行数:28,代码来源:EditPage.java

示例6: onCreate

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
public void onCreate() {
    LinearLayout llPage = new LinearLayout(getContext());
    llPage.setBackgroundColor(-657931);
    llPage.setOrientation(1);
    this.activity.setContentView(llPage);
    this.llTitle = new TitleLayout(getContext());
    int resId = R.getBitmapRes(getContext(), "title_back");
    if (resId > 0) {
        this.llTitle.setBackgroundResource(resId);
    }
    this.llTitle.getBtnBack().setOnClickListener(this);
    resId = R.getStringRes(getContext(), "multi_share");
    if (resId > 0) {
        this.llTitle.getTvTitle().setText(resId);
    }
    this.llTitle.getBtnRight().setVisibility(0);
    resId = R.getStringRes(getContext(), SportPlanFragment.COURSE_STATUS_FINISH);
    if (resId > 0) {
        this.llTitle.getBtnRight().setText(resId);
    }
    this.llTitle.getBtnRight().setOnClickListener(this);
    this.llTitle.setLayoutParams(new LayoutParams(-1, -2));
    llPage.addView(this.llTitle);
    FrameLayout flPage = new FrameLayout(getContext());
    LayoutParams lpFl = new LayoutParams(-1, -2);
    lpFl.weight = 1.0f;
    flPage.setLayoutParams(lpFl);
    llPage.addView(flPage);
    PullToRefreshView followList = new PullToRefreshView(getContext());
    followList.setLayoutParams(new FrameLayout.LayoutParams(-1, -1));
    flPage.addView(followList);
    this.adapter = new FollowAdapter(followList);
    this.adapter.setPlatform(this.platform);
    followList.setAdapter(this.adapter);
    this.adapter.getListView().setOnItemClickListener(this);
    ImageView ivShadow = new ImageView(getContext());
    resId = R.getBitmapRes(getContext(), "title_shadow");
    if (resId > 0) {
        ivShadow.setBackgroundResource(resId);
    }
    ivShadow.setLayoutParams(new FrameLayout.LayoutParams(-1, -2));
    flPage.addView(ivShadow);
    followList.performPulling(true);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:45,代码来源:FollowListPage.java

示例7: getPageTitle

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
private TitleLayout getPageTitle() {
		llTitle = new TitleLayout(getContext());
		llTitle.setId(1);
//		int resId = getBitmapRes(activity, "title_back");
//		if (resId > 0) {
//			llTitle.setBackgroundResource(resId);
//		}
		llTitle.getBtnBack().setOnClickListener(this);
		int resId = getStringRes(activity, "ssdk_oks_multi_share");
		if (resId > 0) {
			llTitle.getTvTitle().setText(resId);
		}
		llTitle.getBtnRight().setVisibility(View.VISIBLE);
		resId = getStringRes(activity, "ssdk_oks_share");
		if (resId > 0) {
			llTitle.getBtnRight().setText(resId);
		}
		llTitle.getBtnRight().setOnClickListener(this);
		RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(
				LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
		lp.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
		lp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
		lp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
		llTitle.setLayoutParams(lp);

		return llTitle;
	}
 
开发者ID:zzlnewair,项目名称:Myshop,代码行数:28,代码来源:EditPage.java

示例8: getPageTitle

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
private TitleLayout getPageTitle() {
		llTitle = new TitleLayout(getContext());
		llTitle.setId(1);
//		int resId = getBitmapRes(activity, "title_back");
//		if (resId > 0) {
//			llTitle.setBackgroundResource(resId);
//		}

		int resIdBackgroundColor = getColorRes(activity, "bg_title");
		if (resIdBackgroundColor > 0) {
			llTitle.setBackgroundColor(activity.getResources().getColor(resIdBackgroundColor));
			Log.d("resIdBackgroundColor","resIdBackgroundColor:"+resIdBackgroundColor);
		}

		llTitle.getBtnBack().setOnClickListener(this);
		int resId = getStringRes(activity, "multi_share");
		if (resId > 0) {
			llTitle.getTvTitle().setText(resId);
		}
		llTitle.getBtnRight().setVisibility(View.VISIBLE);
		resId = getStringRes(activity, "share");
		if (resId > 0) {
			llTitle.getBtnRight().setText(resId);
		}
		llTitle.getBtnRight().setOnClickListener(this);
		RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(
				LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
		lp.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
		lp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
		lp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
		llTitle.setLayoutParams(lp);

		return llTitle;
	}
 
开发者ID:BigAppOS,项目名称:BigApp_Discuz_Android,代码行数:35,代码来源:EditPage.java

示例9: CustomerPage

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
public CustomerPage(SlidingMenu menu) {
    super(menu);
    View pageView = getPage();
    llTitle = (TitleLayout) pageView.findViewById(R.id.llTitle);
    llTitle.getBtnBack().setOnClickListener(this);
    llTitle.getTvTitle().setText(R.string.sm_item_customer);
    LinearLayout llList = (LinearLayout) pageView.findViewById(R.id.llList);
    for (int i = 0, size = llList.getChildCount(); i < size; i++) {
        llList.getChildAt(i).setOnClickListener(this);
    }
}
 
开发者ID:snowdream,项目名称:android-sharesdk,代码行数:12,代码来源:CustomerPage.java

示例10: onCreate

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
public void onCreate() {
	activity.setContentView(R.layout.page_get_user_info);
	llTitle = (TitleLayout) activity.findViewById(R.id.llTitle);
	llTitle.getBtnBack().setOnClickListener(this);
	llTitle.getTvTitle().setText(type == 0 ? R.string.demo_get_my_info
			: R.string.demo_get_other_info);

	ListView lvPlats = (ListView) activity.findViewById(R.id.lvPlats);
	lvPlats.setSelector(new ColorDrawable());
	adapter = new PlatAdapter(this);
	adapter.setType(type);
	lvPlats.setAdapter(adapter);
}
 
开发者ID:snowdream,项目名称:android-sharesdk,代码行数:14,代码来源:GetInforPage.java

示例11: AuthPage

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
public AuthPage(SlidingMenu menu) {
	super(menu);
	pageView = getPage();

	llTitle = (TitleLayout) pageView.findViewById(R.id.llTitle);
	llTitle.getBtnBack().setOnClickListener(this);
	llTitle.getTvTitle().setText(R.string.sm_item_auth);

	ListView lvPlats = (ListView) pageView.findViewById(R.id.lvPlats);
	lvPlats.setSelector(new ColorDrawable());
	adapter = new AuthAdapter(this);
	lvPlats.setAdapter(adapter);
	lvPlats.setOnItemClickListener(adapter);
}
 
开发者ID:snowdream,项目名称:android-sharesdk,代码行数:15,代码来源:AuthPage.java

示例12: onCreate

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
public void onCreate() {
	activity.setContentView(R.layout.page_get_access_token);
	llTitle = (TitleLayout) activity.findViewById(R.id.llTitle);
	llTitle.getBtnBack().setOnClickListener(this);
	llTitle.getTvTitle().setText(R.string.demo_get_access_token);

	ListView lvPlats = (ListView) activity.findViewById(R.id.lvPlats);
	lvPlats.setSelector(new ColorDrawable());
	adapter = new AuthAdapter(this);
	lvPlats.setAdapter(adapter);
}
 
开发者ID:snowdream,项目名称:android-sharesdk,代码行数:12,代码来源:GetTokenPage.java

示例13: onCreate

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
public void onCreate() {
	LinearLayout llPage = new LinearLayout(getContext());
	llPage.setBackgroundColor(0xfff5f5f5);
	llPage.setOrientation(LinearLayout.VERTICAL);
	activity.setContentView(llPage);

	// 标题栏
	llTitle = new TitleLayout(getContext());
	int resId = getBitmapRes(getContext(), "title_back");
	if (resId > 0) {
		llTitle.setBackgroundResource(resId);
	}
	llTitle.getBtnBack().setOnClickListener(this);
	resId = getStringRes(getContext(), "multi_share");
	if (resId > 0) {
		llTitle.getTvTitle().setText(resId);
	}
	llTitle.getBtnRight().setVisibility(View.VISIBLE);
	resId = getStringRes(getContext(), "finish");
	if (resId > 0) {
		llTitle.getBtnRight().setText(resId);
	}
	llTitle.getBtnRight().setOnClickListener(this);
	llTitle.setLayoutParams(new LayoutParams(
			LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
	llPage.addView(llTitle);

	FrameLayout flPage = new FrameLayout(getContext());
	LayoutParams lpFl = new LayoutParams(
			LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
	lpFl.weight = 1;
	flPage.setLayoutParams(lpFl);
	llPage.addView(flPage);

	// 关注(或朋友)列表
	PullToRefreshView followList = new PullToRefreshView(getContext());
	FrameLayout.LayoutParams lpLv = new FrameLayout.LayoutParams(
			LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
	followList.setLayoutParams(lpLv);
	flPage.addView(followList);
	adapter = new FollowAdapter(followList);
	adapter.setPlatform(platform);
	followList.setAdapter(adapter);
	adapter.getListView().setOnItemClickListener(this);

	ImageView ivShadow = new ImageView(getContext());
	resId = getBitmapRes(getContext(), "title_shadow");
	if (resId > 0) {
		ivShadow.setBackgroundResource(resId);
	}
	FrameLayout.LayoutParams lpSd = new FrameLayout.LayoutParams(
			LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
	ivShadow.setLayoutParams(lpSd);
	flPage.addView(ivShadow);

	// 请求数据
	followList.performPulling(true);
}
 
开发者ID:liupengandroid,项目名称:ywApplication,代码行数:59,代码来源:FollowListPage.java

示例14: onCreate

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
public void onCreate() {
	LinearLayout llPage = new LinearLayout(getContext());
	llPage.setBackgroundColor(0xfff5f5f5);
	llPage.setOrientation(LinearLayout.VERTICAL);
	activity.setContentView(llPage);

	// 标题栏
	llTitle = new TitleLayout(getContext());
	int resId = getBitmapRes(getContext(), "title_back");
	if (resId > 0) {
		llTitle.setBackgroundResource(resId);
	}
	llTitle.getBtnBack().setOnClickListener(this);
	resId = getStringRes(getContext(), "multi_share");
	if (resId > 0) {
		llTitle.getTvTitle().setText(resId);
	}
	llTitle.getBtnRight().setVisibility(View.VISIBLE);
	resId = getStringRes(getContext(), "finish");
	if (resId > 0) {
		llTitle.getBtnRight().setText(resId);
	}
	llTitle.getBtnRight().setOnClickListener(this);
	llTitle.setLayoutParams(new LinearLayout.LayoutParams(
			LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
	llPage.addView(llTitle);

	FrameLayout flPage = new FrameLayout(getContext());
	LinearLayout.LayoutParams lpFl = new LinearLayout.LayoutParams(
			LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
	lpFl.weight = 1;
	flPage.setLayoutParams(lpFl);
	llPage.addView(flPage);

	// 关注(或朋友)列表
	PullToRefreshView followList = new PullToRefreshView(getContext());
	FrameLayout.LayoutParams lpLv = new FrameLayout.LayoutParams(
			LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
	followList.setLayoutParams(lpLv);
	flPage.addView(followList);
	adapter = new FollowAdapter(followList);
	adapter.setPlatform(platform);
	followList.setAdapter(adapter);
	adapter.getListView().setOnItemClickListener(this);

	ImageView ivShadow = new ImageView(getContext());
	resId = getBitmapRes(getContext(), "title_shadow");
	if (resId > 0) {
		ivShadow.setBackgroundResource(resId);
	}
	FrameLayout.LayoutParams lpSd = new FrameLayout.LayoutParams(
			LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
	ivShadow.setLayoutParams(lpSd);
	flPage.addView(ivShadow);

	// 请求数据
	followList.performPulling(true);
}
 
开发者ID:SShineTeam,项目名称:Huochexing12306,代码行数:59,代码来源:FollowList.java

示例15: getTitleLayout

import cn.sharesdk.framework.TitleLayout; //导入依赖的package包/类
public TitleLayout getTitleLayout() {
    return this.title;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:4,代码来源:QZoneWebShareAdapter.java


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