protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.layout_textchat_activity; mLoadingBar = (ProgressBar) findViewById(R.id.load_spinner); mLoadingBar.Visibility = View.VISIBLE; sessionConnect(); }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.layout_textchat_activity; mLoadingBar = (ProgressBar)findViewById(R.id.load_spinner); mLoadingBar.Visibility = View.VISIBLE; sessionConnect(); }
public override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_asynctask, container, false); logsView = (LinearLayout)rootView.findViewById(R.id.logs); progressView = (ProgressBar)rootView.findViewById(R.id.progressBar); progressView.Visibility = View.GONE; rootView.findViewById(R.id.start_button).OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); return(rootView); }
public override void addView(android.view.View child, int index, android.view.ViewGroup .LayoutParams @params) { base.addView(child, index, @params); int childId = child.getId(); if (childId == CHRONOMETER_ID && child is android.widget.Chronometer) { mChronometer = (android.widget.Chronometer)child; mChronometer.setOnChronometerTickListener(this); // Check if Chronometer should move with with ProgressBar mChronometerFollow = (@params.width == android.view.ViewGroup.LayoutParams.WRAP_CONTENT ); mChronometerGravity = (mChronometer.getGravity() & android.view.Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK ); } else { if (childId == PROGRESSBAR_ID && child is android.widget.ProgressBar) { mProgressBar = (android.widget.ProgressBar)child; } } }