protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.room; ActionBar actionBar = ActionBar; actionBar.HomeButtonEnabled = true; actionBar.DisplayHomeAsUpEnabled = true; mSession = new MySession(this); mMessageEditText = (EditText)findViewById(R.id.message); ViewGroup preview = (ViewGroup)findViewById(R.id.preview); mSession.PreviewView = preview; mNotificationManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE); ViewPager playersView = (ViewPager)findViewById(R.id.pager); mSession.PlayersViewContainer = playersView; mSession.setMessageView((TextView)findViewById(R.id.messageView), (ScrollView)findViewById(R.id.scroller)); mSession.connect(); }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.room; ActionBar actionBar = ActionBar; actionBar.HomeButtonEnabled = true; actionBar.DisplayHomeAsUpEnabled = true; mSession = new MySession(this); mMessageEditText = (EditText) findViewById(R.id.message); ViewGroup preview = (ViewGroup) findViewById(R.id.preview); mSession.PreviewView = preview; mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); ViewPager playersView = (ViewPager) findViewById(R.id.pager); mSession.PlayersViewContainer = playersView; mSession.setMessageView((TextView) findViewById(R.id.messageView), (ScrollView) findViewById(R.id.scroller)); mSession.connect(); }