private void SetTexts()
 {
     HeaderLabel.SetAttributedText(HEADER_TEXT);
     BodyText1.SetAttributedText(CONSENT3_BODYTEXT_1);
     StyleUtil.InitLabel(ShareHeader, StyleUtil.FontType.FontBold, CONSENT3_SHAREDATA_HEADER, 16, 22);
     BodyText2.SetAttributedText(CONSENT3_BODYTEXT_2);
     ConsentEU_Explanation.SetAttributedText(CONSENT3_EU_CONSENT_BUTTON_BODYTEXT);
     Consent_onlyNorway_Explanation.SetAttributedText(CONSENT3_ONLY_NORWAY_CONSENT_BUTTON_BODYTEXT);
     StyleUtil.InitLabel(ConsentText, StyleUtil.FontType.FontItalic, CONSENT3_CONSENTTOSHARE, 16, 22);
 }
Exemple #2
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     StyleUtil.InitButtonStyling(StartButton, InitializerViewModel.LAUNCHER_PAGE_START_BTN);
     StyleUtil.InitLabel(ContinueInEnLbl, StyleUtil.FontType.FontSemiBold, InitializerViewModel.LAUNCHER_PAGE_CONTINUE_IN_ENG, 16, 24);
     ContinueInEnLbl.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND;
     StyleUtil.InitLabel(InitializerAppName, StyleUtil.FontType.FontBold, InitializerViewModel.LAUNCHER_PAGE_TITLE, 50, 50);
     InitializerAppName.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND;
     HeaderView.SizeToFit();
 }
Exemple #3
0
        void SetupStyling()
        {
            NewIndicatorView.Layer.CornerRadius = NewIndicatorView.Layer.Frame.Height / 2;
            ActivityExplainerLbl.Font           = StyleUtil.Font(StyleUtil.FontType.FontMedium, 18, 22);
            ActivityExplainerLbl.Text           = InfectionStatusViewModel.INFECTION_STATUS_ACTIVITY_STATUS_DESCRIPTION_TEXT;
            MenuIcon.AccessibilityLabel         = InfectionStatusViewModel.INFECTION_STATUS_MENU_ACCESSIBILITY_TEXT;
            MenuIcon.TitleEdgeInsets            = new UIEdgeInsets(0, -8, 0, 0);
            MenuIcon.SetTitle(InfectionStatusViewModel.INFECTION_STATUS_MENU_TEXT, UIControlState.Normal);
            MenuIcon.Font = StyleUtil.Font(StyleUtil.FontType.FontRegular, 18f, 18f);
            MenuIcon.SizeToFit();
            StyleUtil.InitLabel(StatusHeader, StyleUtil.FontType.FontBold, InfectionStatusViewModel.INFECTION_STATUS_PAGE_TITLE, 22f, 26f);
            StatusText.Font             = StyleUtil.Font(StyleUtil.FontType.FontRegular, 16f, 20f);
            OnOffBtn.Font               = StyleUtil.Font(StyleUtil.FontType.FontBold, 22f, 28f);
            OnOffBtn.ContentEdgeInsets  = new UIEdgeInsets(12, 12, 12, 12);
            OnOffBtn.Layer.CornerRadius = 8;

            SetupEncounterAndInfectedButtons();
        }