コード例 #1
0
		private void UpdateLabels(LocalisationType locType)
		{
			LocType = locType;
			this.InvokeOnMainThread(()=>
            {
				globalBtn.Hidden = locType == LocalisationType.Global;
				localBtn.Hidden = locType == LocalisationType.Local;

				for (int i = 0; i < mediaViews.Count; i++)
				{
					mediaViews[i].Root[0].Caption = GetSubTitle(LocType, i + 1);
				}

				/*
				likedMediaView.Root[0].Caption = GetSubTitle(LocType, 1);
				friendsMediaView.Root[0].Caption = GetSubTitle(LocType, 2);
				recentMediaView.Root[0].Caption = GetSubTitle(LocType, 3);
				eventsMediaView.Root[0].Caption = GetSubTitle(LocType, 4);
				*/
			});
			
			if (locType == LocalisationType.Global)
				UIUtils.SetTitle("global", "posts around the world", titleTxt, null);
			
			if (locType == LocalisationType.Local)
				UIUtils.SetTitle("local", "posts around you", titleTxt, null);				
		}		
コード例 #2
0
		public static string GetSubTitle(LocalisationType locType, int screen)
		{
			if (locType == LocalisationType.Global)
			{				
				if (screen == 1) return "       trendy posts worldwide       >";
				if (screen == 2) return "<       friend's posts worldwide     >";
				if (screen == 3) return "<        recent posts worldwide      >";
				if (screen == 4) return "<       recent events worldwide";
			}
			if (locType == LocalisationType.Local)
			{
				if (screen == 1) return "      trendy posts around you        >";
				if (screen == 2) return "<     friend's posts around you    >";
				if (screen == 3) return "<       recent posts around you     >";
				if (screen == 4) return "<      recent events around you";
			}
			return string.Empty;
		}