Java Code Examples for android.widget.LinearLayout.inflate()

The following are Jave code examples for showing how to use inflate() of the android.widget.LinearLayout class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: HiBangClient   File: DialogLoading.java   View Source Code Vote up 5 votes
private void init() {
	mAlertDialog = new Dialog(context);
	mAlertDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
	mAlertDialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));

	LinearLayout alertLayout = (LinearLayout) LinearLayout.inflate(
			context, R.layout.waiting_dialog, null);

	TextView alertHeader = (TextView) alertLayout
			.findViewById(R.id.waiting_title);
	alertHeader.setText(title);
	
	mAlertDialog.setCanceledOnTouchOutside(false);
	mAlertDialog.setContentView(alertLayout);
}
 
Example 2
Project: ucar-weex-core   File: UWXNavBar.java   View Source Code Vote up 4 votes
private void init() {
    View view = LinearLayout.inflate(getContext(), R.layout.nav_bar_view, this);
    textBack = (TextView) view.findViewById(R.id.text_back);
    textBack.setTypeface(UWXApplication.getIconFont());
    textBack.setText(R.string.icon_back);
}
 
Example 3
Project: MySelfDemo   File: PopularController.java   View Source Code Vote up 4 votes
public void createView(int layoutId) {
    contentView = null;
    this.contentView = LinearLayout.inflate(context, layoutId, null);
    initContentView();
}