protected override void OnCreate(Bundle bundle) { base.OnCreate (bundle); SetContentView (Resource.Layout.Conversations); ImageView btns = FindViewById<ImageView> (Resource.Id.imgNewUserHeader); TextView header = FindViewById<TextView> (Resource.Id.txtFirstScreenHeader); RelativeLayout relLayout = FindViewById<RelativeLayout> (Resource.Id.relativeLayout1); ImageHelper.setupTopPanel (btns, header, relLayout, header.Context); context = header.Context; Header.headertext = Application.Context.Resources.GetString (Resource.String.converseMainTitle); Header.fontsize = 36f; ImageHelper.fontSizeInfo (header.Context); header.SetTextSize (Android.Util.ComplexUnitType.Dip, Header.fontsize); header.Text = Header.headertext; isMe = AndroidData.CurrentUser.FirstName + " " + AndroidData.CurrentUser.LastName; mmg = wowZapp.LaffOutOut.Singleton.mmg; dbm = wowZapp.LaffOutOut.Singleton.dbm; contentPackItems = new Dictionary<int,ContentPackItem> (); voiceFiles = new Dictionary<int,string> (); pollingSteps = new Dictionary<int,PollingStep> (); contacts = new Dictionary<Guid,ContactDB> (); mmg.MessageSendConfirmCompleted += MessageManager_MessageSendConfirmCompleted; wowZapp.LaffOutOut.Singleton.ReceivedMessages += AppDelegate_ReceivedMessages; ImageButton btnAdd = FindViewById<ImageButton> (Resource.Id.btnAdd); btnAdd.Tag = 2; ImageButton btnHome = FindViewById<ImageButton> (Resource.Id.btnHome); btnHome.Tag = 1; ImageButton btnBack = FindViewById<ImageButton> (Resource.Id.btnBack); btnBack.Tag = 0; LinearLayout bottom = FindViewById<LinearLayout> (Resource.Id.bottomHolder); ImageButton[] buttons = new ImageButton[3]; buttons [0] = btnBack; buttons [1] = btnHome; buttons [2] = btnAdd; ImageHelper.setupButtonsPosition (buttons, bottom, context); if (ConversationsUtil.userFrom != null) { UserDB lastFrom = ConversationInfo.GetSenderOfOldestMessage (); if (lastFrom == null) lastFrom = ConversationInfo.GetAllConversationParticipants () [0]; Header.headertext = ConversationInfo.GetConversationPartipantsNameTitle (); Header.fontsize = 36f; ImageHelper.fontSizeInfo (header.Context); header.SetTextSize (Android.Util.ComplexUnitType.Dip, Header.fontsize); header.Text = Header.headertext; LinearLayout ll4 = FindViewById<LinearLayout> (Resource.Id.linearLayout4); btnAdd.Visibility = ViewStates.Invisible; btnBack.Visibility = ViewStates.Invisible; Button btnAll = new Button (context); Rect rect = new Rect (); btnHome.GetDrawingRect (rect); int xLeft = rect.Left; int yTop = rect.Top; btnAll.Visibility = ViewStates.Invisible; btnAll.SetWidth (400); btnAll.SetHeight (200); btnAll.Gravity = GravityFlags.CenterVertical; btnAll.Layout (xLeft, yTop, 400, 200); btnAll.SetPadding (30, 20, 30, 20); btnAll.SetTextColor (Color.Black); btnAll.Text = Application.Context.Resources.GetString (Resource.String.converseShowAllBtn); btnAll.Click += new EventHandler (btnAll_Click); ll4.AddView (btnAll); ll4.Invalidate (); } RunOnUiThread (delegate { contacts = dbm.GetAllContactsForOwner (AndroidData.CurrentUser.AccountID.ToString ()).ToDictionary (s => s.ContactAccountID, s => s); GetMessageRows (); }); }