-Microsoft Visual Studio Solution File, Format Version 12.00\r
-# Visual Studio Version 16\r
-VisualStudioVersion = 16.0.31005.135\r
+\r
+Microsoft Visual Studio Solution File, Format Version 12.00\r
+# Visual Studio Version 17\r
+VisualStudioVersion = 17.7.34031.279\r
MinimumVisualStudioVersion = 10.0.40219.1\r
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SettingInputmethod", "SettingInputmethod\SettingInputmethod.csproj", "{e3e4b807-eb5b-4ebb-9078-968c852640a7}"\r
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SettingInputmethod", "SettingInputmethod\SettingInputmethod.csproj", "{E3E4B807-EB5B-4EBB-9078-968C852640A7}"\r
EndProject\r
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{f95ba813-baec-4eaf-b930-b88a794ea91e}"\r
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F95BA813-BAEC-4EAF-B930-B88A794EA91E}"\r
ProjectSection(SolutionItems) = preProject\r
tizen_workspace.yaml = tizen_workspace.yaml\r
EndProjectSection\r
Release|Any CPU = Release|Any CPU\r
EndGlobalSection\r
GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
- {e3e4b807-eb5b-4ebb-9078-968c852640a7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
- {e3e4b807-eb5b-4ebb-9078-968c852640a7}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
- {e3e4b807-eb5b-4ebb-9078-968c852640a7}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
- {e3e4b807-eb5b-4ebb-9078-968c852640a7}.Release|Any CPU.Build.0 = Release|Any CPU\r
-\r
+ {E3E4B807-EB5B-4EBB-9078-968C852640A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
+ {E3E4B807-EB5B-4EBB-9078-968C852640A7}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+ {E3E4B807-EB5B-4EBB-9078-968C852640A7}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
+ {E3E4B807-EB5B-4EBB-9078-968C852640A7}.Release|Any CPU.Build.0 = Release|Any CPU\r
EndGlobalSection\r
GlobalSection(SolutionProperties) = preSolution\r
HideSolutionNode = FALSE\r
EndGlobalSection\r
+ GlobalSection(ExtensibilityGlobals) = postSolution\r
+ SolutionGuid = {08BFEED7-C78F-4EFA-ADA0-8F7341ADF7FF}\r
+ EndGlobalSection\r
EndGlobal\r
using System.Runtime.InteropServices;
using System.Collections.ObjectModel;
using Tizen;
+using SettingCore.Views;
namespace SettingInputmethod
{
private static List<ImeInformationStruct> imeList;
private static List<string> labelList;
private int currentIndex = -1;
- private int pickerIndex = 0;
protected override View OnCreate()
{
Layout = new LinearLayout()
{
LinearOrientation = LinearLayout.Orientation.Vertical,
- VerticalAlignment = VerticalAlignment.Center,
- HorizontalAlignment = HorizontalAlignment.Center,
},
};
labelList.Add(ImeInfo.label);
if (string.Compare(defaultIse, ImeInfo.appId, false) == 0)
- pickerIndex = i + 1;
+ currentIndex = i;
}
}
- var picker = new Picker()
+ RadioButtonGroup radioButtonGroup = new RadioButtonGroup();
+ for (int i = 0; i < labelList.Count; i++)
{
- SizeWidth = (float)(NUIApplication.GetDefaultWindow().Size.Width * 0.7),
- SizeHeight = (float)(NUIApplication.GetDefaultWindow().Size.Height * 0.54),
- MinValue = 1,
- MaxValue = imeList.Count,
- CurrentValue = pickerIndex,
- DisplayedValues = new ReadOnlyCollection<string>(labelList),
- };
-
- picker.ValueChanged += (sender, e) =>
- {
- Log.Debug(LogTag, "current index : " + e.Value.ToString());
- currentIndex = e.Value - 1;
- };
+ RadioButtonListItem item = new RadioButtonListItem(labelList[i]);
+ item.RadioButton.IsSelected = i.Equals(currentIndex);
- var button = new Button()
- {
- Text = Resource.Resources.IDS_COM_SK_OK_ABB,
- };
+ radioButtonGroup.Add(item.RadioButton);
+ scrollableContent.Add(item);
+ }
- button.Clicked += (sender, e) =>
+ radioButtonGroup.SelectedChanged += (sender, e) =>
{
- if (currentIndex > -1 && String.Compare(defaultIse, imeList[currentIndex].appId) != 0)
- {
- Log.Debug(LogTag, "new keyboard : " + labelList[currentIndex]);
- IsfControlSetActiveIme(imeList[currentIndex].appId);
- }
-
- NavigateBack();
+ Log.Debug(LogTag, "new keyboard : " + labelList[radioButtonGroup.SelectedIndex]);
+ IsfControlSetActiveIme(imeList[radioButtonGroup.SelectedIndex].appId);
};
- scrollableContent.Add(picker);
- scrollableContent.Add(button);
-
return scrollableContent;
}
}