This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1160 from cocoa-mhlw/feature/survey-request-view
調査協力のお願いの画面を追加
- Loading branch information
Showing
9 changed files
with
361 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
Covid19Radar/Covid19Radar/Resources/AppResources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
Covid19Radar/Covid19Radar/ViewModels/EndOfService/SurveyRequestPageViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
using System; | ||
using Covid19Radar.Resources; | ||
using Prism.Navigation; | ||
|
||
namespace Covid19Radar.ViewModels.EndOfService | ||
{ | ||
public class SurveyRequestPageViewModel : ViewModelBase | ||
{ | ||
public string SkipAnswerButtonReadText => $"{AppResources.SurveyRequestPageSkipAnswerButton} {AppResources.Button}"; | ||
|
||
public SurveyRequestPageViewModel( | ||
INavigationService navigationService | ||
) : base(navigationService) | ||
{ | ||
} | ||
} | ||
} | ||
|
82 changes: 82 additions & 0 deletions
82
Covid19Radar/Covid19Radar/Views/EndOfService/SurveyRequestPage.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- This Source Code Form is subject to the terms of the Mozilla Public | ||
- License, v. 2.0. If a copy of the MPL was not distributed with this | ||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> | ||
<ContentPage | ||
xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" | ||
xmlns:resources="clr-namespace:Covid19Radar.Resources;assembly=Covid19Radar" | ||
xmlns:prism="http://prismlibrary.com" | ||
xmlns:endofservice="clr-namespace:Covid19Radar.ViewModels.EndOfService" | ||
x:Class="Covid19Radar.Views.EndOfService.SurveyRequestPage" | ||
x:DataType="endofservice:SurveyRequestPageViewModel" | ||
Title="{x:Static resources:AppResources.SurveyRequestPageTitle}" | ||
ios:Page.UseSafeArea="true" | ||
Style="{StaticResource DefaultPageStyle}" | ||
Visual="Material"> | ||
<ContentView> | ||
<ScrollView> | ||
<StackLayout | ||
Spacing="20" | ||
Padding="20"> | ||
<StackLayout | ||
Spacing="5"> | ||
<Label | ||
AutomationProperties.IsInAccessibleTree="True" | ||
Style="{StaticResource DefaultLabelBold}" | ||
Text="{x:Static resources:AppResources.SurveyRequestPageRequestCooperationTitle}" /> | ||
<Label | ||
AutomationProperties.IsInAccessibleTree="True" | ||
Style="{StaticResource DefaultLabel}" | ||
Text="{x:Static resources:AppResources.SurveyRequestPageRequestCooperationDescription1}" /> | ||
</StackLayout> | ||
<StackLayout | ||
Spacing="5"> | ||
<Label | ||
AutomationProperties.IsInAccessibleTree="True" | ||
Style="{StaticResource DefaultLabelBold}" | ||
Text="{x:Static resources:AppResources.SurveyRequestPagePurposeTitle}" /> | ||
<Label | ||
AutomationProperties.IsInAccessibleTree="True" | ||
Style="{StaticResource DefaultLabel}" | ||
Text="{x:Static resources:AppResources.SurveyRequestPagePurposeDescription1}" /> | ||
</StackLayout> | ||
<StackLayout | ||
Spacing="5"> | ||
<Label | ||
AutomationProperties.IsInAccessibleTree="True" | ||
Style="{StaticResource DefaultLabelSmall}" | ||
Text="{x:Static resources:AppResources.SurveyRequestPageBulletedList1}" /> | ||
<Label | ||
AutomationProperties.IsInAccessibleTree="True" | ||
Style="{StaticResource DefaultLabelSmall}" | ||
Text="{x:Static resources:AppResources.SurveyRequestPageBulletedList2}" /> | ||
<Label | ||
AutomationProperties.IsInAccessibleTree="True" | ||
Style="{StaticResource DefaultLabelSmall}" | ||
Text="{x:Static resources:AppResources.SurveyRequestPageBulletedList3}" /> | ||
<Label | ||
AutomationProperties.IsInAccessibleTree="True" | ||
Style="{StaticResource DefaultLabelSmall}" | ||
Text="{x:Static resources:AppResources.SurveyRequestPageBulletedList4}" /> | ||
</StackLayout> | ||
<Button | ||
AutomationProperties.IsInAccessibleTree="True" | ||
Style="{StaticResource DefaultButton}" | ||
Text="{x:Static resources:AppResources.SurveyRequestPageToAnswerButton}" /> | ||
<Label | ||
AutomationProperties.IsInAccessibleTree="True" | ||
AutomationProperties.Name="{Binding SkipAnswerButtonReadText}" | ||
HorizontalOptions="Center" | ||
Style="{StaticResource LinkLabelStyleMedium}" | ||
Text="{x:Static resources:AppResources.SurveyRequestPageSkipAnswerButton}"> | ||
<Label.GestureRecognizers> | ||
<TapGestureRecognizer Command="{prism:NavigateTo 'TerminationOfUsePage'}" /> | ||
</Label.GestureRecognizers> | ||
</Label> | ||
</StackLayout> | ||
</ScrollView> | ||
</ContentView> | ||
</ContentPage> | ||
|
19 changes: 19 additions & 0 deletions
19
Covid19Radar/Covid19Radar/Views/EndOfService/SurveyRequestPage.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
using Xamarin.Forms; | ||
|
||
namespace Covid19Radar.Views.EndOfService | ||
{ | ||
public partial class SurveyRequestPage : ContentPage | ||
{ | ||
public SurveyRequestPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters