author int64 658 755k | date stringlengths 19 19 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods list | language stringclasses 20 values | license stringclasses 3 values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
594,278 | 03.09.2020 18:41:51 | -28,800 | e4891b88e4bce4ea34095cc6b174cc30e9d37256 | [TV/AnimationSample] Replace ClickEvent by Clicked. | [
{
"change_type": "MODIFY",
"old_path": "TV/AnimationSample/AnimationSample/src/AnimationSample.cs",
"new_path": "TV/AnimationSample/AnimationSample/src/AnimationSample.cs",
"diff": "*/\nusing System;\n-using Tizen;\n-using System.Runtime.InteropServices;\nusing Tizen.NUI;\nusing Tizen.NUI.Components;\nusing Tizen.NUI.BaseComponents;\n-using Tizen.NUI.Constants;\nnamespace AnimationSample\n{\n@@ -103,22 +100,22 @@ namespace AnimationSample\n_opacityButton = CreateButton(\"Opacity\", \"OpacityAnimation\");\n_pixelAreaButton = CreateButton(\"PixelArea\", \"PixelAreaAnimation\");\n_PositionSizeOpacity = CreateButton(\"PositionSizeOpacity\", \"Position + Size + Opacity animation at same time!\");\n- _PositionSizeOpacity.Size2D = new Size2D(1400, 80);\n+ _PositionSizeOpacity.Size = new Size(1400, 80);\n//Set the callback of button's clicked event\n- _positionButton.ClickEvent += ButtonClick;\n- _sizeButton.ClickEvent += ButtonClick;\n- _scaleButton.ClickEvent += ButtonClick;\n- _orientationButton.ClickEvent += ButtonClick;\n- _opacityButton.ClickEvent += ButtonClick;\n- _pixelAreaButton.ClickEvent += ButtonClick;\n- _PositionSizeOpacity.ClickEvent += ButtonClick;\n+ _positionButton.Clicked += ButtonClick;\n+ _sizeButton.Clicked += ButtonClick;\n+ _scaleButton.Clicked += ButtonClick;\n+ _orientationButton.Clicked += ButtonClick;\n+ _opacityButton.Clicked += ButtonClick;\n+ _pixelAreaButton.Clicked += ButtonClick;\n+ _PositionSizeOpacity.Clicked += ButtonClick;\n//Create a tableView as the container of the pushButton.\nTableView tableView = new TableView(3, 3);\n- tableView.Size2D = new Size2D(1500, 440);\n+ tableView.Size = new Size(1500, 440);\ntableView.PivotPoint = PivotPoint.TopLeft;\ntableView.ParentOrigin = ParentOrigin.TopLeft;\n- tableView.Position2D = new Position2D(260, 630);\n+ tableView.Position = new Position(260, 630);\ntableView.AddChild(_positionButton, new TableView.CellPosition(0, 0));\ntableView.AddChild(_sizeButton, new TableView.CellPosition(0, 1));\n@@ -140,9 +137,9 @@ namespace AnimationSample\nguide.PositionUsesPivotPoint = true;\nguide.ParentOrigin = ParentOrigin.TopLeft;\nguide.PivotPoint = PivotPoint.TopLeft;\n- guide.Size2D = new Size2D(1920, 96);\n+ guide.Size = new Size(1920, 96);\nguide.FontFamily = \"Samsung One 600\";\n- guide.Position2D = new Position2D(0, 94);\n+ guide.Position = new Position(0, 94);\nguide.MultiLine = false;\n//guide.PointSize = 15.0f;\nguide.PointSize = PointSize15;\n@@ -152,7 +149,7 @@ namespace AnimationSample\n// Create the view to animate.\nview = new ImageView();\n- view.Size2D = new Size2D(200, 200);\n+ view.Size = new Size(200, 200);\nview.Position = new Position(860, 275, 0);\nview.PositionUsesPivotPoint = true;\nview.PivotPoint = PivotPoint.TopLeft;\n@@ -383,6 +380,7 @@ namespace AnimationSample\nbutton.Name = name;\nbutton.Text = text;\nbutton.TextColor = Color.White;\n+ button.BackgroundImage = normalImagePath;\n// Chang background Visual and Label when focus gained.\nbutton.FocusGained += (obj, e) =>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [TV/AnimationSample] Replace ClickEvent by Clicked. |
594,261 | 10.09.2020 17:51:07 | -32,400 | da1111bbf7372c6b17c36b4502f104bdf8b64e18 | Update build.sh file to be used for ahub | [
{
"change_type": "MODIFY",
"old_path": "build.sh",
"new_path": "build.sh",
"diff": "#!/bin/bash\n-rm build_result.txt\n-\nfor file in $(find ./ -name \"*.sln\"); do\n- echo \"$file\"\n- sudo dotnet clean \"./$file\"\n- sudo dotnet clean \"---------------------------------------------------------------------------------------\" >> build_result.txt\n- sudo dotnet build \"./$file\" >> build_result.txt\n+ dotnet build \"./$file\"\ndone\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Update build.sh file to be used for ahub
Signed-off-by: Sunggyu Choi <sunggyu.choi@samsung.com> |
594,278 | 17.09.2020 20:36:59 | -28,800 | b36e4a78cfc933838c94f01bb4d48ac95fd8aacc | [TV] Update ImageSample and FlexContainerSample. | [
{
"change_type": "MODIFY",
"old_path": "TV/FlexContainerSample/FlexContainerSample/src/FlexContainerSample.cs",
"new_path": "TV/FlexContainerSample/FlexContainerSample/src/FlexContainerSample.cs",
"diff": "@@ -75,7 +75,6 @@ namespace FlexContainerSample\nguide.FontFamily = \"Samsung One 600\";\nguide.Position = new Position(0, 94);\nguide.MultiLine = false;\n- //guide.PointSize = 15.0f;\nguide.PointSize = DeviceCheck.PointSize15;\nguide.Text = \"FlexContainer Sample \\n\";\nguide.TextColor = Color.White;\n@@ -88,7 +87,7 @@ namespace FlexContainerSample\nPositionUsesPivotPoint = true,\nPivotPoint = PivotPoint.TopLeft,\nParentOrigin = ParentOrigin.TopLeft,\n- Position = new Position(710, 275, 0),\n+ Position = new Position(710, 275),\nSize = new Size(400, 400),\nBackgroundColor = Color.White,\nLayoutDirection = ViewLayoutDirectionType.LTR,\n@@ -111,7 +110,6 @@ namespace FlexContainerSample\nflexItem.ParentOrigin = ParentOrigin.TopLeft;\n// Set different background colour to help to identify different items\nflexItem.BackgroundColor = new Vector4(((float)i) / NUM_FLEX_ITEMS, ((float)(NUM_FLEX_ITEMS - i)) / NUM_FLEX_ITEMS, 1.0f, 1.0f);\n- //flexItem.Text = i + \"\";\nflexItem.Name = i + \"\";\nflexItem.HorizontalAlignment = HorizontalAlignment.Center;\nflexItem.VerticalAlignment = VerticalAlignment.Center;\n@@ -133,7 +131,6 @@ namespace FlexContainerSample\ntableView.SizeHeight = 180;\ntableView.PivotPoint = PivotPoint.TopLeft;\ntableView.ParentOrigin = ParentOrigin.TopLeft;\n- //tableView.CellPadding = new Vector2(15, 10);\nWindow.Instance.GetDefaultLayer().Add(tableView);\nstring[] btnName = { \"ContentDirection\", \"FlexDirection\", \"FlexWrap\", \"JustifyContent\", \"AlignItems\", \"AlignContent\" };\n@@ -427,7 +424,6 @@ namespace FlexContainerSample\ntextVisual.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));\ntextVisual.Add(TextVisualProperty.Text, new PropertyValue(text));\ntextVisual.Add(TextVisualProperty.TextColor, new PropertyValue(Color.Black));\n- //textVisual.Add(TextVisualProperty.PointSize, new PropertyValue(7));\ntextVisual.Add(TextVisualProperty.PointSize, new PropertyValue(DeviceCheck.PointSize7));\ntextVisual.Add(TextVisualProperty.HorizontalAlignment, new PropertyValue(\"CENTER\"));\ntextVisual.Add(TextVisualProperty.VerticalAlignment, new PropertyValue(\"CENTER\"));\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/ImageSample/ImageSample/src/Devices.cs",
"new_path": "TV/ImageSample/ImageSample/src/Devices.cs",
"diff": "*\n*/\n-using System;\n-using System.Collections.Generic;\n-using System.Text;\nusing Tizen.NUI;\nnamespace ImageSample\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/ImageSample/ImageSample/src/IExample.cs",
"new_path": "TV/ImageSample/ImageSample/src/IExample.cs",
"diff": "*\n*/\n-using System;\n-using System.Collections.Generic;\n-using System.Text;\n-\nnamespace ImageSample\n{\n/// <summary>\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/ImageSample/ImageSample/src/ImageSample.cs",
"new_path": "TV/ImageSample/ImageSample/src/ImageSample.cs",
"diff": "*/\nusing System;\n-using System.Runtime.InteropServices;\nusing Tizen.NUI;\nusing Tizen.NUI.Components;\nusing Tizen.NUI.BaseComponents;\n-using Tizen.NUI.Constants;\nusing Tizen;\nnamespace ImageSample\n@@ -96,15 +94,13 @@ namespace ImageSample\nguide.PositionUsesPivotPoint = true;\nguide.ParentOrigin = ParentOrigin.TopLeft;\nguide.PivotPoint = PivotPoint.TopLeft;\n- guide.Size2D = new Size2D(1920, 96);\n+ guide.Size = new Size(1920, 96);\nguide.FontFamily = \"Samsung One 600\";\n- guide.Position2D = new Position2D(0, 94);\n+ guide.Position = new Position(0, 94);\nguide.MultiLine = false;\n- //guide.PointSize = 15.0f;\nguide.PointSize = DeviceCheck.PointSize15;\nguide.Text = \"Image Sample \\n\";\nguide.TextColor = Color.White;\n- //guide.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);\nbackGroundView.Add(guide);\nPopulate();\n@@ -119,21 +115,18 @@ namespace ImageSample\nprivate void Populate()\n{\nVector2 stagesize = Window.Instance.Size;\n- //mTotalPages = (numOfSamples + EXAMPLES_PER_ROW * ROWS_PER_PAGE - 1) / (EXAMPLES_PER_ROW * ROWS_PER_PAGE);\ntableView = new TableView(ROWS_PER_PAGE, EXAMPLES_PER_ROW);\nbuttons = new Button[numOfSamples];\ntableView.PositionUsesPivotPoint = true;\n- //tableView.BackgroundColor = Color.White;\n- tableView.Size2D = new Size2D(1500, 400);\n+ tableView.Size = new Size(1500, 400);\ntableView.PivotPoint = PivotPoint.TopLeft;\ntableView.ParentOrigin = ParentOrigin.TopLeft;\n- tableView.Position2D = new Position2D(210, 390);\n+ tableView.Position = new Position(210, 390);\n+ tableView.CellPadding = new Size2D(10, 20);\nbackGroundView.Add(tableView);\nint iter = 0;\n- ushort margin = 20;\n- ushort topmargin = 30;\nfloat tileParentMultiplier = 1.0f / EXAMPLES_PER_ROW;\nfor (uint row = 0; row < ROWS_PER_PAGE; row++)\n{\n@@ -142,7 +135,6 @@ namespace ImageSample\n// Calculate the position of each button\nVector2 position = new Vector2(column / (EXAMPLES_PER_ROW - 1.0f), row / (EXAMPLES_PER_ROW - 1.0f));\nbuttons[iter] = CreateTile(samples[iter], samples[iter], new Vector3(tileParentMultiplier, tileParentMultiplier, 1.0f), position);\n- buttons[iter].Padding = new Extents(margin, margin, topmargin, topmargin);\ntableView.AddChild(buttons[iter], new TableView.CellPosition(row, column));\niter++;\nif (iter == numOfSamples)\n@@ -181,7 +173,6 @@ namespace ImageSample\nmap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));\nmap.Add(TextVisualProperty.Text, new PropertyValue(text));\nmap.Add(TextVisualProperty.TextColor, new PropertyValue(color));\n- //map.Add(TextVisualProperty.PointSize, new PropertyValue(8.0f));\nmap.Add(TextVisualProperty.PointSize, new PropertyValue(DeviceCheck.PointSize8));\nmap.Add(TextVisualProperty.HorizontalAlignment, new PropertyValue(\"CENTER\"));\nmap.Add(TextVisualProperty.VerticalAlignment, new PropertyValue(\"CENTER\"));\n@@ -206,9 +197,10 @@ namespace ImageSample\n{\nButton button = new Button();\nbutton.Focusable = true;\n- button.Size2D = new Size2D(400, 80);\n+ button.Size = new Size(400, 80);\nbutton.Focusable = true;\nbutton.Name = name;\n+ button.Text = text;\nbutton.BackgroundImage = normalImagePath;\nbutton.TextColor = Color.White;\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/ImageSample/ImageSample/src/Program.cs",
"new_path": "TV/ImageSample/ImageSample/src/Program.cs",
"diff": "*\n*/\n-using System;\nusing Tizen;\nnamespace ImageSample\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/ImageSample/ImageSample/src/Samples/FittingModeSample.cs",
"new_path": "TV/ImageSample/ImageSample/src/Samples/FittingModeSample.cs",
"diff": "*/\nusing System;\n-using Tizen;\n-using System.Runtime.InteropServices;\nusing Tizen.NUI;\nusing Tizen.NUI.Components;\nusing Tizen.NUI.BaseComponents;\n-using Tizen.NUI.Constants;\nnamespace ImageSample\n{\n@@ -64,20 +61,18 @@ namespace ImageSample\nguide.PositionUsesPivotPoint = true;\nguide.ParentOrigin = ParentOrigin.TopLeft;\nguide.PivotPoint = PivotPoint.TopLeft;\n- guide.Size2D = new Size2D(1920, 96);\n+ guide.Size = new Size(1920, 96);\nguide.FontFamily = \"Samsung One 600\";\n- guide.Position2D = new Position2D(0, 94);\n+ guide.Position = new Position(0, 94);\nguide.MultiLine = false;\n- //guide.PointSize = 15.0f;\nguide.PointSize = DeviceCheck.PointSize15;\nguide.Text = \"FittingMode Sample \\n\";\nguide.TextColor = Color.White;\n- //guide.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);\nWindow.Instance.GetDefaultLayer().Add(guide);\n//Create an imageView instance to show the fittingMode property.\nimage = new ImageView();\n- image.Size2D = new Size2D(200, 200);\n+ image.Size = new Size(200, 200);\npngImageMap = new PropertyMap();\npngImageMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image))\n.Add(ImageVisualProperty.URL, new PropertyValue(image_png))\n@@ -90,7 +85,7 @@ namespace ImageSample\nimage.PositionUsesPivotPoint = true;\nimage.PivotPoint = PivotPoint.TopLeft;\nimage.ParentOrigin = ParentOrigin.TopLeft;\n- image.Position2D = new Position2D(860, 400);\n+ image.Position = new Position(860, 400);\n//Add the imageView to window.\nWindow.Instance.GetDefaultLayer().Add(image);\n@@ -101,9 +96,8 @@ namespace ImageSample\nfittingModeButton.PositionUsesPivotPoint = true;\nfittingModeButton.PivotPoint = PivotPoint.TopLeft;\nfittingModeButton.ParentOrigin = ParentOrigin.TopLeft;\n- fittingModeButton.Position2D = new Position2D(660, 700);\n- //fittingModeButton.Position2D = image.Position2D + new Position2D(-150, (int)image.SizeHeight / 2 + 300);\n- fittingModeButton.ClickEvent += FittingModeButtonClick;\n+ fittingModeButton.Position = new Position(660, 700);\n+ fittingModeButton.Clicked += FittingModeButtonClick;\nfittingModeButton.Focusable = true;\nWindow.Instance.GetDefaultLayer().Add(fittingModeButton);\nFocusManager.Instance.SetCurrentFocusView(fittingModeButton);\n@@ -197,7 +191,6 @@ namespace ImageSample\ntextVisual.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));\ntextVisual.Add(TextVisualProperty.Text, new PropertyValue(text));\ntextVisual.Add(TextVisualProperty.TextColor, new PropertyValue(Color.Black));\n- //textVisual.Add(TextVisualProperty.PointSize, new PropertyValue(8));\ntextVisual.Add(TextVisualProperty.PointSize, new PropertyValue(DeviceCheck.PointSize8));\ntextVisual.Add(TextVisualProperty.HorizontalAlignment, new PropertyValue(\"CENTER\"));\ntextVisual.Add(TextVisualProperty.VerticalAlignment, new PropertyValue(\"CENTER\"));\n@@ -217,7 +210,6 @@ namespace ImageSample\nmap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));\nmap.Add(TextVisualProperty.Text, new PropertyValue(text));\nmap.Add(TextVisualProperty.TextColor, new PropertyValue(color));\n- //map.Add(TextVisualProperty.PointSize, new PropertyValue(8.0f));\nmap.Add(TextVisualProperty.PointSize, new PropertyValue(DeviceCheck.PointSize8));\nmap.Add(TextVisualProperty.HorizontalAlignment, new PropertyValue(\"CENTER\"));\nmap.Add(TextVisualProperty.VerticalAlignment, new PropertyValue(\"CENTER\"));\n@@ -242,9 +234,10 @@ namespace ImageSample\n{\nButton button = new Button();\nbutton.Focusable = true;\n- button.Size2D = new Size2D(600, 80);\n+ button.Size = new Size(600, 80);\nbutton.Focusable = true;\nbutton.Name = name;\n+ button.Text = text;\nbutton.TextColor = Color.White;\nbutton.BackgroundImage = normalImagePath;\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/ImageSample/ImageSample/src/Samples/GifSample.cs",
"new_path": "TV/ImageSample/ImageSample/src/Samples/GifSample.cs",
"diff": "*/\nusing System;\n-using Tizen;\n-using System.Runtime.InteropServices;\nusing Tizen.NUI;\n-using Tizen.NUI.UIComponents;\nusing Tizen.NUI.BaseComponents;\n-using Tizen.NUI.Constants;\nnamespace ImageSample\n{\n@@ -55,15 +51,13 @@ namespace ImageSample\nguide.PositionUsesPivotPoint = true;\nguide.ParentOrigin = ParentOrigin.TopLeft;\nguide.PivotPoint = PivotPoint.TopLeft;\n- guide.Size2D = new Size2D(1920, 96);\n+ guide.Size = new Size(1920, 96);\nguide.FontFamily = \"Samsung One 600\";\n- guide.Position2D = new Position2D(0, 94);\n+ guide.Position = new Position(0, 94);\nguide.MultiLine = false;\n- //guide.PointSize = 15.0f;\nguide.PointSize = DeviceCheck.PointSize15;\nguide.Text = \"Gif Sample \\n\";\nguide.TextColor = Color.White;\n- //guide.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);\nWindow.Instance.GetDefaultLayer().Add(guide);\n// Create a imageView who will show gif image\n@@ -73,7 +67,7 @@ namespace ImageSample\nanimatedImage.PositionUsesPivotPoint = true;\nanimatedImage.PivotPoint = PivotPoint.TopLeft;\nanimatedImage.ParentOrigin = ParentOrigin.TopLeft;\n- animatedImage.Position2D = new Position2D(860, 490);\n+ animatedImage.Position = new Position(860, 490);\nPropertyMap map = new PropertyMap();\nmap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.AnimatedImage))\n.Add(ImageVisualProperty.URL, new PropertyValue(image_gif))\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/ImageSample/ImageSample/src/Samples/MaskSample.cs",
"new_path": "TV/ImageSample/ImageSample/src/Samples/MaskSample.cs",
"diff": "*\n*/\n-using System;\n-using Tizen;\n-using System.Runtime.InteropServices;\nusing Tizen.NUI;\n-using Tizen.NUI.UIComponents;\nusing Tizen.NUI.BaseComponents;\n-using Tizen.NUI.Constants;\nnamespace ImageSample\n{\n@@ -58,27 +53,24 @@ namespace ImageSample\nguide.PositionUsesPivotPoint = true;\nguide.ParentOrigin = ParentOrigin.TopLeft;\nguide.PivotPoint = PivotPoint.TopLeft;\n- guide.Size2D = new Size2D(1920, 96);\n+ guide.Size = new Size(1920, 96);\nguide.FontFamily = \"Samsung One 600\";\n- guide.Position2D = new Position2D(0, 94);\n+ guide.Position = new Position(0, 94);\nguide.MultiLine = false;\n- //guide.PointSize = 15.0f;\nguide.PointSize = DeviceCheck.PointSize15;\nguide.Text = \"Mask Sample \\n\";\nguide.TextColor = Color.White;\n- //guide.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);\nWindow.Instance.GetDefaultLayer().Add(guide);\nuserGuide = new TextLabel();\n- userGuide.HorizontalAlignment = HorizontalAlignment.Begin;\n+ userGuide.HorizontalAlignment = HorizontalAlignment.Center;\nuserGuide.VerticalAlignment = VerticalAlignment.Top;\nuserGuide.PositionUsesPivotPoint = true;\nuserGuide.ParentOrigin = ParentOrigin.TopLeft;\nuserGuide.PivotPoint = PivotPoint.TopLeft;\nuserGuide.FontFamily = \"Samsung One 400\";\n- userGuide.Position = new Position(30, 275, 0);\n+ userGuide.Position = new Position(30, 275);\nuserGuide.MultiLine = true;\n- //userGuide.PointSize = 10.0f;\nuserGuide.PointSize = DeviceCheck.PointSize10;\nuserGuide.Text = \"The following two ImageView are created with the same image file, and right one with mask effect.\\n\";\nuserGuide.TextColor = Color.White;\n@@ -87,8 +79,8 @@ namespace ImageSample\n//Create ImageView to show the normal image\nimageView = new ImageView();\n- imageView.Size2D = new Size2D(418, 418);\n- imageView.Position = new Position(400, 380, 0);\n+ imageView.Size = new Size(418, 418);\n+ imageView.Position = new Position(400, 380);\nimageView.PivotPoint = Tizen.NUI.PivotPoint.TopLeft;\nimageView.Opacity = 1.0f;\nPropertyMap propertyMap = new PropertyMap();\n@@ -102,8 +94,8 @@ namespace ImageSample\n//Create image to show the image which with mask effect.\nbgImage = new ImageView();\n- bgImage.Size2D = new Size2D(418, 418);\n- bgImage.Position = new Position(1102, 380, 0);\n+ bgImage.Size = new Size(418, 418);\n+ bgImage.Position = new Position(1102, 380);\nbgImage.PivotPoint = Tizen.NUI.PivotPoint.TopLeft;\nbgImage.Opacity = 1.0f;\nPropertyMap maskMap = new PropertyMap();\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/ImageSample/ImageSample/src/Samples/NinePatchSample.cs",
"new_path": "TV/ImageSample/ImageSample/src/Samples/NinePatchSample.cs",
"diff": "*\n*/\n-using System;\n-using Tizen;\n-using System.Runtime.InteropServices;\nusing Tizen.NUI;\n-using Tizen.NUI.UIComponents;\nusing Tizen.NUI.BaseComponents;\n-using Tizen.NUI.Constants;\nnamespace ImageSample\n{\n@@ -56,27 +51,24 @@ namespace ImageSample\nguide.PositionUsesPivotPoint = true;\nguide.ParentOrigin = ParentOrigin.TopLeft;\nguide.PivotPoint = PivotPoint.TopLeft;\n- guide.Size2D = new Size2D(1920, 96);\n+ guide.Size = new Size(1920, 96);\nguide.FontFamily = \"Samsung One 600\";\n- guide.Position2D = new Position2D(0, 94);\n+ guide.Position = new Position(0, 94);\nguide.MultiLine = false;\n- //guide.PointSize = 15.0f;\nguide.PointSize = DeviceCheck.PointSize15;\nguide.Text = \"NinePatch Sample \\n\";\nguide.TextColor = Color.White;\n- //guide.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);\nWindow.Instance.GetDefaultLayer().Add(guide);\nuserGuide = new TextLabel();\n- userGuide.HorizontalAlignment = HorizontalAlignment.Begin;\n+ userGuide.HorizontalAlignment = HorizontalAlignment.Center;\nuserGuide.VerticalAlignment = VerticalAlignment.Top;\nuserGuide.PositionUsesPivotPoint = true;\nuserGuide.ParentOrigin = ParentOrigin.TopLeft;\nuserGuide.PivotPoint = PivotPoint.TopLeft;\nuserGuide.FontFamily = \"Samsung One 400\";\n- userGuide.Position = new Position(30, 275, 0);\n+ userGuide.Position = new Position(30, 275);\nuserGuide.MultiLine = true;\n- //userGuide.PointSize = 10.0f;\nuserGuide.PointSize = DeviceCheck.PointSize10;\nuserGuide.Text = \"The following three ImageView are created with the same image file but with different size.\\n\";\nuserGuide.TextColor = Color.White;\n@@ -87,22 +79,22 @@ namespace ImageSample\nsmall = new ImageView(imagePath);\nsmall.ParentOrigin = ParentOrigin.TopLeft;\nsmall.PivotPoint = PivotPoint.TopLeft;\n- small.Size2D = new Size2D(124, 85);\n- small.Position2D = new Position2D(898, 330);\n+ small.Size = new Size(124, 85);\n+ small.Position = new Position(898, 330);\nWindow.Instance.GetDefaultLayer().Add(small);\n//This imageView's size is (249, 169). it's the middle one.\nmiddle = new ImageView(imagePath);\nmiddle.ParentOrigin = ParentOrigin.TopLeft;\nmiddle.PivotPoint = PivotPoint.TopLeft;\n- middle.Size2D = new Size2D(249, 169);\n- middle.Position2D = new Position2D(835, 450);\n+ middle.Size = new Size(249, 169);\n+ middle.Position = new Position(835, 450);\nWindow.Instance.GetDefaultLayer().Add(middle);\n//This imageView's size is (498, 338). it's the large one.\nlarge = new ImageView(imagePath);\nlarge.ParentOrigin = ParentOrigin.TopLeft;\nlarge.PivotPoint = PivotPoint.TopLeft;\n- large.Size2D = new Size2D(498, 338);\n- large.Position2D = new Position2D(711, 670);\n+ large.Size = new Size(498, 338);\n+ large.Position = new Position(711, 670);\nWindow.Instance.GetDefaultLayer().Add(large);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/ImageSample/ImageSample/src/Samples/PixelAreaSample.cs",
"new_path": "TV/ImageSample/ImageSample/src/Samples/PixelAreaSample.cs",
"diff": "*/\nusing System;\n-using Tizen;\n-using System.Runtime.InteropServices;\nusing Tizen.NUI;\nusing Tizen.NUI.Components;\nusing Tizen.NUI.BaseComponents;\n-using Tizen.NUI.Constants;\nnamespace ImageSample\n{\n@@ -61,24 +58,22 @@ namespace ImageSample\nguide.PositionUsesPivotPoint = true;\nguide.ParentOrigin = ParentOrigin.TopLeft;\nguide.PivotPoint = PivotPoint.TopLeft;\n- guide.Size2D = new Size2D(1920, 96);\n+ guide.Size = new Size(1920, 96);\nguide.FontFamily = \"Samsung One 600\";\n- guide.Position2D = new Position2D(0, 94);\n+ guide.Position = new Position(0, 94);\nguide.MultiLine = false;\n- //guide.PointSize = 15.0f;\nguide.PointSize = DeviceCheck.PointSize15;\nguide.Text = \"PixelArea Sample \\n\";\nguide.TextColor = Color.White;\n- //guide.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);\nWindow.Instance.GetDefaultLayer().Add(guide);\n//Create one tableView as a container of all the image.\ntableView = new TableView(3, 3);\n- tableView.Size2D = new Size2D(600, 600);\n+ tableView.Size = new Size(600, 600);\ntableView.PositionUsesPivotPoint = true;\ntableView.PivotPoint = PivotPoint.TopLeft;\ntableView.ParentOrigin = ParentOrigin.TopLeft;\n- tableView.Position2D = new Position2D(660, 275);\n+ tableView.Position = new Position(660, 275);\nWindow.Instance.GetDefaultLayer().Add(tableView);\n//Create p image and add them to tableView\n@@ -99,8 +94,8 @@ namespace ImageSample\npushButton = CreateButton(\"PixelArea\", \"PixelArea\");\npushButton.PivotPoint = PivotPoint.Center;\npushButton.ParentOrigin = ParentOrigin.TopLeft;\n- pushButton.Position2D = tableView.Position2D + new Position2D((int)tableView.SizeWidth / 2 - 200, (int)tableView.SizeHeight + 60);\n- pushButton.ClickEvent += PixelAreaButtonClick;\n+ pushButton.Position = tableView.Position + new Position((int)tableView.SizeWidth / 2 - 200, (int)tableView.SizeHeight + 60);\n+ pushButton.Clicked += PixelAreaButtonClick;\npushButton.Focusable = true;\nWindow.Instance.GetDefaultLayer().Add(pushButton);\nFocusManager.Instance.SetCurrentFocusView(pushButton);\n@@ -171,9 +166,10 @@ namespace ImageSample\n{\nButton button = new Button();\nbutton.Focusable = true;\n- button.Size2D = new Size2D(400, 80);\n+ button.Size = new Size(400, 80);\nbutton.Focusable = true;\nbutton.Name = name;\n+ button.Text = text;\nbutton.BackgroundImage = normalImagePath;\nbutton.TextColor = Color.White;\n@@ -225,7 +221,6 @@ namespace ImageSample\nmap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));\nmap.Add(TextVisualProperty.Text, new PropertyValue(text));\nmap.Add(TextVisualProperty.TextColor, new PropertyValue(color));\n- //map.Add(TextVisualProperty.PointSize, new PropertyValue(8.0f));\nmap.Add(TextVisualProperty.PointSize, new PropertyValue(DeviceCheck.PointSize8));\nmap.Add(TextVisualProperty.HorizontalAlignment, new PropertyValue(\"CENTER\"));\nmap.Add(TextVisualProperty.VerticalAlignment, new PropertyValue(\"CENTER\"));\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/ImageSample/ImageSample/src/Samples/SvgSample.cs",
"new_path": "TV/ImageSample/ImageSample/src/Samples/SvgSample.cs",
"diff": "*/\nusing System;\n-using Tizen;\n-using System.Runtime.InteropServices;\nusing Tizen.NUI;\nusing Tizen.NUI.Components;\nusing Tizen.NUI.BaseComponents;\n-using Tizen.NUI.Constants;\nnamespace ImageSample\n{\n@@ -39,7 +36,7 @@ namespace ImageSample\nprivate float svgScale = 1;\nprivate ImageView svgImage;\nprivate Button zoomInButton, zoomOutButton;\n- // <summary>\n+ /// <summary>\n/// Constructor to create new RadioButtonSample\n/// </summary>\npublic SvgSample()\n@@ -59,15 +56,13 @@ namespace ImageSample\nguide.PositionUsesPivotPoint = true;\nguide.ParentOrigin = ParentOrigin.TopLeft;\nguide.PivotPoint = PivotPoint.TopLeft;\n- guide.Size2D = new Size2D(1920, 96);\n+ guide.Size = new Size(1920, 96);\nguide.FontFamily = \"Samsung One 600\";\n- guide.Position2D = new Position2D(0, 94);\n+ guide.Position = new Position(0, 94);\nguide.MultiLine = false;\n- //guide.PointSize = 15.0f;\nguide.PointSize = DeviceCheck.PointSize15;\nguide.Text = \"Svg Sample \\n\";\nguide.TextColor = Color.White;\n- //guide.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);\nWindow.Instance.GetDefaultLayer().Add(guide);\n//Create an imageView to show the svg file.\n@@ -77,7 +72,7 @@ namespace ImageSample\nsvgImage.PositionUsesPivotPoint = true ;\nsvgImage.PivotPoint = PivotPoint.TopLeft;\nsvgImage.ParentOrigin = ParentOrigin.TopLeft;\n- svgImage.Position2D = new Position2D(860, 400);\n+ svgImage.Position = new Position(860, 400);\nWindow.Instance.GetDefaultLayer().Add(svgImage);\n// Create zoomInButton which can make svgImage bigger\n@@ -85,8 +80,8 @@ namespace ImageSample\nzoomInButton.PositionUsesPivotPoint = true;\nzoomInButton.PivotPoint = PivotPoint.TopLeft;\nzoomInButton.ParentOrigin = ParentOrigin.TopLeft;\n- zoomInButton.Position2D = new Position2D(460, 900);\n- zoomInButton.ClickEvent += ZoomInButtonClick;\n+ zoomInButton.Position = new Position(460, 900);\n+ zoomInButton.Clicked += ZoomInButtonClick;\nzoomInButton.Focusable = true;\nWindow.Instance.GetDefaultLayer().Add(zoomInButton);\n@@ -95,8 +90,8 @@ namespace ImageSample\nzoomOutButton.PositionUsesPivotPoint = true;\nzoomOutButton.PivotPoint = PivotPoint.TopLeft;\nzoomOutButton.ParentOrigin = ParentOrigin.TopLeft;\n- zoomOutButton.Position2D = new Position2D(1060, 900);\n- zoomOutButton.ClickEvent += ZoomOutButtonClick;\n+ zoomOutButton.Position = new Position(1060, 900);\n+ zoomOutButton.Clicked += ZoomOutButtonClick;\nzoomOutButton.Focusable = true;\nWindow.Instance.GetDefaultLayer().Add(zoomOutButton);\n@@ -148,9 +143,10 @@ namespace ImageSample\n{\nButton button = new Button();\nbutton.Focusable = true;\n- button.Size2D = new Size2D(400, 80);\n+ button.Size = new Size(400, 80);\nbutton.Focusable = true;\nbutton.Name = name;\n+ button.Text = text;\nbutton.TextColor = Color.White;\nbutton.BackgroundImage = normalImagePath;\n@@ -202,7 +198,6 @@ namespace ImageSample\nmap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));\nmap.Add(TextVisualProperty.Text, new PropertyValue(text));\nmap.Add(TextVisualProperty.TextColor, new PropertyValue(color));\n- //map.Add(TextVisualProperty.PointSize, new PropertyValue(8.0f));\nmap.Add(TextVisualProperty.PointSize, new PropertyValue(DeviceCheck.PointSize8));\nmap.Add(TextVisualProperty.HorizontalAlignment, new PropertyValue(\"CENTER\"));\nmap.Add(TextVisualProperty.VerticalAlignment, new PropertyValue(\"CENTER\"));\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [TV] Update ImageSample and FlexContainerSample. |
594,256 | 05.10.2020 15:06:14 | -7,200 | e27b5357e3c0a5dae50298b9dad40af54c9f3f49 | Fixed Wearable\AnimationsSample | [
{
"change_type": "MODIFY",
"old_path": "Wearable/AnimationsSample/AnimationsSample/AnimationsSample.cs",
"new_path": "Wearable/AnimationsSample/AnimationsSample/AnimationsSample.cs",
"diff": "@@ -109,7 +109,7 @@ namespace AnimationsSample\nroot = new View()\n{\nSize = new Size(window.Size.Width, window.Size.Height),\n- BackgroundColor = Color.White\n+ BackgroundColor = new Color(0.1f, 0.1f, 0.1f, 1.0f)\n};\nTextLabel title = new TextLabel(\"Animation\");\n@@ -520,38 +520,6 @@ namespace AnimationsSample\nreturn false;\n}\n- /// <summary>\n- /// Create a Text visual.\n- /// </summary>\n- /// <param name=\"text\">The text of the Text visual</param>\n- /// <param name=\"color\">The color of the text</param>\n- /// <returns>return a map which contain the properties of the text</returns>\n- private PropertyMap CreateTextVisual(string text, Color color)\n- {\n- PropertyMap map = new PropertyMap();\n- map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));\n- map.Add(TextVisualProperty.Text, new PropertyValue(text));\n- map.Add(TextVisualProperty.TextColor, new PropertyValue(color));\n- map.Add(TextVisualProperty.PointSize, new PropertyValue(mMiddlePointSize));\n- map.Add(TextVisualProperty.HorizontalAlignment, new PropertyValue(\"CENTER\"));\n- map.Add(TextVisualProperty.VerticalAlignment, new PropertyValue(\"CENTER\"));\n- map.Add(TextVisualProperty.FontFamily, new PropertyValue(\"Samsung One 400\"));\n- return map;\n- }\n-\n- /// <summary>\n- /// Create a Color visual.\n- /// </summary>\n- /// <param name=\"color\">The color value of the visual</param>\n- /// <returns>return a map which contain the properties of the color</returns>\n- private PropertyMap CreateColorVisual(Vector4 color)\n- {\n- PropertyMap map = new PropertyMap();\n- map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Color));\n- map.Add(ColorVisualProperty.MixColor, new PropertyValue(color));\n- return map;\n- }\n-\n/// <summary>\n/// Create a Button.\n/// </summary>\n@@ -570,13 +538,14 @@ namespace AnimationsSample\n// Set each label and text properties.\nbutton.Text = text;\nbutton.TextColor = Color.White;\n+ button.PointSize = mMiddlePointSize;\nif (button.IsSelected)\n{\nbutton.BackgroundColor = new Color(0.5f, 0.5f, 0.5f, 1.0f);\n}\nelse\n{\n- button.BackgroundColor = new Color(0.1f, 0.1f, 0.1f, 0.9f);\n+ button.BackgroundColor = new Color(0.2f, 0.2f, 0.2f, 1.0f);\n}\nreturn button;\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Fixed Wearable\AnimationsSample |
594,254 | 15.10.2020 14:52:34 | -7,200 | a3e1e0ff9aaac64af3bea46da01873b398951077 | [Mobile][NUI] Added Custom Layout sample | [
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/application-icon-101.png",
"new_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/application-icon-101.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/application-icon-101.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/application-icon-102.png",
"new_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/application-icon-102.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/application-icon-102.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/application-icon-103.png",
"new_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/application-icon-103.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/application-icon-103.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/application-icon-104.png",
"new_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/application-icon-104.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/application-icon-104.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/bg.png",
"new_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/bg.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomLayout/NUI_CustomLayout/res/images/bg.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/shared/res/NUI_CustomLayout.png",
"new_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/shared/res/NUI_CustomLayout.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomLayout/NUI_CustomLayout/shared/res/NUI_CustomLayout.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomLayout/NUI_Custom_Layut.png",
"new_path": "Mobile/NUI_CustomLayout/NUI_Custom_Layut.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomLayout/NUI_Custom_Layut.png differ\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI_CustomLayout/README.md",
"diff": "+# NUI_CustomLayout\n+\n+**This sample application demonstrates how to create NUI Custom Layout component.**\n+\n+NUI provides standard layout components such as Linear Layout, Grid Layout, Flexible layout.\n+However, sometimes there is a need to create you own layout, e.g in case of repeating list elements. For this purpose, NUI provides an LayoutGroup object w to make your work easier. There are only two interfaces which should be implemented:\n+\n+```\n+protected override void onMeasure(MeasureSpecification widthMeasureSpec, MeasureSpecification heightMeasureSpec)\n+{\n+ var width = new LayoutWidth(0);\n+ var height = new LayoutWidth(0);\n+\n+ //Usually here you should foreach each added item for calculate layout width and height:\n+ foreach(LayoutItem child in LayoutChildren)\n+ {\n+ //calculate width and height here using child item size\n+ }\n+\n+ //When layout height and width will be know, you should use it in following way:\n+\n+ SetMeasuredDimensions(new MeasuredSize(itemWidth, MeasuredSize.StateType.MeasuredSizeOK),\n+ new MeasuredSize(itemHeight, MeasuredSize.StateType.MeasuredSizeOK));\n+}\n+\n+protected override void onLayout(bool changed, LayoutLength left, LayoutLength top, LayoutLength right, LayoutLength bottom)\n+{\n+ //Here position and size of each item should be set within the layout\n+ //similar as it is depicted in function above we can use foreach to access all children elements\n+ foreach (LayoutItem childLayout in LayoutChildren)\n+ {\n+ //set item position using following method\n+ childLayout.Layout(childLeft, childTop, childRight, childBottom);\n+ }\n+}\n+```\n+\n+This sample app demonstrates how to create list items as it is depicted below. Example shows two different list items, with title and description and only with title. The second one has different width.\n+\n+[screenshot](!./../NUI_Custom_Layut.png)\n+\n+### Prerequisites\n+\n+* [Visual Studio](https://www.visualstudio.com/) - Buildtool, IDE\n+* [Visual Studio Tools for Tizen](https://docs.tizen.org/application/vstools/install) - Visual Studio plugin for Tizen .NET application development\n\\ No newline at end of file\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] Added Custom Layout sample |
594,258 | 15.10.2020 11:54:59 | -7,200 | 72b8d656bc9d1db7f80ac2a661f325833598228c | Added NUI Flex Layout sample | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUIFlexLayout/NUIFlexLayout.sln",
"diff": "+Microsoft Visual Studio Solution File, Format Version 12.00\n+# Visual Studio 14\n+VisualStudioVersion = 14.0.25420.1\n+MinimumVisualStudioVersion = 10.0.40219.1\n+Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"NUIFlexLayout\", \"NUIFlexLayout/NUIFlexLayout.csproj\", \"{c5db694d-e990-4ebe-a36b-272051eafd91}\"\n+EndProject\n+Global\n+ GlobalSection(SolutionConfigurationPlatforms) = preSolution\n+ Debug|Any CPU = Debug|Any CPU\n+ Release|Any CPU = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(ProjectConfigurationPlatforms) = postSolution\n+ {c5db694d-e990-4ebe-a36b-272051eafd91}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n+ {c5db694d-e990-4ebe-a36b-272051eafd91}.Debug|Any CPU.Build.0 = Debug|Any CPU\n+ {c5db694d-e990-4ebe-a36b-272051eafd91}.Release|Any CPU.ActiveCfg = Release|Any CPU\n+ {c5db694d-e990-4ebe-a36b-272051eafd91}.Release|Any CPU.Build.0 = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(SolutionProperties) = preSolution\n+ HideSolutionNode = FALSE\n+ EndGlobalSection\n+EndGlobal\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUIFlexLayout/NUIFlexLayout/shared/res/NUIFlexLayout.png",
"new_path": "Mobile/NUIFlexLayout/NUIFlexLayout/shared/res/NUIFlexLayout.png",
"diff": "Binary files /dev/null and b/Mobile/NUIFlexLayout/NUIFlexLayout/shared/res/NUIFlexLayout.png differ\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Added NUI Flex Layout sample |
594,258 | 14.10.2020 13:44:43 | -7,200 | 1bccb7df0a6e676c52efaf88aade515d1be277fc | Added NUI grid layout sample | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUIGridLayout/NUIGridLayout.sln",
"diff": "+Microsoft Visual Studio Solution File, Format Version 12.00\n+# Visual Studio 14\n+VisualStudioVersion = 14.0.25420.1\n+MinimumVisualStudioVersion = 10.0.40219.1\n+Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"NUIGridLayout\", \"NUIGridLayout/NUIGridLayout.csproj\", \"{e88795ce-4056-47a8-a8f5-cea953cc2e30}\"\n+EndProject\n+Global\n+ GlobalSection(SolutionConfigurationPlatforms) = preSolution\n+ Debug|Any CPU = Debug|Any CPU\n+ Release|Any CPU = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(ProjectConfigurationPlatforms) = postSolution\n+ {e88795ce-4056-47a8-a8f5-cea953cc2e30}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n+ {e88795ce-4056-47a8-a8f5-cea953cc2e30}.Debug|Any CPU.Build.0 = Debug|Any CPU\n+ {e88795ce-4056-47a8-a8f5-cea953cc2e30}.Release|Any CPU.ActiveCfg = Release|Any CPU\n+ {e88795ce-4056-47a8-a8f5-cea953cc2e30}.Release|Any CPU.Build.0 = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(SolutionProperties) = preSolution\n+ HideSolutionNode = FALSE\n+ EndGlobalSection\n+EndGlobal\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUIGridLayout/NUIGridLayout/shared/res/NUIGridLayout.png",
"new_path": "Mobile/NUIGridLayout/NUIGridLayout/shared/res/NUIGridLayout.png",
"diff": "Binary files /dev/null and b/Mobile/NUIGridLayout/NUIGridLayout/shared/res/NUIGridLayout.png differ\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Added NUI grid layout sample |
594,258 | 14.10.2020 11:11:01 | -7,200 | 93ab40d542672e942c8ccc38efde89cb3b0e12ab | Added NUI Linear Layout sample | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUILinearLayout/NUILinearLayout.sln",
"diff": "+Microsoft Visual Studio Solution File, Format Version 12.00\n+# Visual Studio 14\n+VisualStudioVersion = 14.0.25420.1\n+MinimumVisualStudioVersion = 10.0.40219.1\n+Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"NUILinearLayout\", \"NUILinearLayout/NUILinearLayout.csproj\", \"{ec6e338a-329b-4089-87ba-d81bdc0c095f}\"\n+EndProject\n+Global\n+ GlobalSection(SolutionConfigurationPlatforms) = preSolution\n+ Debug|Any CPU = Debug|Any CPU\n+ Release|Any CPU = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(ProjectConfigurationPlatforms) = postSolution\n+ {ec6e338a-329b-4089-87ba-d81bdc0c095f}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n+ {ec6e338a-329b-4089-87ba-d81bdc0c095f}.Debug|Any CPU.Build.0 = Debug|Any CPU\n+ {ec6e338a-329b-4089-87ba-d81bdc0c095f}.Release|Any CPU.ActiveCfg = Release|Any CPU\n+ {ec6e338a-329b-4089-87ba-d81bdc0c095f}.Release|Any CPU.Build.0 = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(SolutionProperties) = preSolution\n+ HideSolutionNode = FALSE\n+ EndGlobalSection\n+EndGlobal\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUILinearLayout/NUILinearLayout/res/images/img1.svg",
"diff": "+<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 56.93\"><defs><style>.cls-1{fill:#35353d;}</style></defs><title>Asset 4</title><g id=\"Layer_2\" data-name=\"Layer 2\"><g id=\"Layer_1-2\" data-name=\"Layer 1\"><path class=\"cls-1\" d=\"M58.31,56.93H5.69A5.62,5.62,0,0,1,.77,54.09a5.59,5.59,0,0,1,0-5.67L27.08,2.84a5.68,5.68,0,0,1,9.84,0L63.23,48.42a5.68,5.68,0,0,1-4.92,8.51ZM32,5.68h0L5.69,51.25H58.31L32,5.68ZM29.54,4.26h0Z\"/><path class=\"cls-1\" d=\"M32,37a2.84,2.84,0,0,1-2.84-2.84V20a2.84,2.84,0,0,1,5.68,0V34.14A2.84,2.84,0,0,1,32,37Z\"/><circle class=\"cls-1\" cx=\"32\" cy=\"42.66\" r=\"2.84\"/></g></g></svg>\n\\ No newline at end of file\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUILinearLayout/NUILinearLayout/res/images/img2.svg",
"diff": "+<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 58.94 64\"><defs><style>.cls-1{fill:#35353d;}</style></defs><title>Asset 2</title><g id=\"Layer_2\" data-name=\"Layer 2\"><g id=\"Layer_1-2\" data-name=\"Layer 1\"><path class=\"cls-1\" d=\"M58.71,19.18A32,32,0,0,0,.24,18.82,2.68,2.68,0,0,0,1.8,22.46h0A2.6,2.6,0,0,0,5.06,21.1a26.66,26.66,0,0,1,48.8.31,2.63,2.63,0,0,0,3.23,1.4h0A2.67,2.67,0,0,0,58.71,19.18Z\"/><path class=\"cls-1\" d=\"M43.71,24.88a2.63,2.63,0,0,0,3.18,1.31h0a2.66,2.66,0,0,0,1.57-3.69,21.3,21.3,0,0,0-38-.22A2.66,2.66,0,0,0,12,26a2.63,2.63,0,0,0,3.2-1.27,16,16,0,0,1,28.55.18Z\"/><path class=\"cls-1\" d=\"M29.4,21.33A10.63,10.63,0,0,0,21,25.43a2.65,2.65,0,0,0,1.26,4.1h0a2.56,2.56,0,0,0,2.88-.76,5.31,5.31,0,0,1,8.52.06,2.54,2.54,0,0,0,2.85.79h0a2.65,2.65,0,0,0,1.32-4.09A10.62,10.62,0,0,0,29.4,21.33Z\"/><path class=\"cls-1\" d=\"M53.4,34.67H5.4a2.67,2.67,0,0,0-2.54,3.49L7.23,51.5a2.65,2.65,0,0,0,1.49,1.62l5.19,2.2,2.29,6.86A2.66,2.66,0,0,0,18.73,64H40.06a2.66,2.66,0,0,0,2.53-1.82l2.29-6.86,5.19-2.2a2.65,2.65,0,0,0,1.49-1.62l4.37-13.34a2.67,2.67,0,0,0-2.53-3.49Zm-6.53,14-5.18,2.2a2.64,2.64,0,0,0-1.49,1.61l-2.06,6.18H20.65l-2.06-6.18a2.64,2.64,0,0,0-1.49-1.61l-5.18-2.2L9.07,40H49.72Z\"/></g></g></svg>\n\\ No newline at end of file\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUILinearLayout/NUILinearLayout/res/images/img3.svg",
"diff": "+<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\"><defs><style>.cls-1{fill:#35353d;}</style></defs><title>Asset 3</title><g id=\"Layer_2\" data-name=\"Layer 2\"><g id=\"Layer_1-2\" data-name=\"Layer 1\"><path class=\"cls-1\" d=\"M32,64A32,32,0,1,1,64,32,32,32,0,0,1,32,64ZM32,5.33A26.67,26.67,0,1,0,58.67,32,26.71,26.71,0,0,0,32,5.33Z\"/><path class=\"cls-1\" d=\"M32,45.33a2.67,2.67,0,0,1-2.67-2.66,14.1,14.1,0,0,1,6.9-11.88,8,8,0,0,0,3.55-8.71A8,8,0,0,0,24,24a2.67,2.67,0,1,1-5.33,0,13.29,13.29,0,0,1,5-10.43A13.43,13.43,0,0,1,35.11,11a13.34,13.34,0,0,1,4,24.3,8.78,8.78,0,0,0-4.39,7.35A2.67,2.67,0,0,1,32,45.33Z\"/><circle class=\"cls-1\" cx=\"32\" cy=\"50.67\" r=\"2.67\"/></g></g></svg>\n\\ No newline at end of file\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUILinearLayout/NUILinearLayout/shared/res/NUILinearLayout.png",
"new_path": "Mobile/NUILinearLayout/NUILinearLayout/shared/res/NUILinearLayout.png",
"diff": "Binary files /dev/null and b/Mobile/NUILinearLayout/NUILinearLayout/shared/res/NUILinearLayout.png differ\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Added NUI Linear Layout sample |
594,254 | 04.11.2020 07:22:07 | -3,600 | f0991abaa8b2f78a54cbf6755a0528f191dffcdf | [Mobile][NUI] Custom Layout Sample review fixes. | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/ItemLayout.cs",
"new_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/ItemLayout.cs",
"diff": "@@ -34,12 +34,12 @@ namespace SimpleLayout\n{\ninternal class ItemLayout : LayoutGroup\n{\n- private static readonly int MARGIN = 5;\n+ private const int MARGIN = 5;\n- private static readonly int TEXT_LEFT_MARGIN = 120;\n- private static readonly int TEXT_RIGTH_MARGIN = 710;\n- private static readonly int DESCRIPTION_TOP_MARGIN = 70;\n- private static readonly int TEXT_HEIGHT = 50;\n+ private const int TEXT_LEFT_MARGIN = 120;\n+ private const int TEXT_RIGTH_MARGIN = 710;\n+ private const int DESCRIPTION_TOP_MARGIN = 70;\n+ private const int TEXT_HEIGHT = 50;\nprotected override void OnMeasure(MeasureSpecification widthMeasureSpec, MeasureSpecification heightMeasureSpec)\n{\n@@ -53,13 +53,10 @@ namespace SimpleLayout\n{\nif (childLayout != null)\n{\n- Type imageType = typeof(Tizen.NUI.BaseComponents.ImageView);\nType textType = typeof(Tizen.NUI.BaseComponents.TextLabel);\n- Type childType = childLayout.Owner.GetType();\n-\nMeasureChild(childLayout, widthMeasureSpec, heightMeasureSpec);\n- if (childType.Equals(textType))\n+ if (childLayout.Owner is TextLabel)\n{\nMeasureChild(childLayout, widthMeasureSpec, heightMeasureSpec);\nitemHeight += childLayout.MeasuredHeight.Size;\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] Custom Layout Sample review fixes. |
594,254 | 06.11.2020 09:05:38 | -3,600 | 9b435f6bc485cc61ab1b84a4e7c19fc1c92626fb | [NUI][CustomLayout] Removed unused variable | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/ItemLayout.cs",
"new_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/ItemLayout.cs",
"diff": "@@ -53,7 +53,6 @@ namespace SimpleLayout\n{\nif (childLayout != null)\n{\n- Type textType = typeof(Tizen.NUI.BaseComponents.TextLabel);\nMeasureChild(childLayout, widthMeasureSpec, heightMeasureSpec);\nif (childLayout.Owner is TextLabel)\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [NUI][CustomLayout] Removed unused variable |
594,266 | 12.11.2020 14:10:17 | -3,600 | 3e9afc41bc491284ce6b7631602612b3c81ca453 | [Wearable][ImageSample] Decrease buttons PointSize property | [
{
"change_type": "MODIFY",
"old_path": "Wearable/ImageSample/ImageSample/ImageSample.cs",
"new_path": "Wearable/ImageSample/ImageSample/ImageSample.cs",
"diff": "@@ -335,6 +335,7 @@ namespace ImageSample\nButton mButton = CreateButton(mCaseString[i], mNeedButton[i]);\n// Bind PushButton's click event to ButtonClick.\nmButton.TouchEvent += OnButtonTouched;\n+ mButton.PointSize = 3;\nmButtonTableView.AddChild(mButton, new TableView.CellPosition(0, i));\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable][ImageSample] Decrease buttons PointSize property |
594,258 | 27.11.2020 10:29:44 | -3,600 | 0674169ea1101e358d44d63c94cc788f3f5a29ca | Added NUI View example | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUIView/NUIView.sln",
"diff": "+Microsoft Visual Studio Solution File, Format Version 12.00\n+# Visual Studio 14\n+VisualStudioVersion = 14.0.25420.1\n+MinimumVisualStudioVersion = 10.0.40219.1\n+Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"NUIView\", \"NUIView/NUIView.csproj\", \"{124f1abe-4e82-4ace-b655-ca8d4e057374}\"\n+EndProject\n+Global\n+ GlobalSection(SolutionConfigurationPlatforms) = preSolution\n+ Debug|Any CPU = Debug|Any CPU\n+ Release|Any CPU = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(ProjectConfigurationPlatforms) = postSolution\n+ {124f1abe-4e82-4ace-b655-ca8d4e057374}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n+ {124f1abe-4e82-4ace-b655-ca8d4e057374}.Debug|Any CPU.Build.0 = Debug|Any CPU\n+ {124f1abe-4e82-4ace-b655-ca8d4e057374}.Release|Any CPU.ActiveCfg = Release|Any CPU\n+ {124f1abe-4e82-4ace-b655-ca8d4e057374}.Release|Any CPU.Build.0 = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(SolutionProperties) = preSolution\n+ HideSolutionNode = FALSE\n+ EndGlobalSection\n+EndGlobal\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUIView/NUIView/shared/res/NUIView.png",
"new_path": "Mobile/NUIView/NUIView/shared/res/NUIView.png",
"diff": "Binary files /dev/null and b/Mobile/NUIView/NUIView/shared/res/NUIView.png differ\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Added NUI View example |
594,248 | 03.12.2020 02:27:41 | -3,600 | 1127c2fd851e848c967e490ca70abbde3a42c935 | [Mobile][NUI] Pagination example added - will be linked in the guide | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI_Pagination/NUI_Pagination.sln",
"diff": "+Microsoft Visual Studio Solution File, Format Version 12.00\n+# Visual Studio 14\n+VisualStudioVersion = 14.0.25420.1\n+MinimumVisualStudioVersion = 10.0.40219.1\n+Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"NUI_Pagination\", \"NUI_Pagination/NUI_Pagination.csproj\", \"{ec6e338a-329b-4089-87ba-d81bdc0c095f}\"\n+EndProject\n+Global\n+ GlobalSection(SolutionConfigurationPlatforms) = preSolution\n+ Debug|Any CPU = Debug|Any CPU\n+ Release|Any CPU = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(ProjectConfigurationPlatforms) = postSolution\n+ {ec6e338a-329b-4089-87ba-d81bdc0c095f}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n+ {ec6e338a-329b-4089-87ba-d81bdc0c095f}.Debug|Any CPU.Build.0 = Debug|Any CPU\n+ {ec6e338a-329b-4089-87ba-d81bdc0c095f}.Release|Any CPU.ActiveCfg = Release|Any CPU\n+ {ec6e338a-329b-4089-87ba-d81bdc0c095f}.Release|Any CPU.Build.0 = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(SolutionProperties) = preSolution\n+ HideSolutionNode = FALSE\n+ EndGlobalSection\n+EndGlobal\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_Pagination/NUI_Pagination/res/images/blue.png",
"new_path": "Mobile/NUI_Pagination/NUI_Pagination/res/images/blue.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_Pagination/NUI_Pagination/res/images/blue.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_Pagination/NUI_Pagination/res/images/gray.png",
"new_path": "Mobile/NUI_Pagination/NUI_Pagination/res/images/gray.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_Pagination/NUI_Pagination/res/images/gray.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_Pagination/NUI_Pagination/res/images/page1.png",
"new_path": "Mobile/NUI_Pagination/NUI_Pagination/res/images/page1.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_Pagination/NUI_Pagination/res/images/page1.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_Pagination/NUI_Pagination/res/images/page2.png",
"new_path": "Mobile/NUI_Pagination/NUI_Pagination/res/images/page2.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_Pagination/NUI_Pagination/res/images/page2.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_Pagination/NUI_Pagination/res/images/page3.png",
"new_path": "Mobile/NUI_Pagination/NUI_Pagination/res/images/page3.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_Pagination/NUI_Pagination/res/images/page3.png differ\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] Pagination example added - will be linked in the guide |
594,266 | 03.12.2020 13:37:44 | -3,600 | c74451dd894b53080baf424779a6bc2fc3abfbaa | [Mobile][NUI] Add videoview sample | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/VideoViewSample/README.md",
"diff": "+# VideoViewSample\n+This sample application demonstrates how to use NUI [VideoView](https://samsung.github.io/TizenFX/latest/api/Tizen.NUI.BaseComponents.VideoView.html) class. It perform how to use functionalities like forward, backward, play, pause or stop video.\n+\n+\n+\n+### Prerequisites\n+* [Visual Studio](https://www.visualstudio.com/) - Buildtool, IDE\n+* [Visual Studio Tools for Tizen](https://docs.tizen.org/application/vstools/install) - Visual Studio plugin for Tizen .NET application development\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/VideoViewSample/VideoViewSS.png",
"new_path": "Mobile/VideoViewSample/VideoViewSS.png",
"diff": "Binary files /dev/null and b/Mobile/VideoViewSample/VideoViewSS.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/VideoViewSample/VideoViewSample/res/sample.3gp",
"new_path": "Mobile/VideoViewSample/VideoViewSample/res/sample.3gp",
"diff": "Binary files /dev/null and b/Mobile/VideoViewSample/VideoViewSample/res/sample.3gp differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/VideoViewSample/VideoViewSample/shared/res/VideoViewSample.png",
"new_path": "Mobile/VideoViewSample/VideoViewSample/shared/res/VideoViewSample.png",
"diff": "Binary files /dev/null and b/Mobile/VideoViewSample/VideoViewSample/shared/res/VideoViewSample.png differ\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] Add videoview sample |
594,263 | 07.12.2020 20:23:26 | -32,400 | ee00949fe351943f5b07099838108ebe88e029cb | Update project settings by following Tizen 6.0 | [
{
"change_type": "MODIFY",
"old_path": "Mobile/Calculator/Calculator/tizen/Calculator/Calculator/Calculator.csproj",
"new_path": "Mobile/Calculator/Calculator/tizen/Calculator/Calculator/Calculator.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.657\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n</Project>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Update project settings by following Tizen 6.0 |
594,248 | 08.12.2020 16:04:41 | -3,600 | 92d7b6172e7088cfdcdaac3bbd6c3af49168b461 | [Mobile][NUI] Pagination example added - README and screenshots | [
{
"change_type": "ADD",
"old_path": "Mobile/NUI_Pagination/NUI_Pagination_screen1.png",
"new_path": "Mobile/NUI_Pagination/NUI_Pagination_screen1.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_Pagination/NUI_Pagination_screen1.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_Pagination/NUI_Pagination_screen2.png",
"new_path": "Mobile/NUI_Pagination/NUI_Pagination_screen2.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_Pagination/NUI_Pagination_screen2.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_Pagination/NUI_Pagination_screen3.png",
"new_path": "Mobile/NUI_Pagination/NUI_Pagination_screen3.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_Pagination/NUI_Pagination_screen3.png differ\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI_Pagination/README.md",
"diff": "+# NUI_Visuals\n+\n+**This sample application demonstrates how to use NUI Pagination.**\n+\n+`Pagination` is a component for making navigation through multipage windows more user-friendly.\n+It can be used to display the number of available pages and marking the currently viewed one.\n+\n+The sample application reacts to the 'right' and 'left' arrows from the keyboard. After pressing either of them\n+the selected indicator of the pagination is switched accordingly and the screen is rolled.\n+The screenshots of the app are presented below:\n+| [screen1](!./../NUI_Pagination_screen1.png) | [screen2](!./../NUI_Pagination_screen2.png) | [screen3](!./../NUI_Pagination_screen3.png) |\n+\n+For more information about the pagination see the [NUI guide](https://docs.tizen.org/application/dotnet/guides/nui/nui-components/Pagination/).\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] Pagination example added - README and screenshots |
594,248 | 08.12.2020 15:49:39 | -3,600 | 9c5b5ba829b94655a02a3d2b4466358b111ef69f | [NUI][Mobile] Add visuals example - README and screenshots | [
{
"change_type": "ADD",
"old_path": "Mobile/NUI_Visuals/NUI_Visuals_screen1.png",
"new_path": "Mobile/NUI_Visuals/NUI_Visuals_screen1.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_Visuals/NUI_Visuals_screen1.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_Visuals/NUI_Visuals_screen2.png",
"new_path": "Mobile/NUI_Visuals/NUI_Visuals_screen2.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_Visuals/NUI_Visuals_screen2.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_Visuals/NUI_Visuals_screen3.png",
"new_path": "Mobile/NUI_Visuals/NUI_Visuals_screen3.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_Visuals/NUI_Visuals_screen3.png differ\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI_Visuals/README.md",
"diff": "+# NUI_Visuals\n+\n+**This sample application demonstrates how to create NUI visuals.**\n+\n+Visuals are the main building blocks for UI components, which provide reusable rendering logic.\n+NUI provides few types of visuals like the `BorderVisual`, `ImageVisual` or `TextVisual`.\n+The properties specific to each individual visual are encapsulated in the corresponding class such as a 'Border' visual\n+is defined in a `BorderVisual` class, a 'Color' visual in a `ColorVisual` class, and so on.\n+The properties that are common for all visual types are inherited from a `VisualMap` class.\n+To render a visual it has to be added to a control. A container class that controls visuals is a `VisualView`.\n+\n+In the sample application usage of all the above is presented with their main properties.\n+\n+The application consists of one big view (`VisualView` class), which is scrolled\n+after the corresponding button is pressed.\n+The screenshots of the app are presented below:\n+| [screen1](!./../NUI_Visuals_screen1.png) | [screen2](!./../NUI_Visuals_screen2.png) | [screen3](!./../NUI_Visuals_screen3.png) |\n+\n+For more information about visuals see the [NUI guide](https://docs.tizen.org/application/dotnet/guides/nui/visuals/).\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [NUI][Mobile] Add visuals example - README and screenshots |
594,259 | 11.12.2020 23:17:24 | -3,600 | 1670f72d0b2a9ea038398b059bdd65d9aa40ad68 | [Mobile][NUI] ScrollableBase example | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/ScrollableBaseExample/ScrollableBaseExample/ScrollableBaseExample.csproj",
"diff": "+<Project Sdk=\"Microsoft.NET.Sdk\">\n+\n+ <PropertyGroup>\n+ <OutputType>Exe</OutputType>\n+ <TargetFramework>tizen80</TargetFramework>\n+ <LangVersion>8.0</LangVersion>\n+ <TargetFrameworkIdentifier>Tizen</TargetFrameworkIdentifier>\n+ </PropertyGroup>\n+\n+ <PropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' \">\n+ <DebugType>portable</DebugType>\n+ </PropertyGroup>\n+ <PropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' \">\n+ <DebugType>None</DebugType>\n+ </PropertyGroup>\n+\n+ <ItemGroup>\n+ <Folder Include=\"lib\\\" />\n+ <Folder Include=\"res\\\" />\n+ </ItemGroup>\n+\n+ <ItemGroup>\n+ <PackageReference Include=\"Tizen.NET\" Version=\"8.0.0.15524\">\n+ <ExcludeAssets>Runtime</ExcludeAssets>\n+ </PackageReference>\n+ <PackageReference Include=\"Tizen.NET.Sdk\" Version=\"1.1.2\" />\n+ </ItemGroup>\n+\n+</Project>\n+\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/ScrollableBaseExample/ScrollableBaseExample/shared/res/ScrollableBaseExample.png",
"new_path": "Mobile/ScrollableBaseExample/ScrollableBaseExample/shared/res/ScrollableBaseExample.png",
"diff": "Binary files /dev/null and b/Mobile/ScrollableBaseExample/ScrollableBaseExample/shared/res/ScrollableBaseExample.png differ\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] ScrollableBase example |
594,248 | 17.12.2020 21:40:08 | -3,600 | 3b056c4360653c4879a0ed05633bb6b5e65e7c7f | [Mobile][NUI] CheckBox example added - will be linked into the guide | [
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox.gif",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox.gif",
"diff": "Binary files /dev/null and b/Mobile/NUI_CheckBox/NUI_CheckBox.gif differ\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox.sln",
"diff": "+Microsoft Visual Studio Solution File, Format Version 12.00\n+# Visual Studio 14\n+VisualStudioVersion = 14.0.25420.1\n+MinimumVisualStudioVersion = 10.0.40219.1\n+Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"NUI_CheckBox\", \"NUI_CheckBox/NUI_CheckBox.csproj\", \"{ec6e338a-329b-4089-87ba-d81bdc0c095f}\"\n+EndProject\n+Global\n+ GlobalSection(SolutionConfigurationPlatforms) = preSolution\n+ Debug|Any CPU = Debug|Any CPU\n+ Release|Any CPU = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(ProjectConfigurationPlatforms) = postSolution\n+ {ec6e338a-329b-4089-87ba-d81bdc0c095f}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n+ {ec6e338a-329b-4089-87ba-d81bdc0c095f}.Debug|Any CPU.Build.0 = Debug|Any CPU\n+ {ec6e338a-329b-4089-87ba-d81bdc0c095f}.Release|Any CPU.ActiveCfg = Release|Any CPU\n+ {ec6e338a-329b-4089-87ba-d81bdc0c095f}.Release|Any CPU.Build.0 = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(SolutionProperties) = preSolution\n+ HideSolutionNode = FALSE\n+ EndGlobalSection\n+EndGlobal\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/Blue.png",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/Blue.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CheckBox/NUI_CheckBox/res/images/Blue.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/BlueCheckMark.png",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/BlueCheckMark.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CheckBox/NUI_CheckBox/res/images/BlueCheckMark.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/CheckMark.png",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/CheckMark.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CheckBox/NUI_CheckBox/res/images/CheckMark.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/LightBlue.png",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/LightBlue.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CheckBox/NUI_CheckBox/res/images/LightBlue.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/Red.png",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/Red.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CheckBox/NUI_CheckBox/res/images/Red.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/RoundCheckMark.png",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/RoundCheckMark.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CheckBox/NUI_CheckBox/res/images/RoundCheckMark.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/RoundShadow.png",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/RoundShadow.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CheckBox/NUI_CheckBox/res/images/RoundShadow.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/Shadow.png",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/Shadow.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CheckBox/NUI_CheckBox/res/images/Shadow.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/Struct.png",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/Struct.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CheckBox/NUI_CheckBox/res/images/Struct.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/XSign.png",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox/res/images/XSign.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CheckBox/NUI_CheckBox/res/images/XSign.png differ\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI_CheckBox/README.md",
"diff": "+# NUI_CheckBox\n+\n+**This sample application demonstrates how to use NUI CheckBox.**\n+\n+Checkbox is a UI component connected with the click events.\n+The base class for a `CheckBox` class is a `Button`, which properties can be used to specify the checkbox.\n+\n+The sample application reacts to the click event, after which it changes the background color.\n+The animation illustrating the app behavior is as follows:\n+| [anim](!./../NUI_CheckBox.gif) |\n+\n+For more information about the checkbox see the [NUI guide](https://docs.tizen.org/application/dotnet/guides/nui/nui-components/CheckBox/).\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] CheckBox example added - will be linked into the guide |
594,248 | 29.12.2020 23:42:38 | -3,600 | 7b0a9d9c45415d1d2a9a6c526b96ef7c24efb319 | [Mobile][NUI] Pagination example added - fixed errors from AnalysisHub | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_Pagination/NUI_Pagination/NUI_Pagination.cs",
"new_path": "Mobile/NUI_Pagination/NUI_Pagination/NUI_Pagination.cs",
"diff": "@@ -37,6 +37,7 @@ namespace NUI_Pagination\nprivate Pagination _pagination;\nprivate int _winWidth;\nprivate int _winHeight;\n+ private Position2D _winShift;\nprotected override void OnCreate()\n{\n@@ -49,6 +50,7 @@ namespace NUI_Pagination\nWindow.Instance.KeyEvent += Window_KeyEvent;\n_winWidth = Window.Instance.WindowSize.Width;\n_winHeight = Window.Instance.WindowSize.Height;\n+ _winShift = new Position2D(_winWidth, 0);\n// the view is parent for the _visualView and the _pagination\n_mainView = new View();\n@@ -109,7 +111,7 @@ namespace NUI_Pagination\n{\nif (_pagination.SelectedIndex > 0)\n{\n- _visualView.Position2D = _visualView.Position2D + new Position2D(_winWidth, 0);\n+ _visualView.Position2D = _visualView.Position2D + _winShift;\n_pagination.SelectedIndex = _pagination.SelectedIndex - 1;\n}\n}\n@@ -117,7 +119,7 @@ namespace NUI_Pagination\n{\nif (_pagination.SelectedIndex < _pagination.IndicatorCount - 1)\n{\n- _visualView.Position2D = _visualView.Position2D - new Position2D(_winWidth, 0);\n+ _visualView.Position2D = _visualView.Position2D - _winShift;\n_pagination.SelectedIndex = _pagination.SelectedIndex + 1;\n}\n}\n@@ -128,6 +130,7 @@ namespace NUI_Pagination\n{\nvar app = new Program();\napp.Run(args);\n+ app.Dispose();\n}\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_Pagination/README.md",
"new_path": "Mobile/NUI_Pagination/README.md",
"diff": "-# NUI_Visuals\n+# NUI_Pagination\n**This sample application demonstrates how to use NUI Pagination.**\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] Pagination example added - fixed errors from AnalysisHub |
594,248 | 30.12.2020 00:30:15 | -3,600 | 9bb63686e49b34ffb4a0b14e20534a7eae8207e4 | [Mobile][NUI] CheckBox example added - fixed errors from AnalysisHub | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox/NUI_CheckBox.cs",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox/NUI_CheckBox.cs",
"diff": "@@ -57,7 +57,7 @@ namespace NUI_CheckBox\nWindow.Instance.KeyEvent += Window_KeyEvent;\n_view = new View();\n- _view.Size = new Size2D(1, 4) * _checkBoxSize + new Size2D(100, 5 * _space);\n+ _view.Size = new Size2D(_checkBoxSize.Width + 100, 4 * _checkBoxSize.Height + 5 * _space);\n_view.PivotPoint = PivotPoint.Center;\n_view.ParentOrigin = ParentOrigin.Center;\n_view.PositionUsesPivotPoint = true;\n@@ -173,6 +173,7 @@ namespace NUI_CheckBox\n{\nvar app = new Program();\napp.Run(args);\n+ app.Dispose();\n}\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] CheckBox example added - fixed errors from AnalysisHub |
594,258 | 10.12.2020 15:14:02 | -3,600 | 68cb20dc4e225504bf6079b67cd9afbeeebeeaa0 | Added README and screenshots of the sample | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUIView/README.md",
"diff": "+# NUIView\n+NUIView is a very simple app written to show the basic [NUI View](https://docs.tizen.org/application/dotnet/guides/nui/view/) functionality.\n+\n+\n+\n+\n+### Features\n+* Screens with different View configuration examples\n+\n+### Author\n+* Mateusz Palkowski\n\\ No newline at end of file\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUIView/Screenshots/screen1.png",
"new_path": "Mobile/NUIView/Screenshots/screen1.png",
"diff": "Binary files /dev/null and b/Mobile/NUIView/Screenshots/screen1.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUIView/Screenshots/screen2.png",
"new_path": "Mobile/NUIView/Screenshots/screen2.png",
"diff": "Binary files /dev/null and b/Mobile/NUIView/Screenshots/screen2.png differ\n"
},
{
"change_type": "MODIFY",
"old_path": "build.sh",
"new_path": "build.sh",
"diff": "#!/bin/bash\n-for file in $(find ./ -name \"*.sln\"); do\n- dotnet build \"./$file\"\n-done\n+# for file in $(find ./ -name \"*.sln\"); do\n+# dotnet build \"./$file\"\n+# done\n+dotnet build \"./Mobile/NUIView/NUIView.sln\"\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Added README and screenshots of the sample |
594,250 | 22.12.2020 14:17:33 | -3,600 | a13facf3e7ae4860eff71cc16ee0e720313fb993 | [Wearable] Upgrade tizen and xamarin.forms versions in MetalDetector app | [
{
"change_type": "MODIFY",
"old_path": "Wearable/MetalDetector/src/MetalDetector/MetalDetector/MetalDetector.csproj",
"new_path": "Wearable/MetalDetector/src/MetalDetector/MetalDetector/MetalDetector.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.356\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n<ItemGroup>\n<EmbeddedResource Update=\"MetalDetectorApp.xaml\">\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade tizen and xamarin.forms versions in MetalDetector app |
594,250 | 23.12.2020 11:18:40 | -3,600 | a2ab428a22e688314506a1cadd2c2f7ae752d1dd | [Wearable] Upgrade Tizen and Xamarin.Forms in SystemInfo app. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/SystemInfo/src/SystemInfo/SystemInfo.Tizen.Wearable/SystemInfo.Tizen.Wearable.cs",
"new_path": "Wearable/SystemInfo/src/SystemInfo/SystemInfo.Tizen.Wearable/SystemInfo.Tizen.Wearable.cs",
"diff": "* limitations under the License.\n*/\nusing SystemInfo.Utils;\n-using Tizen.Wearable.CircularUI.Forms.Renderer;\n+using Xamarin.Forms;\nnamespace SystemInfo.Tizen.Wearable\n{\n@@ -44,8 +44,7 @@ namespace SystemInfo.Tizen.Wearable\nstatic void Main(string[] args)\n{\nvar app = new Program();\n- global::Xamarin.Forms.Platform.Tizen.Forms.Init(app);\n- FormsCircularUI.Init();\n+ Forms.Init(app);\napp.Run(args);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/SystemInfo/src/SystemInfo/SystemInfo/SystemInfo.csproj",
"new_path": "Wearable/SystemInfo/src/SystemInfo/SystemInfo/SystemInfo.csproj",
"diff": "</PropertyGroup>\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"3.1.0.583944\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n<!-- Include Nuget Package for Xamarin building -->\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen and Xamarin.Forms in SystemInfo app. |
594,250 | 23.12.2020 11:29:35 | -3,600 | 508244ee33ae773edaa751c1493e2b714bb86e7b | [Wearable] Upgrade Tizen and Xamarin.Forms in BadgeCounter sample app | [
{
"change_type": "MODIFY",
"old_path": "Wearable/BadgeCounter/src/BadgeCounter/BadgeCounter/BadgeCounter.csproj",
"new_path": "Wearable/BadgeCounter/src/BadgeCounter/BadgeCounter/BadgeCounter.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.530\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n</Project>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen and Xamarin.Forms in BadgeCounter sample app |
594,250 | 23.12.2020 11:41:39 | -3,600 | b24550a940d4051a065cf4b73b63effee62db628 | [Wearable] Upgrade Tizen and Xamarin.Forms in Compass sample app. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Compass/src/Compass/Compass/Compass.csproj",
"new_path": "Wearable/Compass/src/Compass/Compass/Compass.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.0.0.497661\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n</Project>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen and Xamarin.Forms in Compass sample app. |
594,250 | 23.12.2020 12:02:25 | -3,600 | f8e78b23482f082c218390b6820bd07231077e1d | [Wearable] Upgrade Tizen and Xamarin.Forms in RotaryTimer sample app. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/RotaryTimer/src/RotaryTimer/RotaryTimer.Tizen.Wearable/RotaryTimer.Tizen.Wearable.cs",
"new_path": "Wearable/RotaryTimer/src/RotaryTimer/RotaryTimer.Tizen.Wearable/RotaryTimer.Tizen.Wearable.cs",
"diff": "@@ -31,7 +31,6 @@ namespace RotaryTimer\n{\nvar app = new Program();\nForms.Init(app);\n- global::Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\napp.Run(args);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/RotaryTimer/src/RotaryTimer/RotaryTimer/RotaryTimer.csproj",
"new_path": "Wearable/RotaryTimer/src/RotaryTimer/RotaryTimer/RotaryTimer.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Tizen.NET\" Version=\"6.0.0.14995\" />\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.356\" />\n+ <PackageReference Include=\"Tizen.NET\" Version=\"8.0.0.15631\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n<ItemGroup>\n<EmbeddedResource Update=\"Views\\SetTimeView.xaml\">\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen and Xamarin.Forms in RotaryTimer sample app. |
594,250 | 23.12.2020 14:13:06 | -3,600 | 11050cfbf6e0c3b32835e1cffed6b31b72582e73 | [Wearable] Upgrade Tizen in AppHistory sample app | [
{
"change_type": "MODIFY",
"old_path": "Wearable/AppHistory/AppHistory/AppHistory.cs",
"new_path": "Wearable/AppHistory/AppHistory/AppHistory.cs",
"diff": "@@ -21,7 +21,6 @@ namespace AppHistory\n{\nvar app = new Program();\nForms.Init(app);\n- Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\napp.Run(args);\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen in AppHistory sample app |
594,250 | 23.12.2020 14:51:23 | -3,600 | b49099e6ddaf58469d781a738c3c96965621198e | [Wearable] Upgrade Tizen in Badge sample app. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Badges/src/Badges/Badges.cs",
"new_path": "Wearable/Badges/src/Badges/Badges.cs",
"diff": "@@ -28,7 +28,6 @@ namespace Badges\n{\nvar app = new Program();\nForms.Init(app);\n- Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen in Badge sample app. |
594,250 | 23.12.2020 14:59:49 | -3,600 | d6bffa905b628ad017ce739f4d211806942bbb95 | [Wearable] Upgrade Tizen version and made required changes in Calculator sample app. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Calculator/src/Calculator/Calculator.cs",
"new_path": "Wearable/Calculator/src/Calculator/Calculator.cs",
"diff": "@@ -51,7 +51,6 @@ namespace Calculator\n{\nvar app = new Program();\nForms.Init(app);\n- Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Calculator/src/Calculator/Renderers/ImageButtonRenderer.cs",
"new_path": "Wearable/Calculator/src/Calculator/Renderers/ImageButtonRenderer.cs",
"diff": "@@ -95,9 +95,9 @@ namespace Calculator.Renderers\n/// Set button image's blending color.\n/// It's right time after updating the button image source.\n/// </summary>\n- protected override void UpdateAfterLoading()\n+ protected override void UpdateAfterLoading(bool initialize)\n{\n- base.UpdateAfterLoading();\n+ base.UpdateAfterLoading(initialize);\nControl.Color = RegularColor;\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version and made required changes in Calculator sample app. |
594,250 | 23.12.2020 15:13:11 | -3,600 | 16ad8936ca67558c8eb947e773e7e0ad8f1f0655 | [Wearable] Upgrade Tizen version in FeedbackApp sample app. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/FeedbackApp/src/FeedbackApp/FeedbackApp.cs",
"new_path": "Wearable/FeedbackApp/src/FeedbackApp/FeedbackApp.cs",
"diff": "@@ -37,7 +37,6 @@ namespace FeedbackApp\n{\nvar app = new Program();\nForms.Init(app);\n- Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in FeedbackApp sample app. |
594,250 | 23.12.2020 15:22:57 | -3,600 | 893358478cb21dce95a83856bb47052c99489e55 | [Wearable] Upgrade Tizen in HeartRateMonitor sample app. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/HeartRateMonitor/src/HeartRateMonitor/HeartRateMonitor.cs",
"new_path": "Wearable/HeartRateMonitor/src/HeartRateMonitor/HeartRateMonitor.cs",
"diff": "@@ -30,7 +30,6 @@ namespace HeartRateMonitor\nvar app = new Program();\nForms.Init(app);\n- Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen in HeartRateMonitor sample app. |
594,250 | 23.12.2020 16:11:12 | -3,600 | 1a335a213a4db13a96f8b1d95d3126dab369f76f | [Wearable] Upgrade Tizen in NFCSampleApp sample app. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/NFCSampleApp/NFCSampleApp/NFCSampleApp.cs",
"new_path": "Wearable/NFCSampleApp/NFCSampleApp/NFCSampleApp.cs",
"diff": "@@ -39,7 +39,6 @@ namespace NFCSampleApp\n{\nvar app = new Program();\nForms.Init(app);\n- Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen in NFCSampleApp sample app. |
594,250 | 04.01.2021 13:58:29 | -3,600 | f134c98af6d40020561277641ba6ba00284da8d1 | [Wearable] Upgrade Tizen version in Preference sample app | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Preference/Preference/Preference.cs",
"new_path": "Wearable/Preference/Preference/Preference.cs",
"diff": "@@ -29,7 +29,7 @@ namespace Preference\n{\nvar app = new Program();\nForms.Init(app);\n- global::Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in Preference sample app |
594,250 | 04.01.2021 14:07:50 | -3,600 | e2a831e925ce793515d6f2c0e31063d5e22a5a19 | [Wearable] Upgrade Tizen version in SystemInfo2 sample application. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/SystemInfo2/SystemInfo2/SystemInfo2/SystemInfo2.cs",
"new_path": "Wearable/SystemInfo2/SystemInfo2/SystemInfo2/SystemInfo2.cs",
"diff": "@@ -29,7 +29,7 @@ namespace SystemInfo\n{\nvar app = new Program();\nForms.Init(app);\n- Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in SystemInfo2 sample application. |
594,250 | 04.01.2021 14:16:53 | -3,600 | 75a50f2ef773d09f5b6d5201ac95d8c86b9a282e | [Wearable] Updgrade Tizen version in NetworkApp sample application. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/NetworkApp/NetworkApp/NetworkApp.cs",
"new_path": "Wearable/NetworkApp/NetworkApp/NetworkApp.cs",
"diff": "@@ -37,7 +37,7 @@ namespace NetworkApp\n{\nvar app = new Program();\nForms.Init(app);\n- global::Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Updgrade Tizen version in NetworkApp sample application. |
594,250 | 04.01.2021 14:31:40 | -3,600 | e10366bc1d52881d113ad2d2179c6f5e6e15f18e | [Wearable] Upgrade Tizen version in VolumeController sample application. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/VolumeController/src/VolumeController/VolumeController.cs",
"new_path": "Wearable/VolumeController/src/VolumeController/VolumeController.cs",
"diff": "@@ -30,7 +30,7 @@ namespace VolumeController\n{\nvar app = new Program();\nForms.Init(app);\n- Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in VolumeController sample application. |
594,250 | 04.01.2021 14:45:28 | -3,600 | 94c8eb1181ef0b51ba81478bfa3bbc0177da5fa8 | [Wearable] Upgrade Tizen version in Wearther sample application. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Weather/Weather/Weather.cs",
"new_path": "Wearable/Weather/Weather/Weather.cs",
"diff": "@@ -30,7 +30,7 @@ namespace Weather\n{\nvar app = new Program();\nForms.Init(app);\n- Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in Wearther sample application. |
594,250 | 04.01.2021 15:12:22 | -3,600 | fb6319015bfe6e495eb699e9113636d5619bc076 | [Wearable] Upgrade Tizen version in QRCodeGenerator sample app. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/QRCodeGenerator/QRCodeGenerator/QRCodeGenerator.Tizen.Wearable/QRCodeGenerator.Tizen.Wearable.cs",
"new_path": "Wearable/QRCodeGenerator/QRCodeGenerator/QRCodeGenerator.Tizen.Wearable/QRCodeGenerator.Tizen.Wearable.cs",
"diff": "@@ -43,7 +43,7 @@ namespace QRCodeGenerator\n{\nvar app = new Program();\nForms.Init(app);\n- global::Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/QRCodeGenerator/QRCodeGenerator/QRCodeGenerator.Tizen.Wearable/QRCodeGenerator.Tizen.Wearable.csproj",
"new_path": "Wearable/QRCodeGenerator/QRCodeGenerator/QRCodeGenerator.Tizen.Wearable/QRCodeGenerator.Tizen.Wearable.csproj",
"diff": "-<Project Sdk=\"Tizen.NET.Sdk/1.0.9\">\n+<Project Sdk=\"Tizen.NET.Sdk/1.1.5\">\n<!-- Property Group for Tizen40 Project -->\n<PropertyGroup>\n<!-- Include Nuget Package for Tizen Project building -->\n<ItemGroup>\n- <PackageReference Include=\"Tizen.Wearable.CircularUI\" Version=\"1.4.0\" />\n+ <PackageReference Include=\"Tizen.Wearable.CircularUI\" Version=\"1.5.2\" />\n</ItemGroup>\n<ItemGroup>\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/QRCodeGenerator/QRCodeGenerator/QRCodeGenerator.Tizen.Wearable/Views/MainPage.xaml",
"new_path": "Wearable/QRCodeGenerator/QRCodeGenerator/QRCodeGenerator.Tizen.Wearable/Views/MainPage.xaml",
"diff": "<AbsoluteLayout>\n<Label Text=\"Welcome\"\nTextColor=\"#4CCDFC\"\n- AbsoluteLayout.LayoutBounds=\"122, 62 ,118, 34\"\n+ AbsoluteLayout.LayoutBounds=\"45, 62 ,118, 34\"\nFontFamily=\"BreezeSans\"\nFontSize=\"9.35\"\nHorizontalTextAlignment=\"Center\"\nIsVisible=\"{Binding FirstView}\" />\n<Label TextColor=\"#CCCCCC\"\n- AbsoluteLayout.LayoutBounds=\"82, 108 ,197, 101\"\n+ AbsoluteLayout.LayoutBounds=\"0, 108 ,197, 101\"\nFontFamily=\"BreezeSans\"\nFontSize=\"9.75\"\nHorizontalTextAlignment=\"Center\"\nBinding=\"{Binding FirstView}\"\nValue=\"False\">\n<Setter Property=\"AbsoluteLayout.LayoutBounds\"\n- Value=\"75, 127, 210, 108\" />\n+ Value=\"0, 127, 210, 108\" />\n</DataTrigger>\n</Label.Triggers>\n</Label>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in QRCodeGenerator sample app. |
594,250 | 04.01.2021 15:29:56 | -3,600 | b15f40b50e1d60785f77de1f8bc653d844ea57ea | [Wearable] Upgrade Tizen version in Geocoding sample application | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Geocoding/src/Geocoding/Geocoding.Tizen.Wearable/Geocoding.Tizen.Wearable.cs",
"new_path": "Wearable/Geocoding/src/Geocoding/Geocoding.Tizen.Wearable/Geocoding.Tizen.Wearable.cs",
"diff": "@@ -42,7 +42,7 @@ namespace Geocoding\n{\nvar app = new Program();\nForms.Init(app);\n- global::Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Geocoding/src/Geocoding/Geocoding.Tizen.Wearable/Views/MapPage.xaml.cs",
"new_path": "Wearable/Geocoding/src/Geocoding/Geocoding.Tizen.Wearable/Views/MapPage.xaml.cs",
"diff": "using System;\nusing System.Collections.Generic;\nusing System.Windows.Input;\n-using ElmSharp.Wearable;\nusing Geocoding.Tizen.Wearable.Controls;\nusing Geocoding.Tizen.Wearable.Services;\nusing Geocoding.ViewModels;\n@@ -136,7 +135,7 @@ namespace Geocoding.Tizen.Wearable.Views\nContent = _mapView;\n- RotaryEventManager.Rotated += OnRotaryChange;\n+ ElmSharp.Wearable.RotaryEventManager.Rotated += OnRotaryChange;\n}\n/// <summary>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in Geocoding sample application |
594,250 | 04.01.2021 15:39:08 | -3,600 | e30297774e736c5c8c83fe075fd252ff01ef5875 | [Wearable] Upgrade Tizen version in the ReverseGeocoding sample application. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/ReverseGeocoding/src/ReverseGeocoding/ReverseGeocoding.Tizen.Wearable/ReverseGeocoding.Tizen.Wearable.cs",
"new_path": "Wearable/ReverseGeocoding/src/ReverseGeocoding/ReverseGeocoding.Tizen.Wearable/ReverseGeocoding.Tizen.Wearable.cs",
"diff": "@@ -42,7 +42,7 @@ namespace ReverseGeocoding\n{\nvar app = new Program();\nForms.Init(app);\n- global::Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/ReverseGeocoding/src/ReverseGeocoding/ReverseGeocoding.Tizen.Wearable/Views/MainPage.xaml.cs",
"new_path": "Wearable/ReverseGeocoding/src/ReverseGeocoding/ReverseGeocoding.Tizen.Wearable/Views/MainPage.xaml.cs",
"diff": "@@ -20,7 +20,6 @@ using Xamarin.Forms;\nusing Xamarin.Forms.Platform.Tizen;\nusing Xamarin.Forms.Xaml;\nusing ReverseGeocoding.Common;\n-using ElmSharp.Wearable;\nusing ReverseGeocoding.Tizen.Wearable.Controls;\nnamespace ReverseGeocoding.Tizen.Wearable.Views\n@@ -191,7 +190,8 @@ namespace ReverseGeocoding.Tizen.Wearable.Views\n_mapAppeared = true;\n}\n- RotaryEventManager.Rotated += OnRotaryChange;\n+\n+ ElmSharp.Wearable.RotaryEventManager.Rotated += OnRotaryChange;\n_mapView.Map.LongPressed += OnMapLongPressed;\n}\n@@ -201,7 +201,7 @@ namespace ReverseGeocoding.Tizen.Wearable.Views\n/// </summary>\nprotected override void OnDisappearing()\n{\n- RotaryEventManager.Rotated -= OnRotaryChange;\n+ ElmSharp.Wearable.RotaryEventManager.Rotated -= OnRotaryChange;\n_mapView.Map.LongPressed -= OnMapLongPressed;\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in the ReverseGeocoding sample application. |
594,250 | 04.01.2021 15:58:50 | -3,600 | a3bedc72b7319ed743cd132a3163fec10b8dc7b7 | [Wearable] Upgrade Tizen version in the AppStatistics sample app. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/AppStatistics/src/AppStatistics/AppStatistics.Tizen.Wearable/AppStatistics.Tizen.Wearable.cs",
"new_path": "Wearable/AppStatistics/src/AppStatistics/AppStatistics.Tizen.Wearable/AppStatistics.Tizen.Wearable.cs",
"diff": "@@ -54,7 +54,7 @@ namespace AppStatistics\n{\nvar app = new Program();\nForms.Init(app);\n- global::Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/AppStatistics/src/AppStatistics/AppStatistics.Tizen.Wearable/Services/AppHistory.cs",
"new_path": "Wearable/AppStatistics/src/AppStatistics/AppStatistics.Tizen.Wearable/Services/AppHistory.cs",
"diff": "@@ -21,6 +21,7 @@ using Tizen;\nusing Tizen.Applications;\nusing AppStatistics.Tizen.Wearable.Services;\nusing AppStatistics.Utils;\n+using Range = AppStatistics.Utils.Range;\n[assembly: Xamarin.Forms.Dependency(typeof(AppHistory))]\nnamespace AppStatistics.Tizen.Wearable.Services\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in the AppStatistics sample app. |
594,250 | 04.01.2021 16:09:29 | -3,600 | 5966572536b7ef2a464a59b9ef09d53db84f572d | [Wearable] Upgrade Tizen version in the TextReader sample application. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/TextReader/TextReader/TextReader.cs",
"new_path": "Wearable/TextReader/TextReader/TextReader.cs",
"diff": "@@ -15,7 +15,7 @@ namespace TextReader\n{\nvar app = new Program();\nForms.Init(app);\n- global::Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in the TextReader sample application. |
594,250 | 05.01.2021 11:01:56 | -3,600 | 98869e77f4d8ba53a376e210ed3ee9d81f4fcc70 | [Wearable] Upgrade Tizen version in the Ultraviolet sample application. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Ultraviolet/src/Ultraviolet/Ultraviolet/Ultraviolet.Tizen.Wearable/Ultraviolet.Tizen.Wearable.cs",
"new_path": "Wearable/Ultraviolet/src/Ultraviolet/Ultraviolet/Ultraviolet.Tizen.Wearable/Ultraviolet.Tizen.Wearable.cs",
"diff": "@@ -40,7 +40,7 @@ namespace Ultraviolet\n{\nvar app = new Program();\nForms.Init(app);\n- global::Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in the Ultraviolet sample application. |
594,250 | 05.01.2021 12:28:16 | -3,600 | 3226f49521df3fa24cb020394bfd29a70e723d85 | [Wearable] Upgrade Tizen version in the SpeechToText sample application. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/SpeechToText/SpeechToText/SpeechToText.cs",
"new_path": "Wearable/SpeechToText/SpeechToText/SpeechToText.cs",
"diff": "@@ -27,7 +27,7 @@ namespace SpeechToText\n{\nvar app = new Program();\nForms.Init(app);\n- Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in the SpeechToText sample application. |
594,250 | 05.01.2021 12:37:44 | -3,600 | df65d3264368dc6ffd835db77545844aff0ed5eb | [Wearable] Upgrade Tizen version in the Level sample application. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Level/src/Level/Level.cs",
"new_path": "Wearable/Level/src/Level/Level.cs",
"diff": "@@ -40,7 +40,7 @@ namespace Level\n{\nvar app = new Program();\nForms.Init(app);\n- global::Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in the Level sample application. |
594,250 | 05.01.2021 13:25:17 | -3,600 | 25e6c247aaec49e11cfe960f4d9ce575a8ef5d07 | [Wearable] Upgrade Tizen version in the SquatCounter sample application. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/SquatCounter/src/SquatCounter/SquatCounter.cs",
"new_path": "Wearable/SquatCounter/src/SquatCounter/SquatCounter.cs",
"diff": "@@ -41,7 +41,7 @@ namespace SquatCounter\n{\nvar app = new Program();\nForms.Init(app);\n- global::Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in the SquatCounter sample application. |
594,250 | 05.01.2021 13:39:48 | -3,600 | c239e384688be116812fa66f21c4f59e48c23a74 | [Wearable] Upgrade Tizen version in the Pedometer sample application. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Pedometer/src/Pedometer/Pedometer.cs",
"new_path": "Wearable/Pedometer/src/Pedometer/Pedometer.cs",
"diff": "* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n+using Xamarin.Forms;\nusing Pedometer.Services;\nnamespace Pedometer\n@@ -40,8 +41,8 @@ namespace Pedometer\nstatic void Main(string[] args)\n{\nvar app = new Program();\n- global::Xamarin.Forms.Platform.Tizen.Forms.Init(app);\n- global::Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ Forms.Init(app);\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Pedometer/src/Pedometer/Views/MainPage.xaml.cs",
"new_path": "Wearable/Pedometer/src/Pedometer/Views/MainPage.xaml.cs",
"diff": "using System;\nusing Tizen.Wearable.CircularUI.Forms;\nusing Xamarin.Forms;\n-using ElmSharp.Wearable;\nnamespace Pedometer.Views\n{\n@@ -41,7 +40,7 @@ namespace Pedometer.Views\npublic MainPage()\n{\nInitializeComponent();\n- RotaryEventManager.Rotated += RotaryEventManager_Rotated;\n+ ElmSharp.Wearable.RotaryEventManager.Rotated += RotaryEventManager_Rotated;\nGetLabelImage(0).FadeTo(0);\nGetLabelImage(2).FadeTo(0);\nGetLabelImage(3).FadeTo(0);\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in the Pedometer sample application. |
594,250 | 08.01.2021 13:42:01 | -3,600 | 4e09c4ef4d071c548ea4bc7d205b7db9603bbb18 | [Wearable] Upgrade Tizen version in the Accounts sample application | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Accounts/Accounts/Accounts.cs",
"new_path": "Wearable/Accounts/Accounts/Accounts.cs",
"diff": "//See the License for the specific language governing permissions and\n//limitations under the License.\n+using Xamarin.Forms;\n+\nnamespace Accounts\n{\n/// <summary>\n@@ -37,8 +39,8 @@ namespace Accounts\n{\nvar app = new Program();\n- Xamarin.Forms.Platform.Tizen.Forms.Init(app);\n- Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\n+ Forms.Init(app);\n+ Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Accounts/Accounts/Views/AccountSignIn.xaml",
"new_path": "Wearable/Accounts/Accounts/Views/AccountSignIn.xaml",
"diff": "WidthRequest=\"140\"\nClicked=\"SignInClicked\"\nHorizontalOptions=\"CenterAndExpand\"\n- Font=\"Large\" />\n+ FontSize=\"Medium\" />\n</StackLayout>\n</w:CirclePage.Content>\n</w:CirclePage>\n\\ No newline at end of file\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Accounts/Accounts/Views/AccountSignOut.xaml",
"new_path": "Wearable/Accounts/Accounts/Views/AccountSignOut.xaml",
"diff": "WidthRequest=\"160\"\nHorizontalOptions=\"CenterAndExpand\"\nVerticalOptions=\"CenterAndExpand\"\n- Font=\"Large\" />\n+ FontSize=\"Medium\" />\n</StackLayout>\n</w:CirclePage.Content>\n</w:CirclePage>\n\\ No newline at end of file\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in the Accounts sample application |
594,250 | 13.01.2021 13:05:51 | -3,600 | 79d98b792fe0f97f72f8c935adf172fba3b79e20 | [Wearable] Upgrade Tizen version in the FindPlace sample application. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/FindPlace/src/FindPlace/FindPlace.Tizen.Wearable/Behaviors/RotaryBehavior.cs",
"new_path": "Wearable/FindPlace/src/FindPlace/FindPlace.Tizen.Wearable/Behaviors/RotaryBehavior.cs",
"diff": "* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n-using ElmSharp.Wearable;\nusing Tizen.Wearable.CircularUI.Forms;\nusing Xamarin.Forms;\n@@ -61,7 +60,7 @@ namespace FindPlace.Tizen.Wearable.Behaviors\nprotected override void OnAttachedTo(CirclePage bindable)\n{\nbase.OnAttachedTo(bindable);\n- RotaryEventManager.Rotated += OnRotated;\n+ ElmSharp.Wearable.RotaryEventManager.Rotated += OnRotated;\n}\n/// <summary>\n@@ -70,7 +69,7 @@ namespace FindPlace.Tizen.Wearable.Behaviors\n/// <param name=\"bindable\">Bindable object.</param>\nprotected override void OnDetachingFrom(CirclePage bindable)\n{\n- RotaryEventManager.Rotated -= OnRotated;\n+ ElmSharp.Wearable.RotaryEventManager.Rotated -= OnRotated;\nbase.OnDetachingFrom(bindable);\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade Tizen version in the FindPlace sample application. |
594,250 | 13.01.2021 13:46:26 | -3,600 | 40bd7a057f4c3328b00546b835859ceb3c1e9735 | [Wearable] Revert initializing CircularUI. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/AppHistory/AppHistory/AppHistory.cs",
"new_path": "Wearable/AppHistory/AppHistory/AppHistory.cs",
"diff": "@@ -21,6 +21,7 @@ namespace AppHistory\n{\nvar app = new Program();\nForms.Init(app);\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Badges/src/Badges/Badges.cs",
"new_path": "Wearable/Badges/src/Badges/Badges.cs",
"diff": "@@ -28,6 +28,7 @@ namespace Badges\n{\nvar app = new Program();\nForms.Init(app);\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Calculator/src/Calculator/Calculator.cs",
"new_path": "Wearable/Calculator/src/Calculator/Calculator.cs",
"diff": "@@ -51,6 +51,7 @@ namespace Calculator\n{\nvar app = new Program();\nForms.Init(app);\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/FeedbackApp/src/FeedbackApp/FeedbackApp.cs",
"new_path": "Wearable/FeedbackApp/src/FeedbackApp/FeedbackApp.cs",
"diff": "@@ -37,6 +37,7 @@ namespace FeedbackApp\n{\nvar app = new Program();\nForms.Init(app);\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/HeartRateMonitor/src/HeartRateMonitor/HeartRateMonitor.cs",
"new_path": "Wearable/HeartRateMonitor/src/HeartRateMonitor/HeartRateMonitor.cs",
"diff": "@@ -29,7 +29,7 @@ namespace HeartRateMonitor\n{\nvar app = new Program();\nForms.Init(app);\n-\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/NFCSampleApp/NFCSampleApp/NFCSampleApp.cs",
"new_path": "Wearable/NFCSampleApp/NFCSampleApp/NFCSampleApp.cs",
"diff": "@@ -39,6 +39,7 @@ namespace NFCSampleApp\n{\nvar app = new Program();\nForms.Init(app);\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/RotaryTimer/src/RotaryTimer/RotaryTimer.Tizen.Wearable/RotaryTimer.Tizen.Wearable.cs",
"new_path": "Wearable/RotaryTimer/src/RotaryTimer/RotaryTimer.Tizen.Wearable/RotaryTimer.Tizen.Wearable.cs",
"diff": "@@ -31,6 +31,7 @@ namespace RotaryTimer\n{\nvar app = new Program();\nForms.Init(app);\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/SystemInfo/src/SystemInfo/SystemInfo.Tizen.Wearable/SystemInfo.Tizen.Wearable.cs",
"new_path": "Wearable/SystemInfo/src/SystemInfo/SystemInfo.Tizen.Wearable/SystemInfo.Tizen.Wearable.cs",
"diff": "@@ -45,6 +45,7 @@ namespace SystemInfo.Tizen.Wearable\n{\nvar app = new Program();\nForms.Init(app);\n+ global::Tizen.Wearable.CircularUI.Forms.FormsCircularUI.Init();\napp.Run(args);\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Revert initializing CircularUI. |
594,236 | 05.01.2021 16:53:43 | -3,600 | b553dee6953d31703a18bf1099d673f9e4bdf47b | [Mobile] Updated CalendarComponent to API 6 | [
{
"change_type": "MODIFY",
"old_path": "Mobile/CalendarComponent/src/CalendarComponent/CalendarComponent/CalendarComponent.csproj",
"new_path": "Mobile/CalendarComponent/src/CalendarComponent/CalendarComponent/CalendarComponent.csproj",
"diff": "</PropertyGroup>\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n<ItemGroup>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile] Updated CalendarComponent to API 6 |
594,236 | 05.01.2021 16:56:14 | -3,600 | c5db6b2caa2105e0bd3d02c0173b3d73c2f84fc9 | [Mobile] Updated TextReader to API 6 | [
{
"change_type": "MODIFY",
"old_path": "Mobile/TextReader/src/TextReader/TextReader/TextReader.csproj",
"new_path": "Mobile/TextReader/src/TextReader/TextReader/TextReader.csproj",
"diff": "</PropertyGroup>\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n<!-- Include Nuget Package for Xamarin building -->\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile] Updated TextReader to API 6 |
594,236 | 05.01.2021 17:17:06 | -3,600 | 43698122cc6954431ce723c3bee6e80b281e4c62 | [Mobile] Updated Preference to API 6 | [
{
"change_type": "MODIFY",
"old_path": "Mobile/Preference/src/Preference/Preference.Tizen.Mobile/Preference.Tizen.Mobile.csproj",
"new_path": "Mobile/Preference/src/Preference/Preference.Tizen.Mobile/Preference.Tizen.Mobile.csproj",
"diff": "<PropertyGroup>\n<OutputType>Exe</OutputType>\n- <TargetFramework>tizen60</TargetFramework>\n+ <TargetFramework>tizen80</TargetFramework>\n</PropertyGroup>\n<PropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' \">\n</ItemGroup>\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n<ItemGroup>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Preference/src/Preference/Preference/Preference.csproj",
"new_path": "Mobile/Preference/src/Preference/Preference/Preference.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n</Project>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile] Updated Preference to API 6 |
594,236 | 05.01.2021 17:23:41 | -3,600 | 8c5b2e1d06de9bab422a9bcd2fa919b3d9321a92 | [Mobile] Updated SpeechToText to API 6 | [
{
"change_type": "MODIFY",
"old_path": "Mobile/SpeechToText/src/SpeechToText/SpeechToText.Tizen.Mobile/SpeechToText.Tizen.Mobile.csproj",
"new_path": "Mobile/SpeechToText/src/SpeechToText/SpeechToText.Tizen.Mobile/SpeechToText.Tizen.Mobile.csproj",
"diff": "<PropertyGroup>\n<OutputType>Exe</OutputType>\n- <TargetFramework>tizen60</TargetFramework>\n+ <TargetFramework>tizen80</TargetFramework>\n</PropertyGroup>\n<PropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' \">\n</ItemGroup>\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.657\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/SpeechToText/src/SpeechToText/SpeechToText/SpeechToText.csproj",
"new_path": "Mobile/SpeechToText/src/SpeechToText/SpeechToText/SpeechToText.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.657\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n</Project>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile] Updated SpeechToText to API 6 |
594,236 | 07.01.2021 16:30:29 | -3,600 | 9919728c16edb240b502679ce7101675137ef51f | [Mobile] Updated Badges to API 6 | [
{
"change_type": "MODIFY",
"old_path": "Mobile/Badges/src/Badges/Badges/Badges.csproj",
"new_path": "Mobile/Badges/src/Badges/Badges/Badges.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.495\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n</Project>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile] Updated Badges to API 6 |
594,236 | 07.01.2021 17:38:14 | -3,600 | 54abcc3d515dce60e88d74b05e349955f2bf6d0e | [Mobile] Updated SystemInfo to API 6 | [
{
"change_type": "MODIFY",
"old_path": "Mobile/SystemInfo/src/SystemInfo/SystemInfo/SystemInfo.csproj",
"new_path": "Mobile/SystemInfo/src/SystemInfo/SystemInfo/SystemInfo.csproj",
"diff": "</PropertyGroup>\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n</Project>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile] Updated SystemInfo to API 6 |
594,236 | 13.01.2021 15:40:45 | -3,600 | 17627a62ce6106f156fb9965700266cf744fc0b6 | [Mobile] Updated Weather to API 6 | [
{
"change_type": "MODIFY",
"old_path": "Mobile/Weather/Weather/Weather/Views/ForecastPage.xaml",
"new_path": "Mobile/Weather/Weather/Weather/Views/ForecastPage.xaml",
"diff": "<ContentPage xmlns=\"http://xamarin.com/schemas/2014/forms\"\nxmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\"\n- xmlns:xf=\"clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView\"\nxmlns:controls=\"clr-namespace:Weather.Controls;assembly=Weather\"\nxmlns:converters=\"clr-namespace:Weather.Converters;assembly=Weather\"\nxmlns:utils=\"clr-namespace:Weather.Utils;assembly=Weather\"\n<AbsoluteLayout>\n- <xf:CarouselView x:Name=\"CarouselView\"\n+ <CarouselView x:Name=\"CarouselView\"\nAbsoluteLayout.LayoutBounds=\"0,0,1,1\"\nAbsoluteLayout.LayoutFlags=\"All\"\nItemsSource=\"{Binding PagesViewModels}\">\n- <xf:CarouselView.ItemTemplate>\n+ <CarouselView.ItemTemplate>\n<DataTemplate>\n<StackLayout Spacing=\"25\">\n</StackLayout>\n</StackLayout>\n</DataTemplate>\n- </xf:CarouselView.ItemTemplate>\n- </xf:CarouselView>\n+ </CarouselView.ItemTemplate>\n+ </CarouselView>\n<Label Text=\"{Binding CityName}\"\nFontSize=\"50\"\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Weather/Weather/Weather/Views/MainPage.xaml",
"new_path": "Mobile/Weather/Weather/Weather/Views/MainPage.xaml",
"diff": "<Entry BackgroundColor=\"White\"\nAbsoluteLayout.LayoutFlags=\"None\"\n- AbsoluteLayout.LayoutBounds=\"20, 800, 50, 50\"\n+ AbsoluteLayout.LayoutBounds=\"20, 800, 150, 50\"\nHorizontalTextAlignment=\"Center\"\nText=\"{Binding EnteredCountry, Mode=OneWayToSource}\">\n<Entry.Behaviors>\n<Entry x:Name=\"CityEntry\"\nBackgroundColor=\"White\"\nAbsoluteLayout.LayoutFlags=\"None\"\n- AbsoluteLayout.LayoutBounds=\"90, 800, 610, 50\"\n+ AbsoluteLayout.LayoutBounds=\"190, 800, 510, 50\"\nText=\"{Binding EnteredCity, Mode=TwoWay}\">\n<Entry.Behaviors>\n<behaviors:CityNameValidatorBehavior\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Weather/Weather/Weather/Weather.csproj",
"new_path": "Mobile/Weather/Weather/Weather/Weather.csproj",
"diff": "<ItemGroup>\n<PackageReference Include=\"Newtonsoft.Json\" Version=\"12.0.3\" />\n<PackageReference Include=\"System.Net.Http\" Version=\"4.3.4\" />\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n<ItemGroup>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile] Updated Weather to API 6 |
594,249 | 15.01.2021 16:17:52 | -32,400 | 72b789888652224a7ffacbf2278d64e2130e2a87 | Update SQLite sample app
Use the latest version of SQLite related packages
Remove the dependencies of Tizen.Wearable.CircularUI package | [
{
"change_type": "MODIFY",
"old_path": "Wearable/SQLite.NET.Sample/SQLite.NET.Sample/App.cs",
"new_path": "Wearable/SQLite.NET.Sample/SQLite.NET.Sample/App.cs",
"diff": "using System;\nusing System.Collections.Generic;\n-using System.Linq;\n-using System.Text;\nusing Xamarin.Forms;\n-using Tizen.Wearable.CircularUI.Forms;\n-using SQLite;\n-using SQLitePCL;\nusing System.IO;\nnamespace SQLite.NET.Sample\n@@ -71,14 +66,14 @@ namespace SQLite.NET.Sample\n}\n// The root page of your application\n- MainPage = new CirclePage\n+ MainPage = new ContentPage\n{\nContent = new StackLayout\n{\nVerticalOptions = LayoutOptions.Center,\nChildren =\n{\n- new CircleListView\n+ new ListView\n{\nItemsSource = dbList\n}\n@@ -90,9 +85,6 @@ namespace SQLite.NET.Sample\npublic void InitiateSQLite()\n{\nbool needCreateTable = false;\n- // Need to initialize SQLite\n- raw.SetProvider(new SQLite3Provider_sqlite3());\n- raw.FreezeProvider(true);\n// Get writable directory info for this app.\nstring dataPath = global::Tizen.Applications.Application.Current.DirectoryInfo.Data;\n// Combine with database path and name\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/SQLite.NET.Sample/SQLite.NET.Sample/SQLite.NET.Sample.cs",
"new_path": "Wearable/SQLite.NET.Sample/SQLite.NET.Sample/SQLite.NET.Sample.cs",
"diff": "//See the License for the specific language governing permissions and\n//limitations under the License.\n-using System;\nusing Xamarin.Forms;\n+\nnamespace SQLite.NET.Sample\n{\nclass Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication\n@@ -29,7 +29,6 @@ namespace SQLite.NET.Sample\n{\nvar app = new Program();\nForms.Init(app);\n- Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init();\napp.Run(args);\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/SQLite.NET.Sample/SQLite.NET.Sample/SQLite.NET.Sample.csproj",
"new_path": "Wearable/SQLite.NET.Sample/SQLite.NET.Sample/SQLite.NET.Sample.csproj",
"diff": "<PropertyGroup>\n<OutputType>Exe</OutputType>\n- <TargetFramework>tizen60</TargetFramework>\n+ <TargetFramework>tizen40</TargetFramework>\n</PropertyGroup>\n<PropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' \">\n</ItemGroup>\n<ItemGroup>\n- <PackageReference Include=\"sqlite\" Version=\"3.13.0\" />\n- <PackageReference Include=\"sqlite-net-base\" Version=\"1.5.166-beta\" />\n- <PackageReference Include=\"SQLitePCLRaw.provider.sqlite3.netstandard11\" Version=\"1.1.14\" />\n- <PackageReference Include=\"Tizen.Wearable.CircularUI\" Version=\"1.4.0\" />\n+ <PackageReference Include=\"sqlite-net-pcl\" Version=\"1.8.0-beta\" />\n+ <PackageReference Include=\"SQLitePCLRaw.bundle_sqlite3\" Version=\"2.0.5-pre20201231105030\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.1874\" />\n</ItemGroup>\n</Project>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Update SQLite sample app
- Use the latest version of SQLite related packages
- Remove the dependencies of Tizen.Wearable.CircularUI package |
594,254 | 18.01.2021 09:40:27 | -3,600 | 9166146def4c081c7d26c94d8359c155865c94c2 | [NUI][CustomLayout] Code cleanup.
Fixes:
1. Fixed invalid dependencies
2. Fixed back key handling on emulator
3. Fixed whitespaces | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/NUI_CustomLayout.cs",
"new_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/NUI_CustomLayout.cs",
"diff": "@@ -141,8 +141,8 @@ namespace SimpleLayout\n{\nswitch (eventArgs.Key.KeyPressedName)\n{\n- case \"Escape\":\ncase \"Back\":\n+ case \"XF86Back\": //for emulator\n{\nExit();\n}\n@@ -156,6 +156,7 @@ namespace SimpleLayout\nLog.Debug(LOG_TAG, \"============================= START APP =====================================\");\nSimpleLayout simpleLayout = new SimpleLayout();\nsimpleLayout.Run(args);\n+ simpleLayout.Dispose();\n}\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [NUI][CustomLayout] Code cleanup.
Fixes:
1. Fixed invalid dependencies
2. Fixed back key handling on emulator
3. Fixed whitespaces |
594,254 | 12.11.2020 09:50:04 | -3,600 | 7cd2430d51efe4d2b253cfe61ac16d5c6d4a8b49 | [Mobile][NUI][CustomView] Added custom view sample.
This sample applicaiton code was used to enhance documentation for
Custom View interface. This example don't contain any json code. Only
minimum set of functions and visuals was used to implement view from
screenshot. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI_CustomView/NUI_CustomView.sln",
"diff": "+Microsoft Visual Studio Solution File, Format Version 12.00\n+# Visual Studio 14\n+VisualStudioVersion = 14.0.25420.1\n+MinimumVisualStudioVersion = 10.0.40219.1\n+Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"NUI_CustomView\", \"NUI_CustomView/NUI_CustomView.csproj\", \"{ddcdb582-c084-48ba-bad6-64df2f367478}\"\n+EndProject\n+Global\n+ GlobalSection(SolutionConfigurationPlatforms) = preSolution\n+ Debug|Any CPU = Debug|Any CPU\n+ Release|Any CPU = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(ProjectConfigurationPlatforms) = postSolution\n+ {ddcdb582-c084-48ba-bad6-64df2f367478}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n+ {ddcdb582-c084-48ba-bad6-64df2f367478}.Debug|Any CPU.Build.0 = Debug|Any CPU\n+ {ddcdb582-c084-48ba-bad6-64df2f367478}.Release|Any CPU.ActiveCfg = Release|Any CPU\n+ {ddcdb582-c084-48ba-bad6-64df2f367478}.Release|Any CPU.Build.0 = Release|Any CPU\n+ EndGlobalSection\n+ GlobalSection(SolutionProperties) = preSolution\n+ HideSolutionNode = FALSE\n+ EndGlobalSection\n+EndGlobal\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomView/NUI_CustomView/res/images/bg.png",
"new_path": "Mobile/NUI_CustomView/NUI_CustomView/res/images/bg.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomView/NUI_CustomView/res/images/bg.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomView/NUI_CustomView/res/images/cbg.png",
"new_path": "Mobile/NUI_CustomView/NUI_CustomView/res/images/cbg.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomView/NUI_CustomView/res/images/cbg.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomView/NUI_CustomView/res/images/contact.png",
"new_path": "Mobile/NUI_CustomView/NUI_CustomView/res/images/contact.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomView/NUI_CustomView/res/images/contact.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomView/NUI_CustomView/res/images/delete.png",
"new_path": "Mobile/NUI_CustomView/NUI_CustomView/res/images/delete.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomView/NUI_CustomView/res/images/delete.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomView/NUI_CustomView/res/images/edit.png",
"new_path": "Mobile/NUI_CustomView/NUI_CustomView/res/images/edit.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomView/NUI_CustomView/res/images/edit.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomView/NUI_CustomView/res/images/favorite.png",
"new_path": "Mobile/NUI_CustomView/NUI_CustomView/res/images/favorite.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomView/NUI_CustomView/res/images/favorite.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomView/NUI_CustomView/shared/res/NUI_CustomView.png",
"new_path": "Mobile/NUI_CustomView/NUI_CustomView/shared/res/NUI_CustomView.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomView/NUI_CustomView/shared/res/NUI_CustomView.png differ\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI_CustomView/README.md",
"diff": "+# Maps\n+\n+This sample application demonstrate how user can use NUI Custom View to implement own widget view.\n+\n+\n+\n+\n+### Features\n+* Custom View implementation\n+* Basic Visuals usage example\n+\n+### Prerequisites\n+\n+* [Visual Studio](https://www.visualstudio.com/) - Buildtool, IDE\n+* [Visual Studio Tools for Tizen](https://docs.tizen.org/application/vstools/install) - Visual Studio plugin for Tizen .NET application development\n+\n+### Precondition\n+\n+* The Tizen mobile emulator\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CustomView/Screenshots/contact_view.png",
"new_path": "Mobile/NUI_CustomView/Screenshots/contact_view.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CustomView/Screenshots/contact_view.png differ\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI][CustomView] Added custom view sample.
This sample applicaiton code was used to enhance documentation for
Custom View interface. This example don't contain any json code. Only
minimum set of functions and visuals was used to implement view from
screenshot. |
594,254 | 18.01.2021 09:50:08 | -3,600 | b49eaa10ec5b09dcda51b02f5c853c3322141c57 | [Mobile][NUI][CustomView] Added dispose for cleanup and fixed typo. | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_CustomView/NUI_CustomView/NUI_CustomView.cs",
"new_path": "Mobile/NUI_CustomView/NUI_CustomView/NUI_CustomView.cs",
"diff": "@@ -19,7 +19,6 @@ namespace NUI_CustomView\nImageView background = new ImageView(DirectoryInfo.Resource + \"/images/bg.png\");\nbackground.Size2D = new Size2D(window.Size.Width, window.Size.Height);\nwindow.Add(background);\n-]\nView mainView = new View();\nLinearLayout ly = new LinearLayout();\n@@ -50,6 +49,7 @@ namespace NUI_CustomView\n{\nvar app = new Program();\napp.Run(args);\n+ app.Dispose();\n}\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI][CustomView] Added dispose for cleanup and fixed typo. |
594,254 | 18.01.2021 09:57:53 | -3,600 | 4ce85b302324835426f0202c3213dbeedf69d769 | [Mobile][NUI][Layer] Handle emulator back key and add cleanup | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_Layer/NUI_Layer/NUI_Layer.cs",
"new_path": "Mobile/NUI_Layer/NUI_Layer/NUI_Layer.cs",
"diff": "@@ -92,6 +92,7 @@ namespace NUILayer\n{\ncase \"Escape\":\ncase \"Back\":\n+ case \"XF86Back\":\n{\nExit();\n}\n@@ -130,6 +131,7 @@ namespace NUILayer\n{\nvar app = new Program();\napp.Run(args);\n+ app.Dispose();\n}\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI][Layer] Handle emulator back key and add cleanup |
594,266 | 20.01.2021 13:46:24 | -3,600 | 7ba07964cb0e9597256b9b1453b46a27dfb0b69f | [Wearable] ImageSample: Apply review comments | [
{
"change_type": "MODIFY",
"old_path": "Wearable/ImageSample/ImageSample/ImageSample.cs",
"new_path": "Wearable/ImageSample/ImageSample/ImageSample.cs",
"diff": "@@ -33,24 +33,24 @@ namespace ImageSample\n/// <summary>\n/// A list of image URL\n/// </summary>\n- private static string mResourceUrl = Tizen.Applications.Application.Current.DirectoryInfo.Resource + \"images\";\n+ private static string resourceUrl = Tizen.Applications.Application.Current.DirectoryInfo.Resource + \"images\";\n// Pixel Area Image Url\n- private static string mPixelAreaImageUrl = mResourceUrl + \"/gallery-1.jpg\";\n+ private static string pixelAreaImageUrl = resourceUrl + \"/gallery-1.jpg\";\n// SVG Image Url\n- private static string mSVGImageUrl = mResourceUrl + \"/Kid1.svg\";\n+ private static string svgImageUrl = resourceUrl + \"/Kid1.svg\";\n// GIF Image Url\n- private static string mGIFImageUrl = mResourceUrl + \"/dog-anim.gif\";\n+ private static string gifImageUrl = resourceUrl + \"/dog-anim.gif\";\n// Nine patch Image Url\n- private static string mNinePatchImageUrl = mResourceUrl + \"/heartsframe.9.png\";\n+ private static string ninePatchImageUrl = resourceUrl + \"/heartsframe.9.png\";\n// Mask Image Url\n- private static string mMaskImageUrl = mResourceUrl + \"/mc_playlist_thumbnail_play.png\";\n+ private static string maskImageUrl = resourceUrl + \"/mc_playlist_thumbnail_play.png\";\n// Mask background Image Url\n- private static string mMaskBackgroundImageUrl = mResourceUrl + \"/gallery-large-20.jpg\";\n+ private static string maskBackgroundImageUrl = resourceUrl + \"/gallery-large-20.jpg\";\n// Image Url for the FittingMode\n- private static string mFittingModeImageUrl = mResourceUrl + \"/dali-logo.png\";\n+ private static string fittingModeImageUrl = resourceUrl + \"/dali-logo.png\";\n// A string list of sample cases\n- private string[] mCaseString =\n+ private string[] caseString =\n{\n\"Pixel Area\",\n\"SVG\",\n@@ -62,7 +62,7 @@ namespace ImageSample\n// A Boolean list for the usage of PushButton\n// - In case of GIF sample, PushButton is not needed.\n- private bool[] mNeedButton =\n+ private bool[] needButton =\n{\ntrue,\ntrue,\n@@ -71,35 +71,35 @@ namespace ImageSample\ntrue,\ntrue\n};\n- private uint mCaseCount = 6;\n- private int mCurruntCaseIndex;\n+ private uint caseCount = 6;\n+ private int curruntCaseIndex;\n// Main view.\nprivate View root;\n// A View contains every ImageViews.\n- private View mImagesView;\n+ private View imagesView;\n// UI properties\n- private Animation[] mImageTableViewAnimation;\n- private Size mImageSize = new Size(150, 150);\n+ private Animation[] imageTableViewAnimation;\n+ private Size imageSize = new Size(150, 150);\n- private TableView mButtonTableView;\n+ private TableView buttonTableView;\n- private Position mButtonTableViewStartPosition = new Position(65, 90, 0);\n- private Animation[] mButtonTableViewAnimation;\n- private Size mButtonSize = new Size(230, 35);\n+ private Position buttonTableViewStartPosition = new Position(65, 90, 0);\n+ private Animation[] buttonTableViewAnimation;\n+ private Size buttonSize = new Size(230, 35);\n- private bool mTouched = false;\n- private bool mTouchedInButton = false;\n+ private bool touched = false;\n+ private bool touchedInButton = false;\n- private float mLargePointSize = 10.0f;\n- private float mMiddlePointSize = 5.0f;\n- private float mSmallPointSize = 3.0f;\n- private Vector2 mTouchedPosition;\n+ private float largePointSize = 10.0f;\n+ private float middlePointSize = 5.0f;\n+ private float smallPointSize = 3.0f;\n+ private Vector2 touchedPosition;\n- bool mMasked = false;\n- int mFittingMode = 0;\n+ bool masked = false;\n+ int fittingMode = 0;\n/// <summary>\n/// The constructor with null\n@@ -144,7 +144,7 @@ namespace ImageSample\ntitle.FontFamily = \"Samsung One 600\";\n// Not use MultiLine of TextLabel\ntitle.MultiLine = false;\n- title.PointSize = mLargePointSize;\n+ title.PointSize = largePointSize;\nroot.Add(title);\n// Create subTitle TextLabel\n@@ -161,7 +161,7 @@ namespace ImageSample\nsubTitle.FontFamily = \"Samsung One 600\";\n// Not use MultiLine of TextLabel\nsubTitle.MultiLine = false;\n- subTitle.PointSize = mSmallPointSize;\n+ subTitle.PointSize = smallPointSize;\nroot.Add(subTitle);\n// Create each Image sample cases.\n@@ -170,22 +170,22 @@ namespace ImageSample\nCreateButtons();\n// Animation setting for the image animation\n- mImageTableViewAnimation = new Animation[2];\n- mImageTableViewAnimation[0] = new Animation();\n- mImageTableViewAnimation[0].Duration = 100;\n- mImageTableViewAnimation[0].AnimateBy(mImagesView, \"Position\", new Vector3(-360, 0, 0));\n- mImageTableViewAnimation[1] = new Animation();\n- mImageTableViewAnimation[1].Duration = 100;\n- mImageTableViewAnimation[1].AnimateBy(mImagesView, \"Position\", new Vector3(360, 0, 0));\n+ imageTableViewAnimation = new Animation[2];\n+ imageTableViewAnimation[0] = new Animation();\n+ imageTableViewAnimation[0].Duration = 100;\n+ imageTableViewAnimation[0].AnimateBy(imagesView, \"Position\", new Vector3(-360, 0, 0));\n+ imageTableViewAnimation[1] = new Animation();\n+ imageTableViewAnimation[1].Duration = 100;\n+ imageTableViewAnimation[1].AnimateBy(imagesView, \"Position\", new Vector3(360, 0, 0));\n// Animation setting for the button animation\n- mButtonTableViewAnimation = new Animation[2];\n- mButtonTableViewAnimation[0] = new Animation();\n- mButtonTableViewAnimation[0].Duration = 100;\n- mButtonTableViewAnimation[0].AnimateBy(mButtonTableView, \"Position\", new Vector3(-360, 0, 0));\n- mButtonTableViewAnimation[1] = new Animation();\n- mButtonTableViewAnimation[1].Duration = 100;\n- mButtonTableViewAnimation[1].AnimateBy(mButtonTableView, \"Position\", new Vector3(360, 0, 0));\n+ buttonTableViewAnimation = new Animation[2];\n+ buttonTableViewAnimation[0] = new Animation();\n+ buttonTableViewAnimation[0].Duration = 100;\n+ buttonTableViewAnimation[0].AnimateBy(buttonTableView, \"Position\", new Vector3(-360, 0, 0));\n+ buttonTableViewAnimation[1] = new Animation();\n+ buttonTableViewAnimation[1].Duration = 100;\n+ buttonTableViewAnimation[1].AnimateBy(buttonTableView, \"Position\", new Vector3(360, 0, 0));\nwindow.Add(root);\n@@ -200,21 +200,21 @@ namespace ImageSample\nprivate void CreateImages()\n{\n// Construct new View to set each Image.\n- mImagesView = new View();\n- mImagesView.PositionUsesPivotPoint = true;\n- mImagesView.PivotPoint = PivotPoint.CenterLeft;\n- mImagesView.ParentOrigin = ParentOrigin.CenterLeft;\n+ imagesView = new View();\n+ imagesView.PositionUsesPivotPoint = true;\n+ imagesView.PivotPoint = PivotPoint.CenterLeft;\n+ imagesView.ParentOrigin = ParentOrigin.CenterLeft;\n// Set imageview size\n- mImagesView.Size = new Size((int)mCaseCount * 360, mImageSize.Height);\n- root.Add(mImagesView);\n+ imagesView.Size = new Size((int)caseCount * 360, imageSize.Height);\n+ root.Add(imagesView);\nPosition stp = new Position(180, 0, 0);\n- for (uint i = 0; i < mCaseCount; ++i)\n+ for (uint i = 0; i < caseCount; ++i)\n{\n// Create a Image\n- View image = CreateImage(mCaseString[i], stp + new Position(i * 360, 0, 0));\n+ View image = CreateImage(caseString[i], stp + new Position(i * 360, 0, 0));\n// Add image to ImagesView\n- mImagesView.Add(image);\n+ imagesView.Add(image);\n}\n}\n@@ -227,7 +227,7 @@ namespace ImageSample\nprivate View CreateImage(string text, Position position)\n{\nView view = null;\n- if (text == mCaseString[0])\n+ if (text == caseString[0])\n{\nTableView pixelAreaTableView = new TableView(2, 2);\n@@ -238,7 +238,7 @@ namespace ImageSample\nfor (uint j = 0; j < 2; j++)\n{\n// Create new ImageView to contain each part of Image\n- imageView[i * 2 + j] = new ImageView(mPixelAreaImageUrl);\n+ imageView[i * 2 + j] = new ImageView(pixelAreaImageUrl);\nimageView[i * 2 + j].HeightResizePolicy = ResizePolicyType.FillToParent;\nimageView[i * 2 + j].WidthResizePolicy = ResizePolicyType.FillToParent;\n// Put these imageView at different position.\n@@ -248,25 +248,25 @@ namespace ImageSample\nview = pixelAreaTableView;\n}\n- else if (text == mCaseString[1])\n+ else if (text == caseString[1])\n{\n//Create an imageView to show the SVG file.\n- ImageView imageView = new ImageView(mSVGImageUrl);\n+ ImageView imageView = new ImageView(svgImageUrl);\nview = imageView;\n}\n- else if (text == mCaseString[2])\n+ else if (text == caseString[2])\n{\n//Create an imageView to show the GIF file.\n- ImageView imageView = new ImageView(mGIFImageUrl);\n+ ImageView imageView = new ImageView(gifImageUrl);\nview = imageView;\n}\n- else if (text == mCaseString[3])\n+ else if (text == caseString[3])\n{\n//Create an imageView to show the NinePatch file.\n- ImageView imageView = new ImageView(mNinePatchImageUrl);\n+ ImageView imageView = new ImageView(ninePatchImageUrl);\nview = imageView;\n}\n- else if (text == mCaseString[4])\n+ else if (text == caseString[4])\n{\n//Create an imageView to show the Mask.\nImageView imageView = new ImageView();\n@@ -274,24 +274,24 @@ namespace ImageSample\n// Image Visual with MaskBackgroundImage\n// Set Image properties of the Image View\npropertyMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image))\n- .Add(ImageVisualProperty.URL, new PropertyValue(mMaskBackgroundImageUrl));\n+ .Add(ImageVisualProperty.URL, new PropertyValue(maskBackgroundImageUrl));\nimageView.Image = propertyMap;\nview = imageView;\n- mMasked = false;\n+ masked = false;\n}\n- else if (text == mCaseString[5])\n+ else if (text == caseString[5])\n{\n//Create an imageView to show the Fitting Mode.\n- mFittingMode = (int)FittingModeType.ShrinkToFit;\n+ fittingMode = (int)FittingModeType.ShrinkToFit;\nImageView imageView = new ImageView();\nPropertyMap propertyMap = new PropertyMap();\n// Image Visual with default FittingMode\n// Set Image properties of the Image View\npropertyMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image))\n- .Add(ImageVisualProperty.URL, new PropertyValue(mFittingModeImageUrl))\n- .Add(ImageVisualProperty.DesiredWidth, new PropertyValue(mImageSize.Width))\n- .Add(ImageVisualProperty.DesiredHeight, new PropertyValue(mImageSize.Height))\n- .Add(ImageVisualProperty.FittingMode, new PropertyValue(mFittingMode))\n+ .Add(ImageVisualProperty.URL, new PropertyValue(fittingModeImageUrl))\n+ .Add(ImageVisualProperty.DesiredWidth, new PropertyValue(imageSize.Width))\n+ .Add(ImageVisualProperty.DesiredHeight, new PropertyValue(imageSize.Height))\n+ .Add(ImageVisualProperty.FittingMode, new PropertyValue(fittingMode))\n.Add(ImageVisualProperty.SamplingMode, new PropertyValue((int)SamplingModeType.Box));\nimageView.Image = propertyMap;\nview = imageView;\n@@ -299,7 +299,7 @@ namespace ImageSample\nif (view != null) {\n// View position setting\n- view.Size = mImageSize;\n+ view.Size = imageSize;\nview.PositionUsesPivotPoint = true;\nview.PivotPoint = PivotPoint.Center;\nview.ParentOrigin = ParentOrigin.CenterLeft;\n@@ -314,29 +314,29 @@ namespace ImageSample\nprivate void CreateButtons()\n{\n// Create tableView used to put PushButton.\n- mButtonTableView = new TableView(1, mCaseCount);\n+ buttonTableView = new TableView(1, caseCount);\n// Set the position of tableView.\n- mButtonTableView.PositionUsesPivotPoint = true;\n- mButtonTableView.PivotPoint = PivotPoint.CenterLeft;\n- mButtonTableView.ParentOrigin = ParentOrigin.CenterLeft;\n- mButtonTableView.Position = mButtonTableViewStartPosition;\n+ buttonTableView.PositionUsesPivotPoint = true;\n+ buttonTableView.PivotPoint = PivotPoint.CenterLeft;\n+ buttonTableView.ParentOrigin = ParentOrigin.CenterLeft;\n+ buttonTableView.Position = buttonTableViewStartPosition;\n// Width of each cell is set to window's width\n- for (uint i = 0; i < mCaseCount; ++i)\n+ for (uint i = 0; i < caseCount; ++i)\n{\n- mButtonTableView.SetFixedWidth(i, 360);\n+ buttonTableView.SetFixedWidth(i, 360);\n}\n- root.Add(mButtonTableView);\n+ root.Add(buttonTableView);\n// Create button for the each case.\n- for (uint i = 0; i < mCaseCount; ++i)\n+ for (uint i = 0; i < caseCount; ++i)\n{\n// Create a button with string.\n- Button mButton = CreateButton(mCaseString[i], mNeedButton[i]);\n+ Button button = CreateButton(caseString[i], needButton[i]);\n// Bind PushButton's click event to ButtonClick.\n- mButton.TouchEvent += OnButtonTouched;\n- mButton.PointSize = 3;\n- mButtonTableView.AddChild(mButton, new TableView.CellPosition(0, i));\n+ button.TouchEvent += OnButtonTouched;\n+ button.PointSize = 3;\n+ buttonTableView.AddChild(button, new TableView.CellPosition(0, i));\n}\n}\n@@ -355,7 +355,7 @@ namespace ImageSample\n// Set text color\nmap.Add(TextVisualProperty.TextColor, new PropertyValue(color));\n// Set text pointSize\n- map.Add(TextVisualProperty.PointSize, new PropertyValue(mMiddlePointSize));\n+ map.Add(TextVisualProperty.PointSize, new PropertyValue(middlePointSize));\nmap.Add(TextVisualProperty.HorizontalAlignment, new PropertyValue(\"CENTER\"));\nmap.Add(TextVisualProperty.VerticalAlignment, new PropertyValue(\"CENTER\"));\nmap.Add(TextVisualProperty.FontFamily, new PropertyValue(\"Samsung One 400\"));\n@@ -385,7 +385,7 @@ namespace ImageSample\n{\nButton button = new Button();\nbutton.Name = text;\n- button.Size = mButtonSize;\n+ button.Size = buttonSize;\nbutton.ClearBackground();\nbutton.Position = new Position(50, 0, 0);\n@@ -422,13 +422,13 @@ namespace ImageSample\n{\n// If State is Down (Touched at the outside of Button)\n// - Store touched position.\n- // - Set the mTouched to true\n- // - Set the mTouchedInButton to false\n+ // - Set the touched to true\n+ // - Set the touchedInButton to false\ncase PointStateType.Down:\n{\n- mTouchedPosition = e.Touch.GetScreenPosition(0);\n- mTouched = true;\n- mTouchedInButton = false;\n+ touchedPosition = e.Touch.GetScreenPosition(0);\n+ touched = true;\n+ touchedInButton = false;\nbreak;\n}\n// If State is Motion\n@@ -437,16 +437,16 @@ namespace ImageSample\n// - If the amount of movement is larger than threshold, run the swipe animation(left or right).\ncase PointStateType.Motion:\n{\n- if (!mTouched)\n+ if (!touched)\n{\nbreak;\n}\n// If the vertical movement is large, the gesture is ignored.\n- Vector2 displacement = e.Touch.GetScreenPosition(0) - mTouchedPosition;\n+ Vector2 displacement = e.Touch.GetScreenPosition(0) - touchedPosition;\nif (Math.Abs(displacement.Y) > 20)\n{\n- mTouched = false;\n+ touched = false;\nbreak;\n}\n// If displacement is larger than threshold\n@@ -454,23 +454,23 @@ namespace ImageSample\nif (displacement.X > 30)\n{\nAnimateAStepNegative();\n- mTouched = false;\n+ touched = false;\n}\n// If displacement is smaller than threshold\n// Play Positive directional animation.\nif (displacement.X < -30)\n{\nAnimateAStepPositive();\n- mTouched = false;\n+ touched = false;\n}\nbreak;\n}\n// If State is Up\n- // - Reset the mTouched flag\n+ // - Reset the touched flag\ncase PointStateType.Up:\n{\n- mTouched = false;\n+ touched = false;\nbreak;\n}\n}\n@@ -493,13 +493,13 @@ namespace ImageSample\n{\n// If State is Down (Touched at the inside of Button)\n// - Store touched position.\n- // - Set the mTouched to true\n- // - Set the mTouchedInButton to true\n+ // - Set the touched to true\n+ // - Set the touchedInButton to true\ncase PointStateType.Down:\n{\n- mTouchedPosition = e.Touch.GetScreenPosition(0);\n- mTouched = true;\n- mTouchedInButton = true;\n+ touchedPosition = e.Touch.GetScreenPosition(0);\n+ touched = true;\n+ touchedInButton = true;\nbreak;\n}\n// If State is Motion\n@@ -508,16 +508,16 @@ namespace ImageSample\n// - If the amount of movement is larger than threshold, run the swipe animation(left or right).\ncase PointStateType.Motion:\n{\n- if (!mTouched)\n+ if (!touched)\n{\nbreak;\n}\n// If the vertical movement is large, the gesture is ignored.\n- Vector2 displacement = e.Touch.GetScreenPosition(0) - mTouchedPosition;\n+ Vector2 displacement = e.Touch.GetScreenPosition(0) - touchedPosition;\nif (Math.Abs(displacement.Y) > 20)\n{\n- mTouched = false;\n+ touched = false;\nbreak;\n}\n@@ -526,29 +526,29 @@ namespace ImageSample\nif (displacement.X > 30)\n{\nAnimateAStepNegative();\n- mTouched = false;\n+ touched = false;\n}\n// If displacement is smaller than threshold\n// Play Positive directional animation.\nif (displacement.X < -30)\n{\nAnimateAStepPositive();\n- mTouched = false;\n+ touched = false;\n}\nbreak;\n}\n// If State is Up\n- // - If both of mTouched and mTouchedInButton flags are true, run the ButtonClick function.\n- // - Reset the mTouched flag\n+ // - If both of touched and touchedInButton flags are true, run the ButtonClick function.\n+ // - Reset the touched flag\ncase PointStateType.Up:\n{\n- if (mTouched && mTouchedInButton)\n+ if (touched && touchedInButton)\n{\nButtonClick(source);\n}\n- mTouched = false;\n+ touched = false;\nbreak;\n}\n}\n@@ -562,12 +562,12 @@ namespace ImageSample\nprivate void AnimateAStepNegative()\n{\n// If the state is not the first one, move ImageViews and PushButton a step.\n- if (mCurruntCaseIndex > 0)\n+ if (curruntCaseIndex > 0)\n{\n- mCurruntCaseIndex--;\n+ curruntCaseIndex--;\n- mImageTableViewAnimation[1].Play();\n- mButtonTableViewAnimation[1].Play();\n+ imageTableViewAnimation[1].Play();\n+ buttonTableViewAnimation[1].Play();\n}\n}\n@@ -578,12 +578,12 @@ namespace ImageSample\n{\n// If the state is not the last one, move ImageViews and PushButton a step.\n- if (mCurruntCaseIndex < mCaseCount - 1)\n+ if (curruntCaseIndex < caseCount - 1)\n{\n- mCurruntCaseIndex++;\n+ curruntCaseIndex++;\n- mImageTableViewAnimation[0].Play();\n- mButtonTableViewAnimation[0].Play();\n+ imageTableViewAnimation[0].Play();\n+ buttonTableViewAnimation[0].Play();\n}\n}\n@@ -598,7 +598,7 @@ namespace ImageSample\n// check what the button is clicked\n// and change the properties.\nButton button = source as Button;\n- if (button.Name == mCaseString[0])\n+ if (button.Name == caseString[0])\n{\nAnimation animation = new Animation(2000);\nfor (uint i = 0; i < 2; i++)\n@@ -608,60 +608,60 @@ namespace ImageSample\n// animate the pixel area property on image view,\n// the animatable pixel area property is registered on the actor,\n// which overwrites the property on the renderer\n- TableView tableView = (TableView)mImagesView.GetChildAt(0);\n+ TableView tableView = (TableView)imagesView.GetChildAt(0);\nanimation.AnimateTo(tableView.GetChildAt(new TableView.CellPosition(j, i)), \"pixelArea\", new Vector4(0.33f * i, 0.33f * j, 0.33f, 0.33f), new AlphaFunction(AlphaFunction.BuiltinFunctions.Bounce));\n}\n}\n// play animation.\nanimation.Play();\n}\n- else if (button.Name == mCaseString[1])\n+ else if (button.Name == caseString[1])\n{\n// Change the SVG image size to show the characteristics of SVG.\n- if (((ImageView)mImagesView.GetChildAt(1)).Size.Width == mImageSize.Width * 4 / 3)\n+ if (((ImageView)imagesView.GetChildAt(1)).Size.Width == imageSize.Width * 4 / 3)\n{\n// Change the LabelText.\nbutton.Text = \"SVG, Zoom Out\";\n// Size down the SVG image.\n- ((ImageView)mImagesView.GetChildAt(1)).Size = mImageSize;\n+ ((ImageView)imagesView.GetChildAt(1)).Size = imageSize;\n}\nelse\n{\n// Change the LabelText.\nbutton.Text = \"SVG, Zoom In\";\n// Size up the SVG image.\n- ((ImageView)mImagesView.GetChildAt(1)).Size = mImageSize * 4 / 3;\n+ ((ImageView)imagesView.GetChildAt(1)).Size = imageSize * 4 / 3;\n}\n}\n- else if (button.Name == mCaseString[3])\n+ else if (button.Name == caseString[3])\n{\n// Change the nine patch image size to show the characteristics of nine patch.\n- if (((ImageView)mImagesView.GetChildAt(3)).Size.Width == mImageSize.Width * 4 / 3)\n+ if (((ImageView)imagesView.GetChildAt(3)).Size.Width == imageSize.Width * 4 / 3)\n{\n// Change the LabelText.\nbutton.Text = \"Nine Patch, Zoom Out\";\n// Size down the nine patch image.\n- ((ImageView)mImagesView.GetChildAt(3)).Size = mImageSize;\n+ ((ImageView)imagesView.GetChildAt(3)).Size = imageSize;\n}\nelse\n{\n// Change the LabelText.\nbutton.Text = \"Nine Patch, Zoom In\";\n// Size up the nine patch image.\n- ((ImageView)mImagesView.GetChildAt(3)).Size = mImageSize * 4 / 3;\n+ ((ImageView)imagesView.GetChildAt(3)).Size = imageSize * 4 / 3;\n}\n}\n- else if (button.Name == mCaseString[4])\n+ else if (button.Name == caseString[4])\n{\n// Create new PropertyMap to show the change(on/off) of mask Property.\n- if (mMasked)\n+ if (masked)\n{\n// Create new PropertyMap with Image Mask off.\nbutton.Text = \"Image Mask, Off\";\nPropertyMap propertyMap = new PropertyMap();\npropertyMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image))\n- .Add(ImageVisualProperty.URL, new PropertyValue(mMaskBackgroundImageUrl));\n- ((ImageView)mImagesView.GetChildAt(4)).Image = propertyMap;\n+ .Add(ImageVisualProperty.URL, new PropertyValue(maskBackgroundImageUrl));\n+ ((ImageView)imagesView.GetChildAt(4)).Image = propertyMap;\n}\nelse\n{\n@@ -670,14 +670,14 @@ namespace ImageSample\nPropertyMap propertyMap = new PropertyMap();\n// Set the AlphaMaskURL properties as mask image's Url\npropertyMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image))\n- .Add(ImageVisualProperty.URL, new PropertyValue(mMaskBackgroundImageUrl))\n- .Add(ImageVisualProperty.AlphaMaskURL, new PropertyValue(mMaskImageUrl));\n- ((ImageView)mImagesView.GetChildAt(4)).Image = propertyMap;\n+ .Add(ImageVisualProperty.URL, new PropertyValue(maskBackgroundImageUrl))\n+ .Add(ImageVisualProperty.AlphaMaskURL, new PropertyValue(maskImageUrl));\n+ ((ImageView)imagesView.GetChildAt(4)).Image = propertyMap;\n}\n- mMasked = !mMasked;\n+ masked = !masked;\n}\n- else if (button.Name == mCaseString[5])\n+ else if (button.Name == caseString[5])\n{\n// Create new PropertyMap that contain information of fittingMode.\n// ShrinkToFit = 0,\n@@ -686,12 +686,12 @@ namespace ImageSample\n// FitHeight = 3\nPropertyMap propertyMap = new PropertyMap();\npropertyMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image))\n- .Add(ImageVisualProperty.URL, new PropertyValue(mFittingModeImageUrl))\n- .Add(ImageVisualProperty.DesiredWidth, new PropertyValue(mImageSize.Width))\n- .Add(ImageVisualProperty.DesiredHeight, new PropertyValue(mImageSize.Height))\n- .Add(ImageVisualProperty.FittingMode, new PropertyValue((++mFittingMode) % 4))\n+ .Add(ImageVisualProperty.URL, new PropertyValue(fittingModeImageUrl))\n+ .Add(ImageVisualProperty.DesiredWidth, new PropertyValue(imageSize.Width))\n+ .Add(ImageVisualProperty.DesiredHeight, new PropertyValue(imageSize.Height))\n+ .Add(ImageVisualProperty.FittingMode, new PropertyValue((++fittingMode) % 4))\n.Add(ImageVisualProperty.SamplingMode, new PropertyValue((int)SamplingModeType.Box));\n- ((ImageView)mImagesView.GetChildAt(5)).Image = propertyMap;\n+ ((ImageView)imagesView.GetChildAt(5)).Image = propertyMap;\n}\nreturn false;\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] ImageSample: Apply review comments |
594,254 | 25.01.2021 19:50:29 | -3,600 | 68a07b1d2a6cb0deb05de5f722c72323f1a9fb75 | [Mobile][NUI][CustomLayout] Fixed issues found by StyleCop tool. | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/ItemLayout.cs",
"new_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/ItemLayout.cs",
"diff": "@@ -86,7 +86,10 @@ namespace SimpleLayout\n}\n}\n- if (iconHeight.AsRoundedValue() > itemHeight.AsRoundedValue()) itemHeight = iconHeight;\n+ if (iconHeight.AsRoundedValue() > itemHeight.AsRoundedValue())\n+ {\n+ itemHeight = iconHeight;\n+ }\n// Finally, call this method to set the dimensions we would like\nSetMeasuredDimensions(new MeasuredSize(itemWidth, MeasuredSize.StateType.MeasuredSizeOK),\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/NUI_CustomLayout.cs",
"new_path": "Mobile/NUI_CustomLayout/NUI_CustomLayout/NUI_CustomLayout.cs",
"diff": "@@ -70,7 +70,8 @@ namespace SimpleLayout\n}\n};\n- private static readonly ListItem[] ListItems = {\n+ private static readonly ListItem[] ListItems =\n+ {\nnew ListItem(\"/images/application-icon-101.png\", \"Gallery\", \"Local images viewer\"),\nnew ListItem(\"/images/application-icon-102.png\", \"Wifi\"),\nnew ListItem(\"/images/application-icon-103.png\", \"Apps\", \"List of available applications\"),\n@@ -146,10 +147,6 @@ namespace SimpleLayout\nwindow.Add(mainView);\n}\n- /// <summary>\n- /// Called when any key event is received.\n- /// Will use this to exit the application if the Back or Escape key is pressed\n- /// </summary>\nprivate void OnKeyEvent(object sender, Window.KeyEventArgs eventArgs)\n{\nif (eventArgs.Key.State == Key.StateType.Down)\n@@ -158,9 +155,7 @@ namespace SimpleLayout\n{\ncase \"Back\":\ncase \"XF86Back\": //for emulator\n- {\nExit();\n- }\nbreak;\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI][CustomLayout] Fixed issues found by StyleCop tool. |
594,254 | 26.01.2021 09:26:28 | -3,600 | c21128ebc80fef5dd7d933c736c1b4d43054b75d | [Mobile][NUI][Layer] Added comments. | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_Layer/NUI_Layer/NUI_Layer.cs",
"new_path": "Mobile/NUI_Layer/NUI_Layer/NUI_Layer.cs",
"diff": "@@ -21,9 +21,13 @@ namespace NUILayer\nclass Program : NUIApplication\n{\nprivate Window appWindow;\n+ //Menu component - a component for view icons\nprivate View menu;\n+\n+ //Menu layer - a layer with higher depth index to show menu on top of the application content\nprivate Layer menuLayer;\n+ //Icons array. Stores icon names which will be added to the menu layer\nprivate static readonly string[] icons = {\n\"email.png\",\n\"maps.png\",\n@@ -45,17 +49,24 @@ namespace NUILayer\nappWindow = Window.Instance;\nappWindow.BackgroundColor = Color.White;\n+\n+ //Setup event handlers.\nappWindow.KeyEvent += OnKeyEvent;\nappWindow.TouchEvent += OnWindowTouched;\n+ //Create application background. Background image is loaded from resources directory.\nImageView background = new ImageView(DirectoryInfo.Resource + \"/images/bg.png\");\nappWindow.Add(background);\n+\n+ //Setting the background parameters so that it occupies the entire application window\nbackground.Size2D = new Size2D(appWindow.Size.Width, appWindow.Size.Height);\nbackground.Position2D = new Position2D(0, 0);\n+ //Create the menu layer. It will be used to show icons on top of the background content.\nmenuLayer = new Layer();\nappWindow.AddLayer(menuLayer);\n+ //Help label - describes left side of the screen action\nTextLabel leftLabel = new TextLabel(\"Tap left side of the screen to show menu\");\nleftLabel.Size2D = new Size2D(appWindow.Size.Width / 2 - 40, appWindow.Size.Height);\nleftLabel.Position2D = new Position2D(20, 0);\n@@ -64,6 +75,7 @@ namespace NUILayer\nleftLabel.MultiLine = true;\nbackground.Add(leftLabel);\n+ //Help label - describes right side of the screen action\nTextLabel rightLabel = new TextLabel(\"Tap right side of the screen to hide menu\");\nrightLabel.Size2D = new Size2D(appWindow.Size.Width / 2 - 40, appWindow.Size.Height);\nrightLabel.Position2D = new Position2D(appWindow.Size.Width / 2 + 20, 0);\n@@ -72,24 +84,32 @@ namespace NUILayer\nrightLabel.MultiLine = true;\nbackground.Add(rightLabel);\n+ //Creates menu component\nmenu = new View();\nmenu.BackgroundColor = new Color(0.6f, 0.6f, 0.6f, 0.5f);\nmenu.Size2D = new Size2D(100, appWindow.Size.Height);\n+ //Add the menu to the layer (separated from the background)\nmenuLayer.Add(menu);\n+\naddIcons(menu);\n}\nprivate void addIcons(View view)\n{\n+ //Create vertical placeholder for icons and add it to the view. In this case a menu component.\nLinearLayout iconLayout = new LinearLayout();\n+ //Setup padding for whole contents\niconLayout.Padding = new Extents(10, 10, 10, 10);\niconLayout.LinearOrientation = LinearLayout.Orientation.Vertical;\n+ //Setup padding for each icon stored in layout\niconLayout.CellPadding = new Size2D(20, 38);\nview.Layout = iconLayout;\n+ //Appends icon to the view.\nforeach (var item in icons)\n{\n+ //Create image. Image absolute path is compounded from directory info and icon name.\nImageView image = new ImageView(DirectoryInfo.Resource + \"/images/\" + item);\nimage.Size2D = new Size2D(70, 70);\nview.Add(image);\n@@ -104,7 +124,7 @@ namespace NUILayer\n{\ncase \"Escape\":\ncase \"Back\":\n- case \"XF86Back\":\n+ case \"XF86Back\": //Handle back key for emulator\n{\nExit();\n}\n@@ -115,11 +135,13 @@ namespace NUILayer\npublic void MenuShow()\n{\n+ //Hide all icons by change one flag for layer.\nmenuLayer.Visibility = true;\n}\npublic void MenuHide()\n{\n+ //Show all icons by change one flag for layer.\nmenuLayer.Visibility = false;\n}\n@@ -129,6 +151,7 @@ namespace NUILayer\n{\n//Verify witch side of the screen was clicked by user.\n//Touch position is compared with half of the screen size.\n+ //When the left side of the screen is clicked the application shows the menu, otherwise the menu is hidden\nif (args.Touch.GetLocalPosition(0).X <= appWindow.Size.Width / 2)\n{\nMenuShow();\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI][Layer] Added comments. |
594,254 | 26.01.2021 10:14:50 | -3,600 | f3fe8ee920812e7a1cbec0b6f326aaa316b8323b | [Mobile][NUI][CustomView] Added comments. | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_CustomView/NUI_CustomView/ContactView.cs",
"new_path": "Mobile/NUI_CustomView/NUI_CustomView/ContactView.cs",
"diff": "@@ -25,6 +25,7 @@ namespace NUI_CustomView\nprivate string name;\nprivate string resourceDirectory;\n+ //Indexes for registering Visuals in the CustomView\nprivate const int BaseIndex = 10000;\nprivate const int BackgroundVisualIndex = BaseIndex + 1;\nprivate const int LabelVisualIndex = BaseIndex + 2;\n@@ -36,14 +37,20 @@ namespace NUI_CustomView\nstatic ContactView()\n{\n+ //Each custom view must have its static constructor to register its type.\nCustomViewRegistry.Instance.Register(CreateInstance, typeof(ContactView));\n}\nstatic CustomView CreateInstance()\n{\n+ //Create and return valid custom view object. In this case ContactView is created.\nreturn new ContactView(null, null);\n}\n+ /// <summary>\n+ /// Creates and register background color visual.\n+ /// </summary>\n+ /// <param name=\"color\">RGBA color vector</param>\nprivate void CreateBackground(Vector4 color)\n{\nPropertyMap map = new PropertyMap();\n@@ -55,6 +62,10 @@ namespace NUI_CustomView\nbackground.DepthIndex = BackgroundVisualIndex;\n}\n+ /// <summary>\n+ /// Creates and register label visual.\n+ /// </summary>\n+ /// <param name=\"text\">String viewed by created label</param>\nprivate void CreateLabel(string text)\n{\nPropertyMap textVisual = new PropertyMap();\n@@ -78,6 +89,15 @@ namespace NUI_CustomView\nlabel.SetTransformAndSize(imageVisualTransform, new Vector2(this.SizeWidth, this.SizeHeight));\n}\n+ /// <summary>\n+ /// Creates and register icon image.\n+ /// </summary>\n+ /// <param name=\"url\">Icon absolute path</param>\n+ /// <param name=\"x\">x icon position</param>\n+ /// <param name=\"y\">y icon position</param>\n+ /// <param name=\"w\">icon width</param>\n+ /// <param name=\"h\">icon height</param>\n+ /// <param name=\"index\">visuals registration index</param>\nprivate void CreateIcon(string url, float x, float y, float w, float h, int index)\n{\nPropertyMap map = new PropertyMap();\n@@ -102,17 +122,28 @@ namespace NUI_CustomView\nicon.DepthIndex = index;\n}\n+ /// <summary>\n+ /// Contact View constructor\n+ /// </summary>\n+ /// <param name=\"name\">name viewed by CustomView object</param>\n+ /// <param name=\"resourceDirectory\">resource directory path used to create absolute paths to icons</param>\n+ /// <returns></returns>\npublic ContactView(string name, string resourceDirectory) : base(typeof(ContactView).Name, CustomViewBehaviour.ViewBehaviourDefault)\n{\nthis.name = name;\nthis.resourceDirectory = resourceDirectory;\n+ //Add background to contact view\nCreateBackground(new Vector4(1.0f, 1.0f, 1.0f, 1.0f));\n+\n+ //Append icons using absolute path and icons positions parameters.\nCreateIcon(resourceDirectory + \"/images/cbg.png\", 10.0f, 5.0f, 100.0f, 100.0f, ContactBgIconIndex);\nCreateIcon(resourceDirectory + \"/images/contact.png\", 10.0f, 5.0f, 100.0f, 100.0f, ContactIconIndex);\nCreateIcon(resourceDirectory + \"/images/edit.png\", 130.0f, 40.0f, 50.0f, 50.0f, ContactEditIndex);\nCreateIcon(resourceDirectory + \"/images/favorite.png\", 180.0f, 40.0f, 50.0f, 50.0f, ContactFavoriteIndex);\nCreateIcon(resourceDirectory + \"/images/delete.png\", 640.0f, 40.0f, 50.0f, 50.0f, ContactDeleteIndex);\n+\n+ //Append title\nCreateLabel(name);\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_CustomView/NUI_CustomView/NUI_CustomView.cs",
"new_path": "Mobile/NUI_CustomView/NUI_CustomView/NUI_CustomView.cs",
"diff": "@@ -24,27 +24,37 @@ namespace NUI_CustomView\nprotected override void OnCreate()\n{\nbase.OnCreate();\n- Initialize();\n+ CreateUI();\n}\n- void Initialize()\n+ //Function creates UI components and add it to the main application window\n+ void CreateUI()\n{\nWindow window = Window.Instance;\nwindow.KeyEvent += OnKeyEvent;\n+ //Create application background. Background image is loaded from resources directory.\nImageView background = new ImageView(DirectoryInfo.Resource + \"/images/bg.png\");\n+\n+ //Setting the background parameters so that it occupies the entire application window.\nbackground.Size2D = new Size2D(window.Size.Width, window.Size.Height);\nwindow.Add(background);\n+\n+ //Create component to store custom views.\nView mainView = new View();\n+ //Create and setup linear layout. It defines children positions in main view.\nLinearLayout linearLayout = new LinearLayout();\nlinearLayout.LinearOrientation = LinearLayout.Orientation.Vertical;\n+\n+ //Setup layout elements padding and layout margins.\nlinearLayout.CellPadding = new Size2D(0, 13);\nlinearLayout.Padding = new Extents(10, 10, 10, 10);\nmainView.Layout = linearLayout;\nwindow.Add(mainView);\n+ //Create and append custom views.\nfor (int i = 0; i < 9; i++)\n{\nNUI_CustomView.ContactView contactView = new ContactView(\"Test: \" + i.ToString(), DirectoryInfo.Resource);\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI][CustomView] Added comments. |
594,236 | 27.01.2021 16:24:20 | -3,600 | 2c8ad228c8c48a739b9b4860c7cbf598578a8237 | [Mobile] Changed sample to use custom view and renderer | [
{
"change_type": "MODIFY",
"old_path": "Mobile/MapsView/src/Maps/Maps.Tizen.Mobile/Maps.Tizen.Mobile.cs",
"new_path": "Mobile/MapsView/src/Maps/Maps.Tizen.Mobile/Maps.Tizen.Mobile.cs",
"diff": "* limitations under the License.\n*/\n-using Xamarin;\n-using Xamarin.Forms;\nusing Tizen.Security;\n+using Xamarin.Forms;\n+\nnamespace Maps.Tizen.Mobile\n{\ninternal class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication\n@@ -127,7 +127,6 @@ namespace Maps.Tizen.Mobile\n/// </summary>\nprivate static void InitializeMap()\n{\n- FormsMaps.Init(Config.ProviderName, Config.AuthenticationToken);\nViewModels.ViewModelLocator.ViewModel.IsMapInitialized = true;\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/MapsView/src/Maps/Maps.Tizen.Mobile/Views/Map.xaml.cs",
"new_path": "Mobile/MapsView/src/Maps/Maps.Tizen.Mobile/Views/Map.xaml.cs",
"diff": "*/\nusing System;\n-using Xamarin.Forms;\n-using Xamarin.Forms.Maps;\n+using System.Linq;\n+\n+using Tizen.Maps;\nnamespace Maps.Tizen.Mobile.Views\n{\n@@ -43,10 +44,16 @@ namespace Maps.Tizen.Mobile.Views\n{\nInitializeComponent();\nBindingContext = _viewModel as object;\n+ MapComponent.MapInitialized += OnMapInitialized;\n+ }\n+ private void OnMapInitialized(object sender, EventArgs e)\n+ {\nAddPinsToMap();\nSetMapOnFirstPin();\nAddEventHandlers();\n+\n+ MapComponent.MapInitialized -= OnMapInitialized;\n}\n/// <summary>\n@@ -54,8 +61,13 @@ namespace Maps.Tizen.Mobile.Views\n/// </summary>\nprivate void AddEventHandlers()\n{\n- _viewModel.OnZoomChanged += (sender, args) => SetMapCenter(MapComponent.VisibleRegion.Center);\n_viewModel.OnPinRequest += SetMapToPinLocation;\n+ _viewModel.OnZoomChanged += SetMapZoom;\n+ }\n+\n+ private void SetMapZoom(object sender, EventArgs e)\n+ {\n+ MapComponent.Map.ZoomLevel = _viewModel.ZoomLevel;\n}\n/// <summary>\n@@ -63,14 +75,12 @@ namespace Maps.Tizen.Mobile.Views\n/// </summary>\nprivate void AddPinsToMap()\n{\n- foreach (Models.Pin pin in _viewModel.PinPoints)\n- {\n- MapComponent.Pins.Add(new Pin\n+ var pins = _viewModel.PinPoints.Select(pin =>\n+ new Pin(new Geocoordinates(pin.Position.Latitude, pin.Position.Longitude)));\n+\n+ foreach (var pin in pins)\n{\n- Type = PinType.SearchResult,\n- Position = new Position(pin.Position.Latitude, pin.Position.Longitude),\n- Label = pin.DisplayName\n- });\n+ MapComponent.Map.Add(pin);\n}\n}\n@@ -81,18 +91,16 @@ namespace Maps.Tizen.Mobile.Views\n/// <param name=\"pin\">Pin.</param>\npublic void SetMapToPinLocation(object sender, Models.Pin pin)\n{\n- SetMapCenter(new Position(pin.Position.Latitude, pin.Position.Longitude));\n+ SetMapCenter(pin.Position.Latitude, pin.Position.Longitude);\n}\n/// <summary>\n/// Sets map center to provided position.\n/// </summary>\n/// <param name=\"position\">Requested position.</param>\n- private void SetMapCenter(Position position)\n+ private void SetMapCenter(double latitude, double longitude)\n{\n- double latlongdegrees = GetLatLonDegress();\n-\n- MapComponent.MoveToRegion(new MapSpan(position, latlongdegrees, latlongdegrees));\n+ MapComponent.Map.Center = new Geocoordinates(latitude, longitude);\n}\n/// <summary>\n@@ -101,16 +109,7 @@ namespace Maps.Tizen.Mobile.Views\nprivate void SetMapOnFirstPin()\n{\nModels.Pin firstPinOnList = _viewModel.GetFirstPin();\n- SetMapCenter(new Position(firstPinOnList.Position.Latitude, firstPinOnList.Position.Longitude));\n- }\n-\n- /// <summary>\n- /// Calculates degrees that map has to display.\n- /// </summary>\n- /// <returns>Calculated degrees value.</returns>\n- private double GetLatLonDegress()\n- {\n- return 360 / Math.Pow(2, _viewModel.ZoomLevel);\n+ SetMapCenter(firstPinOnList.Position.Latitude, firstPinOnList.Position.Longitude);\n}\n#endregion\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/MapsView/src/Maps/Maps/Config/Config.cs",
"new_path": "Mobile/MapsView/src/Maps/Maps/Config/Config.cs",
"diff": "@@ -63,7 +63,7 @@ namespace Maps\n/// <summary>\n/// Authentication token used to initialize map library.\n/// </summary>\n- public static string AuthenticationToken => _APP_ID + \"/\" + _APP_KEY;\n+ public static string AuthenticationToken => $\"{_APP_ID}/{_APP_KEY}\";\n/// <summary>\n/// Map credentials indicator.\n@@ -77,6 +77,22 @@ namespace Maps\n/// </summary>\npublic static string LocationPrivilege => _LOCATION_PRIVILEGE;\n+ /// <summary>\n+ /// Minimum map zoom.\n+ /// </summary>\n+ public static int MinimumMapZoom { get; } = 1;\n+\n+ /// <summary>\n+ /// Maximum map zoom.\n+ /// </summary>\n+ public static int MaximumMapZoom { get; } = 18;\n+\n+ /// <summary>\n+ /// Initial map zoom.\n+ /// </summary>\n+ public static int InitialMapZoom { get; } = 14;\n+\n+\n#endregion\n}\n}\n\\ No newline at end of file\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/MapsView/src/Maps/Maps/ViewModels/PageViewModel.cs",
"new_path": "Mobile/MapsView/src/Maps/Maps/ViewModels/PageViewModel.cs",
"diff": "* limitations under the License.\n*/\n-using Maps.Models;\nusing System;\nusing System.Collections.ObjectModel;\nusing System.Linq;\nusing System.Windows.Input;\n+\n+using Maps.Models;\n+\nusing Xamarin.Forms;\nnamespace Maps.ViewModels\n@@ -34,7 +36,7 @@ namespace Maps.ViewModels\n/// <summary>\n/// Map zoom level.\n/// </summary>\n- private int _zoomLevel = 15;\n+ private int _zoomLevel = Config.InitialMapZoom;\n/// <summary>\n/// GPS availability.\n@@ -117,7 +119,7 @@ namespace Maps.ViewModels\n/// </summary>\npublic void ZoomIn()\n{\n- if (ZoomLevel < 18)\n+ if (ZoomLevel < Config.MaximumMapZoom)\n{\nZoomLevel++;\n}\n@@ -130,7 +132,7 @@ namespace Maps.ViewModels\n/// </summary>\nprivate void ZoomOut()\n{\n- if (ZoomLevel > 0)\n+ if (ZoomLevel > Config.MinimumMapZoom)\n{\nZoomLevel--;\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile] Changed sample to use custom view and renderer |
594,248 | 24.01.2021 01:31:48 | -3,600 | b3caa7343a99bd3b3a5eafe006902f781d51f5a8 | [Mobile][NUI] CheckBox example added - applying PascalCase and adding copyright comments | [
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox_screen1.png",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox_screen1.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CheckBox/NUI_CheckBox_screen1.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI_CheckBox/NUI_CheckBox_screen2.png",
"new_path": "Mobile/NUI_CheckBox/NUI_CheckBox_screen2.png",
"diff": "Binary files /dev/null and b/Mobile/NUI_CheckBox/NUI_CheckBox_screen2.png differ\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_CheckBox/README.md",
"new_path": "Mobile/NUI_CheckBox/README.md",
"diff": "@@ -7,6 +7,9 @@ The base class for a `CheckBox` class is a `Button`, which properties can be use\nThe sample application reacts to the click event, after which it changes the background color.\nThe animation illustrating the app behavior is as follows:\n-| [anim](!./../NUI_CheckBox.gif) |\n+\n+\n+\n+\nFor more information about the checkbox see the [NUI guide](https://docs.tizen.org/application/dotnet/guides/nui/nui-components/CheckBox/).\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] CheckBox example added - applying PascalCase and adding copyright comments |
594,248 | 24.01.2021 01:47:22 | -3,600 | 749ee73b6f81daf59225fdc341fd1c41559ef56d | [Mobile][NUI] Pagination example added - applying PascalCase and adding copyright comments | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI_Pagination/README.md",
"new_path": "Mobile/NUI_Pagination/README.md",
"diff": "@@ -8,6 +8,9 @@ It can be used to display the number of available pages and marking the currentl\nThe sample application reacts to the 'right' and 'left' arrows from the keyboard. After pressing either of them\nthe selected indicator of the pagination is switched accordingly and the screen is rolled.\nThe screenshots of the app are presented below:\n-| [screen1](!./../NUI_Pagination_screen1.png) | [screen2](!./../NUI_Pagination_screen2.png) | [screen3](!./../NUI_Pagination_screen3.png) |\n+\n+\n+\n+\nFor more information about the pagination see the [NUI guide](https://docs.tizen.org/application/dotnet/guides/nui/nui-components/Pagination/).\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] Pagination example added - applying PascalCase and adding copyright comments |
594,259 | 20.11.2020 15:42:03 | -3,600 | d15a7e50372072025622a00770f85d40a4937676 | [Mobile][NUI] NUI Notification example | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NotificationExample/NotificationExample/NotificationExample.csproj",
"diff": "+<Project Sdk=\"Microsoft.NET.Sdk\">\n+\n+ <PropertyGroup>\n+ <OutputType>Exe</OutputType>\n+ <TargetFramework>tizen80</TargetFramework>\n+ <LangVersion>8.0</LangVersion>\n+ <TargetFrameworkIdentifier>Tizen</TargetFrameworkIdentifier>\n+ <AssemblyName>NotificationExample</AssemblyName>\n+ <RootNamespace>NotificationExample</RootNamespace>\n+ </PropertyGroup>\n+\n+ <PropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' \">\n+ <DebugType>portable</DebugType>\n+ </PropertyGroup>\n+ <PropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' \">\n+ <DebugType>None</DebugType>\n+ </PropertyGroup>\n+\n+ <ItemGroup>\n+ <PackageReference Include=\"Tizen.NET\" Version=\"8.0.0.15524\">\n+ <ExcludeAssets>Runtime</ExcludeAssets>\n+ </PackageReference>\n+ <PackageReference Include=\"Tizen.NET.Sdk\" Version=\"1.1.2\" />\n+ </ItemGroup>\n+\n+</Project>\n+\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NotificationExample/NotificationExample/shared/res/NotificationExample.png",
"new_path": "Mobile/NotificationExample/NotificationExample/shared/res/NotificationExample.png",
"diff": "Binary files /dev/null and b/Mobile/NotificationExample/NotificationExample/shared/res/NotificationExample.png differ\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] NUI Notification example |
594,250 | 16.02.2021 12:29:26 | -3,600 | 29be87fe998a96839175eb4736a142916ac5ead1 | [Wearable] Add information about target API level to the Lescanner readme file. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Lescanner/README.md",
"new_path": "Wearable/Lescanner/README.md",
"diff": "@@ -11,5 +11,10 @@ Lescanner is a sample application which demonstrates how to use [Tizen.Network.B\n* [Visual Studio](https://www.visualstudio.com/) - Buildtool, IDE\n* [Visual Studio Tools for Tizen](https://developer.tizen.org/development/visual-studio-tools-tizen/installing-visual-studio-tools-tizen) - Visual Studio plugin for Tizen .NET application development\n+### Target\n+| Target Api level | Tizen Version |\n+|--------------------|---------------|\n+| Tizen API level 7 | Tizen 5.5 |\n+\n### Author\n* The application is a port of a [mobile app](/../../tree/master/Mobile/Lescanner). The port was created by Tomasz Zalewski.\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Add information about target API level to the Lescanner readme file. |
594,250 | 16.02.2021 12:49:13 | -3,600 | d0af0bfa5672690aeabd5f47288846350afb6ea1 | [Wearable] Upgrade tizen and xamarin.forms version in the GestureSensor sample app. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/GestureSensor/src/GestureSensor/GestureSensor/GestureSensor/GestureSensor.csproj",
"new_path": "Wearable/GestureSensor/src/GestureSensor/GestureSensor/GestureSensor/GestureSensor.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"3.2.0.871581\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n<ItemGroup>\n<EmbeddedResource Update=\"App.xaml\">\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Upgrade tizen and xamarin.forms version in the GestureSensor sample app. |
594,250 | 16.02.2021 12:51:00 | -3,600 | dbc6b37a40e63df14010fb9eb83ea620cf2e92a9 | [Wearable] Add information about target API level to the GestureSensor readme file. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/GestureSensor/README.md",
"new_path": "Wearable/GestureSensor/README.md",
"diff": "@@ -15,5 +15,10 @@ GestureSensor is a sample application that shows how to use GestureAPI and detec\n* [Visual Studio](https://www.visualstudio.com/) - Buildtool, IDE\n* [Visual Studio Tools for Tizen](https://docs.tizen.org/application/vstools/install) - Visual Studio plugin for Tizen .NET application development\n+### Target\n+| Target Api level | Tizen Version |\n+|--------------------|---------------|\n+| Tizen API level 7 | Tizen 5.5 |\n+\n### Author\n* Michal Kolodziejski\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Wearable] Add information about target API level to the GestureSensor readme file. |
594,261 | 12.03.2021 13:51:22 | -32,400 | 6b7888685ee5d25e83a8984b66dd4ab1edd2c503 | Update Gallery app in TV profile | [
{
"change_type": "MODIFY",
"old_path": "TV/Gallery/Gallery/Gallery/Controls/Panel.cs",
"new_path": "TV/Gallery/Gallery/Gallery/Controls/Panel.cs",
"diff": "@@ -30,9 +30,9 @@ namespace Gallery.Controls\npublic bool AllowedFocused { get; set; } = true;\n- public int ItemsWidth { get; set; } = 150;\n+ public int ItemsWidth { get; set; } = 750;\n- public int ItemsHeight { get; set; } = 150;\n+ public int ItemsHeight { get; set; } = 750;\npublic double ScrollX => _scrollView.ScrollX;\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/Gallery/Gallery/Gallery/Gallery.csproj",
"new_path": "TV/Gallery/Gallery/Gallery/Gallery.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.617\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Update Gallery app in TV profile |
594,261 | 22.04.2021 13:16:33 | -32,400 | 2425b8b084ea1adf487f5e79c9c03040277973df | Update codes and project settings to remove build warning - deprecation | [
{
"change_type": "MODIFY",
"old_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/MainPage.xaml",
"new_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/MainPage.xaml",
"diff": "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n-<MasterDetailPage\n+<FlyoutPage\nx:Class=\"MusicPlayerUI.MainPage\"\nxmlns=\"http://xamarin.com/schemas/2014/forms\"\nxmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\"\nxmlns:local=\"clr-namespace:MusicPlayerUI.Page;assembly=MusicPlayerUI\"\nTitle=\"Music Player\">\n- <MasterDetailPage.Master>\n+ <FlyoutPage.Flyout>\n<local:MenuPage />\n- </MasterDetailPage.Master>\n+ </FlyoutPage.Flyout>\n- <MasterDetailPage.Detail>\n+ <FlyoutPage.Detail>\n<local:DetailPage />\n- </MasterDetailPage.Detail>\n-</MasterDetailPage>\n\\ No newline at end of file\n+ </FlyoutPage.Detail>\n+</FlyoutPage>\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/MainPage.xaml.cs",
"new_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/MainPage.xaml.cs",
"diff": "@@ -5,7 +5,7 @@ namespace MusicPlayerUI\n/// <summary>\n/// The main page of the application\n/// </summary>\n- public partial class MainPage : MasterDetailPage\n+ public partial class MainPage : FlyoutPage\n{\n/// <summary>\n/// Constructor\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI.csproj",
"new_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.356\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/Page/DetailPage.xaml.cs",
"new_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/Page/DetailPage.xaml.cs",
"diff": "@@ -23,7 +23,7 @@ namespace MusicPlayerUI.Page\nprivate void OnExcuteToolbarMenu(object sender, System.EventArgs e)\n{\n- (Parent as MasterDetailPage).IsPresented = !(Parent as MasterDetailPage).IsPresented;\n+ (Parent as FlyoutPage).IsPresented = !(Parent as FlyoutPage).IsPresented;\n}\n/// <summary>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Update codes and project settings to remove build warning - deprecation |
594,261 | 26.04.2021 16:40:07 | -32,400 | 4153be97ed8a2ef7abc2a23fcff2effcecd49874 | Update application code for using Xamarin.Forms 5.0
Button => ImageButton
Use ImageCell instead of StackLayout with Lable and Image | [
{
"change_type": "MODIFY",
"old_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/Behaviors/ButtonToModalNavigationBackEventBehavior.cs",
"new_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/Behaviors/ButtonToModalNavigationBackEventBehavior.cs",
"diff": "@@ -3,9 +3,9 @@ using Xamarin.Forms;\nnamespace MusicPlayerUI.Behaviors\n{\n- public class ButtonToModalNavigationBackEventBehavior : Behavior<Button>\n+ public class ImageButtonToModalNavigationBackEventBehavior : Behavior<ImageButton>\n{\n- public static readonly BindableProperty IsBackEventProperty = BindableProperty.Create(\"IsBackEvent\", typeof(bool), typeof(ButtonToModalNavigationBackEventBehavior), false);\n+ public static readonly BindableProperty IsBackEventProperty = BindableProperty.Create(\"IsBackEvent\", typeof(bool), typeof(ImageButtonToModalNavigationBackEventBehavior), false);\npublic bool IsBackEvent\n{\n@@ -13,7 +13,7 @@ namespace MusicPlayerUI.Behaviors\nset { SetValue(IsBackEventProperty, value); }\n}\n- protected override void OnAttachedTo(Button bindable)\n+ protected override void OnAttachedTo(ImageButton bindable)\n{\nbindable.Clicked += Bindable_Clicked;\n}\n@@ -26,7 +26,7 @@ namespace MusicPlayerUI.Behaviors\n}\n}\n- protected override void OnDetachingFrom(Button bindable)\n+ protected override void OnDetachingFrom(ImageButton bindable)\n{\nbindable.Clicked -= Bindable_Clicked;\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/Page/MenuPage.xaml",
"new_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/Page/MenuPage.xaml",
"diff": "<ListView\nHorizontalOptions=\"FillAndExpand\"\nItemsSource=\"{StaticResource stringArray}\"\n- RowHeight=\"100\"\n+ RowHeight=\"50\"\nSeparatorVisibility=\"Default\"\nVerticalOptions=\"FillAndExpand\">\n<ListView.ItemTemplate>\n<DataTemplate>\n- <ViewCell>\n- <ViewCell.View>\n- <StackLayout\n- HorizontalOptions=\"FillAndExpand\"\n- Orientation=\"Horizontal\"\n- VerticalOptions=\"StartAndExpand\">\n- <Image\n- Margin=\"15,0,0,0\"\n- HorizontalOptions=\"Start\"\n- Source=\"tizen.png\"\n- VerticalOptions=\"Center\" />\n- <Label\n- Margin=\"30,0,0,0\"\n- HorizontalOptions=\"FillAndExpand\"\n- Text=\"{Binding}\"\n- VerticalOptions=\"Center\" />\n- </StackLayout>\n- </ViewCell.View>\n- </ViewCell>\n+ <ImageCell Text=\"{Binding}\"\n+ ImageSource=\"tizen.png\">\n+ </ImageCell>\n</DataTemplate>\n</ListView.ItemTemplate>\n</ListView>\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/Page/ModalPlayPage.xaml",
"new_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/Page/ModalPlayPage.xaml",
"diff": "xmlns=\"http://xamarin.com/schemas/2014/forms\"\nxmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\"\nxmlns:behaviors=\"clr-namespace:MusicPlayerUI.Behaviors\"\n- xmlns:page=\"clr-namespace:MusicPlayerUI.Page;assmebly=MusicPlayerUI\">\n+ xmlns:page=\"clr-namespace:MusicPlayerUI.Page\">\n<ContentPage.Content>\n<Grid\nBackgroundColor=\"White\"\nText=\"{Binding SongTitle, Source={x:Static page:TabItemPage.MusicBar}}\"\nTextColor=\"White\"\nVerticalOptions=\"Center\" />\n- <Button\n+ <ImageButton\nMargin=\"15,0,0,0\"\nBackgroundColor=\"{StaticResource TizenDefault}\"\nHorizontalOptions=\"Start\"\n- Image=\"back.png\"\n+ Source=\"back.png\"\nStyle=\"{StaticResource BaseSizeStyle}\">\n- <Button.Behaviors>\n- <behaviors:ButtonToModalNavigationBackEventBehavior IsBackEvent=\"True\" />\n- </Button.Behaviors>\n- </Button>\n+ <ImageButton.Behaviors>\n+ <behaviors:ImageButtonToModalNavigationBackEventBehavior IsBackEvent=\"True\" />\n+ </ImageButton.Behaviors>\n+ </ImageButton>\n</Grid>\n<Grid Grid.Row=\"1\">\nOrientation=\"Horizontal\"\nSpacing=\"50\"\nVerticalOptions=\"Center\">\n- <Button\n+ <ImageButton\nBackgroundColor=\"{StaticResource TizenDefault}\"\nClicked=\"OnSongValueInit\"\n- Image=\"rewind.png\"\n+ Source=\"rewind.png\"\nStyle=\"{StaticResource BaseSizeStyle}\" />\n- <Button\n+ <ImageButton\nBackgroundColor=\"{StaticResource TizenDefault}\"\nCommand=\"{Binding PlayCommand, Source={x:Static page:TabItemPage.MusicBar}}\"\nStyle=\"{StaticResource BaseSizeStyle}\">\n- <Button.Triggers>\n+ <ImageButton.Triggers>\n<DataTrigger\nBinding=\"{Binding IsPlaying, Source={x:Static page:TabItemPage.MusicBar}}\"\n- TargetType=\"Button\"\n+ TargetType=\"ImageButton\"\nValue=\"False\">\n- <Setter Property=\"Image\" Value=\"play.png\" />\n+ <Setter Property=\"Source\" Value=\"play.png\" />\n</DataTrigger>\n<DataTrigger\nBinding=\"{Binding IsPlaying, Source={x:Static page:TabItemPage.MusicBar}}\"\n- TargetType=\"Button\"\n+ TargetType=\"ImageButton\"\nValue=\"True\">\n- <Setter Property=\"Image\" Value=\"pause.png\" />\n+ <Setter Property=\"Source\" Value=\"pause.png\" />\n</DataTrigger>\n- </Button.Triggers>\n- </Button>\n- <Button\n+ </ImageButton.Triggers>\n+ </ImageButton>\n+ <ImageButton\nBackgroundColor=\"{StaticResource TizenDefault}\"\nClicked=\"OnSongValueInit\"\n- Image=\"fastforward.png\"\n+ Source=\"fastforward.png\"\nStyle=\"{StaticResource BaseSizeStyle}\" />\n</StackLayout>\n</Grid>\n"
},
{
"change_type": "MODIFY",
"old_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/View/MusicBar.xaml",
"new_path": "TV/Xamarin.Forms/MusicPlayerUI/MusicPlayerUI/MusicPlayerUI/View/MusicBar.xaml",
"diff": "x:Class=\"MusicPlayerUI.View.MusicBar\"\nxmlns=\"http://xamarin.com/schemas/2014/forms\"\nxmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\"\n- xmlns:local=\"clr-namespace:MusicPlayerUI\"\nx:Name=\"Control\">\n<ContentView.Content>\nVerticalOptions=\"Center\" />\n</StackLayout>\n- <Button\n+ <ImageButton\nMargin=\"0,0,80,0\"\nBackgroundColor=\"{DynamicResource TizenDefault}\"\nCommand=\"{Binding PlayCommand, Source={x:Reference Control}}\"\n<Button.Triggers>\n<DataTrigger\nBinding=\"{Binding Source={x:Reference Control}, Path=IsPlaying}\"\n- TargetType=\"Button\"\n+ TargetType=\"ImageButton\"\nValue=\"False\">\n- <Setter Property=\"Image\" Value=\"play.png\" />\n+ <Setter Property=\"Source\" Value=\"play.png\" />\n</DataTrigger>\n<DataTrigger\nBinding=\"{Binding Source={x:Reference Control}, Path=IsPlaying}\"\n- TargetType=\"Button\"\n+ TargetType=\"ImageButton\"\nValue=\"True\">\n- <Setter Property=\"Image\" Value=\"pause.png\" />\n+ <Setter Property=\"Source\" Value=\"pause.png\" />\n</DataTrigger>\n</Button.Triggers>\n- </Button>\n+ </ImageButton>\n</StackLayout>\n</ContentView.Content>\n</ContentView>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Update application code for using Xamarin.Forms 5.0
- Button => ImageButton
- Use ImageCell instead of StackLayout with Lable and Image |
594,254 | 28.04.2021 11:22:56 | -7,200 | f86654977985810b53857eef0883c6c41db52fe9 | [Mobile][NUI][Layer] Fixed comments ratio | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Layer/NUI_Layer/NUI_Layer.cs",
"new_path": "Mobile/NUI/Layer/NUI_Layer/NUI_Layer.cs",
"diff": "@@ -20,15 +20,27 @@ namespace NUILayer\n{\nclass Program : NUIApplication\n{\n+ /// <summary>\n+ /// Application main window handle. It is used in event handlers to obtain app window size.\n+ /// </summary>\nprivate Window appWindow;\n- //Menu component - a component for view icons\n+\n+ /// <summary>\n+ /// Left side menu layer content placed on top of the application components stack.\n+ /// </summary>\nprivate View menu;\n- //Menu layer - a layer with higher depth index to show menu on top of the application content\n+\n+ /// <summary>\n+ /// Menu layer with higher depth index to show menu on top of the application content.\n+ /// </summary>\nprivate Layer menuLayer;\n- //Icons array. Stores icon names which will be added to the menu layer\n- private static readonly string[] icons = {\n+ /// <summary>\n+ /// Icons array. Stores icon names which will be added to the menu layer\n+ /// </summary>\n+ private static readonly string[] icons =\n+ {\n\"email.png\",\n\"maps.png\",\n\"messages.png\",\n@@ -43,6 +55,10 @@ namespace NUILayer\n\"voicememo.png\"\n};\n+ /// <summary>\n+ /// OnCreate Function initializes all UI components. Called internally by Tizen.Nui.Application\n+ /// components after Application class construction\n+ /// </summary>\nprotected override void OnCreate()\n{\nbase.OnCreate();\n@@ -92,10 +108,14 @@ namespace NUILayer\n//Add the menu to the layer (separated from the background)\nmenuLayer.Add(menu);\n- addIcons(menu);\n+ AddIcons(menu);\n}\n- private void addIcons(View view)\n+ /// <summary>\n+ /// Function use icons array to create ImageView objects stored in the Menu view.\n+ /// </summary>\n+ /// <param name=\"view\">View to which icons will be added</param>\n+ private void AddIcons(View view)\n{\n//Create vertical placeholder for icons and add it to the view. In this case a menu component.\nLinearLayout iconLayout = new LinearLayout();\n@@ -116,6 +136,29 @@ namespace NUILayer\n}\n}\n+ /// <summary>\n+ /// Function hides Menu Layer by changing its visibility parametr.\n+ /// </summary>\n+ public void MenuShow()\n+ {\n+ //Hide all icons by change one flag for layer.\n+ menuLayer.Visibility = true;\n+ }\n+\n+ /// <summary>\n+ /// Function shows Menu Layer by changing its visibility parameter.\n+ /// </summary>\n+ public void MenuHide()\n+ {\n+ //Show all icons by change one flag for layer.\n+ menuLayer.Visibility = false;\n+ }\n+\n+ /// <summary>\n+ /// Key Event Handler. Used to handle application exit when back button was pressed.\n+ /// </summary>\n+ /// <param name=\"sender\"> Event Sender</param>\n+ /// <param name=\"e\"> Object which holds event information, in this case key arguments</param>\npublic void OnKeyEvent(object sender, Window.KeyEventArgs e)\n{\nif (e.Key.State == Key.StateType.Down)\n@@ -125,26 +168,17 @@ namespace NUILayer\ncase \"Escape\":\ncase \"Back\":\ncase \"XF86Back\": //Handle back key for emulator\n- {\nExit();\n- }\nbreak;\n}\n}\n}\n- public void MenuShow()\n- {\n- //Hide all icons by change one flag for layer.\n- menuLayer.Visibility = true;\n- }\n-\n- public void MenuHide()\n- {\n- //Show all icons by change one flag for layer.\n- menuLayer.Visibility = false;\n- }\n-\n+ /// <summary>\n+ /// Touch Event Handler. It is used to verify wich part of the screen was touched.\n+ /// </summary>\n+ /// <param name=\"sender\">Event sender</param>\n+ /// <param name=\"args\">Event arguments</param>\npublic void OnWindowTouched(object sender, Window.TouchEventArgs args)\n{\nif (args.Touch.GetState(0) == PointStateType.Down)\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI][Layer] Fixed comments ratio |
594,254 | 28.04.2021 11:45:15 | -7,200 | e27436c23df9a4db6b0168e719436e7397250b0b | [Mobile][NUI] Fixed VideoView Sample comments ratio. | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/VideoViewSample/VideoViewSample/VideoViewSample.cs",
"new_path": "Mobile/NUI/VideoViewSample/VideoViewSample/VideoViewSample.cs",
"diff": "@@ -22,19 +22,78 @@ namespace VideoViewSample\n{\nclass Program : NUIApplication\n{\n+ /// <summary>\n+ /// Main Application Window instance.\n+ /// </summary>\n+ private Window ApplicationWindow;\n+\n+ /// <summary>\n+ /// Button names array. Used to verify wich button was pressed and control the video player actions.\n+ /// </summary>\nprivate readonly string[] buttonNames = { \"play\", \"pause\", \"stop\", \"forward\", \"backward\" };\n+\n+ /// <summary>\n+ /// Video Player Component. It is used to show video in the application window.\n+ /// </summary>\nprivate VideoView player;\n+ /// <summary>\n+ /// OnCreate Event Handler. First function called after Application constructor.\n+ /// </summary>\nprotected override void OnCreate()\n{\nbase.OnCreate();\nInitialize();\n}\n+ /// <summary>\n+ /// On Key Pressed Event Handler. Used to exit application when back button was pressed.\n+ /// </summary>\n+ /// <param name=\"sender\">Event sender</param>\n+ /// <param name=\"e\">Event parameters</param>\n+ public void OnKeyEvent(object sender, Window.KeyEventArgs e)\n+ {\n+ if (e.Key.State == Key.StateType.Down)\n+ {\n+ switch (e.Key.KeyPressedName)\n+ {\n+ case \"Escape\":\n+ case \"Back\":\n+ case \"XF86Back\": //Handle back key for emulator\n+ {\n+ Exit();\n+ }\n+ break;\n+ }\n+ }\n+ }\n+\n+ /// <summary>\n+ /// Function initializes application UI.\n+ /// </summary>\nvoid Initialize()\n{\n- Window.Instance.BackgroundColor = Color.White;\n+ //Save the application window instance.\n+ ApplicationWindow = Window.Instance;\n+ ApplicationWindow.BackgroundColor = Color.White;\n+\n+ //Setup event handlers.\n+ ApplicationWindow.KeyEvent += OnKeyEvent;\n+\n+ //Create main application view.\n+ View mainView = new View();\n+ //Setup linear layout for components stored in main view.\n+ LinearLayout mainLayout = new LinearLayout()\n+ {\n+ LinearAlignment = LinearLayout.Alignment.Center,\n+ LinearOrientation = LinearLayout.Orientation.Vertical,\n+ CellPadding = new Size2D(0, 10)\n+ };\n+ mainView.Layout = mainLayout;\n+ ApplicationWindow.Add(mainView);\n+\n+ //Create video view and play movie automatically.\nplayer = new VideoView()\n{\nHeightResizePolicy = ResizePolicyType.SizeRelativeToParent,\n@@ -43,24 +102,28 @@ namespace VideoViewSample\nResourceUrl = DirectoryInfo.Resource + \"sample.3gp\",\n};\nplayer.Play();\n- Window.Instance.Add(player);\n+ mainView.Add(player);\n+ //Create buttons and push them into the main view.\nfor (int i = 0; i < buttonNames.Length; ++i)\n{\n- int buttonPosX = (int)player.SizeHeight + 50 + i * 102;\nButton btn = new Button\n{\nParentOrigin = ParentOrigin.Center,\nSize2D = new Size2D(300, 100),\n- Position2D = new Position2D(-150, buttonPosX),\n- BackgroundColor = new Color(\"#00bfff\"),\nTextColor = Color.White,\nText = buttonNames[i],\n};\nbtn.Clicked += OnClicked;\n- Window.Instance.Add(btn);\n+ mainView.Add(btn);\n}\n}\n+\n+ /// <summary>\n+ /// Button Clicked event handler.\n+ /// </summary>\n+ /// <param name=\"sender\">event sender</param>\n+ /// <param name=\"e\">event parameters</param>\nprivate void OnClicked(object sender, ClickedEventArgs e)\n{\nButton button = sender as Button;\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] Fixed VideoView Sample comments ratio. |
594,258 | 29.04.2021 10:55:01 | -7,200 | 91b9bd4df291a4cef2be5ccbbeb2ee0590586e0b | Added comments and fixed exit by "back" button | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/LinearLayout/NUILinearLayout/NUILinearLayout.cs",
"new_path": "Mobile/NUI/LinearLayout/NUILinearLayout/NUILinearLayout.cs",
"diff": "@@ -62,6 +62,8 @@ namespace NUILinearLayout\n/// </summary>\nvoid Initialize()\n{\n+ // Initialize app\n+ // Add all necessary Views\nWindow.Instance.BackgroundColor = Color.Red;\nSize2D ScreenSize = Window.Instance.WindowSize;\nRootView = new View();\n@@ -75,6 +77,7 @@ namespace NUILinearLayout\nRootView.Layout = RootLayout;\nRootView.Padding = new Extents(20, 20, 20, 20);\n+ // Create the first View\nView1 = new View();\nView1.BackgroundColor = new Color(0.8f, 0.7f, 0.3f, 1.0f);\nView1.WidthSpecification = LayoutParamPolicies.MatchParent;\n@@ -82,41 +85,49 @@ namespace NUILinearLayout\nView1.Padding = new Extents(10, 10, 10, 10);\nView1.Margin = new Extents(5, 5, 5, 5);\n+ // Create LinearLayout\nLinearLayout Layout1 = new LinearLayout();\nLayout1.LinearAlignment = LinearLayout.Alignment.Begin;\nLayout1.LinearOrientation = LinearLayout.Orientation.Horizontal;\nView1.Layout = Layout1;\nAddText(View1);\n+ // Create second View\nView2 = new View();\nView2.BackgroundColor = new Color(0.8f, 0.7f, 0.3f, 1.0f);\nView2.WidthSpecification = LayoutParamPolicies.MatchParent;\nView2.Weight = 0.25f;\nView2.Margin = new Extents(5, 5, 5, 5);\n+ // Create LinearLayout\nLinearLayout Layout2 = new LinearLayout();\nLayout2.LinearAlignment = LinearLayout.Alignment.Center;\nLayout2.LinearOrientation = LinearLayout.Orientation.Horizontal;\nView2.Layout = Layout2;\nAddImages(View2);\n+ // Create third View\nView3 = new View();\nView3.BackgroundColor = new Color(0.8f, 0.7f, 0.3f, 1.0f);\nView3.WidthSpecification = LayoutParamPolicies.MatchParent;\nView3.Weight = 0.3f;\nView3.Margin = new Extents(5, 5, 5, 5);\n+ // Create LinearLayout\nLinearLayout Layout3 = new LinearLayout();\nLayout3.LinearAlignment = LinearLayout.Alignment.Begin;\nLayout3.LinearOrientation = LinearLayout.Orientation.Horizontal;\nView3.Layout = Layout3;\nAddColors(View3);\n+ // Add child views\nRootView.Add(View1);\nRootView.Add(View2);\nRootView.Add(View3);\nWindow.Instance.Add(RootView);\n+\n+ Window.Instance.KeyEvent += OnKeyEvent;\n}\n/// <summary>\n@@ -125,6 +136,7 @@ namespace NUILinearLayout\n/// <param name=\"view\">View</param>\nprivate void AddText(View view)\n{\n+ // Add text on the left side\nTextLeft = new TextLabel();\nTextLeft.BackgroundColor = new Color(0.8f, 0.1f, 0.1f, 1.0f);\nTextLeft.HeightSpecification = LayoutParamPolicies.MatchParent;\n@@ -135,6 +147,7 @@ namespace NUILinearLayout\nTextLeft.VerticalAlignment = VerticalAlignment.Center;\nTextLeft.Margin = new Extents(10, 10, 10, 10);\n+ // Add text on the right side\nTextRight = new TextLabel();\nTextRight.BackgroundColor = new Color(0.8f, 0.1f, 0.1f, 1.0f);\nTextRight.HeightSpecification = LayoutParamPolicies.MatchParent;\n@@ -145,6 +158,7 @@ namespace NUILinearLayout\nTextRight.VerticalAlignment = VerticalAlignment.Center;\nTextRight.Margin = new Extents(10, 10, 10, 10);\n+ // Add child views\nview.Add(TextLeft);\nview.Add(TextRight);\n}\n@@ -155,21 +169,25 @@ namespace NUILinearLayout\n/// <param name=\"view\">View</param>\nprivate void AddImages(View view)\n{\n+ // Load first image\nImg1 = new ImageView();\nImg1.ResourceUrl = ResourceUrl + \"img1.svg\";\nImg1.Size2D = new Size2D(100, 100);\nImg1.Margin = new Extents(20, 20, 20, 20);\n+ // Load second image\nImg2 = new ImageView();\nImg2.ResourceUrl = ResourceUrl + \"img2.svg\";\nImg2.Size2D = new Size2D(100, 100);\nImg2.Margin = new Extents(20, 20, 20, 20);\n+ // Load third image\nImg3 = new ImageView();\nImg3.ResourceUrl = ResourceUrl + \"img3.svg\";\nImg3.Size2D = new Size2D(100, 100);\nImg3.Margin = new Extents(20, 20, 20, 20);\n+ // Add child views\nview.Add(Img1);\nview.Add(Img2);\nview.Add(Img3);\n@@ -218,7 +236,7 @@ namespace NUILinearLayout\n/// <param name=\"e\">Key's args</param>\npublic void OnKeyEvent(object sender, Window.KeyEventArgs e)\n{\n- if (e.Key.State == Key.StateType.Down && (e.Key.KeyPressedName == \"Escape\" || e.Key.KeyPressedName == \"XF86Back\" || e.Key.KeyPressedName == \"BackSpace\"))\n+ if (e.Key.State == Key.StateType.Down && (e.Key.KeyPressedName == \"XF86Back\" || e.Key.KeyPressedName == \"Escape\"))\n{\nExit();\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Added comments and fixed exit by "back" button |
594,248 | 29.04.2021 17:04:19 | -7,200 | 6731fc5bc6df03e3a95e949508f27f2e94973211 | [Mobile][NUI] CheckBox - warnings cleanup | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/CheckBox/NUI_CheckBox/NUI_CheckBox.cs",
"new_path": "Mobile/NUI/CheckBox/NUI_CheckBox/NUI_CheckBox.cs",
"diff": "@@ -73,9 +73,13 @@ namespace NUI_CheckBox\n/// </summary>\nprivate CheckBox CustomCheckBox;\n/// <summary>\n+ /// The side of the CheckBox\n+ /// </summary>\n+ static private int CheckBoxSide = 200;\n+ /// <summary>\n/// Size of each CheckBox\n/// </summary>\n- private Size2D CheckBoxSize = new Size2D(200,200);\n+ private Size2D CheckBoxSize = new Size2D(CheckBoxSide, CheckBoxSide);\n/// <summary>\n/// Space between CheckBoxes inside the MainView\n/// </summary>\n@@ -92,7 +96,7 @@ namespace NUI_CheckBox\nWindow.Instance.KeyEvent += WindowKeyEvent;\nMainView = new View();\n- MainView.Size = new Size2D(CheckBoxSize.Width + 100, 4 * CheckBoxSize.Height + 5 * Space);\n+ MainView.Size = new Size2D(CheckBoxSide + 100, 4 * CheckBoxSide + 5 * Space);\nMainView.PivotPoint = PivotPoint.Center;\nMainView.ParentOrigin = ParentOrigin.Center;\nMainView.PositionUsesPivotPoint = true;\n@@ -114,7 +118,7 @@ namespace NUI_CheckBox\nCheckBoxExample.ParentOrigin = ParentOrigin.Center;\nCheckBoxExample.PositionUsesPivotPoint = true;\nCheckBoxExample.PivotPoint = PivotPoint.Center;\n- CheckBoxExample.Position = new Position(0, - (CheckBoxSize.Height + Space) / 2);\n+ CheckBoxExample.Position = new Position(0, - (CheckBoxSide + Space) / 2);\n// Set the icon images for different check box states\nStringSelector IconURL = new StringSelector()\n{\n@@ -140,7 +144,7 @@ namespace NUI_CheckBox\nParentOrigin = ParentOrigin.Center,\nPositionUsesPivotPoint = true,\nPivotPoint = PivotPoint.Center,\n- Position = new Position(0, (CheckBoxSize.Height + Space) / 2),\n+ Position = new Position(0, (CheckBoxSide + Space) / 2),\nSize = CheckBoxSize,\n// Gray structural background\nBackgroundImage = ImageURL + \"Struct.png\",\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] CheckBox - warnings cleanup |
594,248 | 29.04.2021 21:46:50 | -7,200 | 685becd12dd5c9e0a39d97bca96cc49e250e831e | [Mobile][NUI] Pagination - warnings cleanup
The touch event is handled together with the key event. | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Pagination/NUI_Pagination/NUI_Pagination.cs",
"new_path": "Mobile/NUI/Pagination/NUI_Pagination/NUI_Pagination.cs",
"diff": "@@ -61,9 +61,27 @@ namespace NUI_Pagination\nprivate View MainView;\nprivate VisualView MainVisualView;\nprivate Pagination PaginationExample;\n+ /// <summary>\n+ /// The width of the window.\n+ /// </summary>\nprivate int WindowWidth;\n+ /// <summary>\n+ /// The height of the window.\n+ /// </summary>\nprivate int WindowHeight;\n+ /// <summary>\n+ /// Vector defining the position change of the MainVisualView, as a response to the key/touch events.\n+ /// </summary>\nprivate Position2D WindowShift;\n+ /// <summary>\n+ /// The coordinates of the touched place on the screen.\n+ /// </summary>\n+ private Vector2 TouchedPosition;\n+ /// <summary>\n+ /// Variable holding the information whether the screen was touched or not.\n+ /// </summary>\n+ private bool IfTouched = false;\n+\n/// <summary>\n/// Handles creation phase of the forms application.\n@@ -78,8 +96,9 @@ namespace NUI_Pagination\nvoid Initialize()\n{\nWindow.Instance.KeyEvent += WindowKeyEvent;\n- WindowWidth = Window.Instance.WindowSize.Width;\n- WindowHeight = Window.Instance.WindowSize.Height;\n+ Window.Instance.TouchEvent += WindowTouchEvent;\n+ WindowWidth = (int)Window.Instance.WindowSize[0];\n+ WindowHeight = (int)Window.Instance.WindowSize[1];\nWindowShift = new Position2D(WindowWidth, 0);\n// the view is parent for the MainVisualView and the PaginationExample\n@@ -101,7 +120,7 @@ namespace NUI_Pagination\nfor (uint i = 1; i <= 3; ++i)\n{\nThisImageVisual = CreateImageVisual(i);\n- ThisImageVisual.Position = new Vector2((WindowWidth - ThisImageVisual.Size.Width) / 2 + (i - 1) * WindowWidth, 50);\n+ ThisImageVisual.Position = new Vector2((WindowWidth - ThisImageVisual.Size[0]) / 2 + (i - 1) * WindowWidth, 50);\nMainVisualView.AddVisual(\"image\" + i.ToString(), ThisImageVisual);\n}\n@@ -132,9 +151,70 @@ namespace NUI_Pagination\nreturn ThisImageVisual;\n}\n+ /// <summary>\n+ /// Called when the touch event is received.\n+ /// Response to the touching of the screen is a change of the screen's position\n+ /// and of the selected pagination's indicator.\n+ /// </summary>\n+ /// <param name=\"sender\"> Event sender </param>\n+ /// <param name=\"e\"> Event argument </param>\n+ private void WindowTouchEvent(object sender, Window.TouchEventArgs e)\n+ {\n+ if (e.Touch.GetPointCount() < 1)\n+ {\n+ return;\n+ }\n+\n+ switch (e.Touch.GetState(0))\n+ {\n+ // The screen is touched:\n+ // the position is stored\n+ // the state IfTouched is changed to be true\n+ case PointStateType.Down:\n+ {\n+ TouchedPosition = e.Touch.GetScreenPosition(0);\n+ IfTouched = true;\n+ break;\n+ }\n+\n+ // A new touched position is established\n+ // If the horizontal part of the Shift vector is greater than the threshold value\n+ // than the proper action is taken\n+ case PointStateType.Motion:\n+ {\n+ if (!IfTouched)\n+ {\n+ break;\n+ }\n+\n+ Vector2 Shift = e.Touch.GetScreenPosition(0) - TouchedPosition;\n+\n+ // If the Shift value is greater than the threshold value = 30,\n+ // the MainVisualView position the pagination selected index are changed\n+ if (Shift[0] > 30 && PaginationExample.SelectedIndex > 0)\n+ {\n+ MainVisualView.Position2D = MainVisualView.Position2D + WindowShift;\n+ PaginationExample.SelectedIndex = PaginationExample.SelectedIndex - 1;\n+ IfTouched = false;\n+ }\n+\n+ // If the Shift value is smaller than the threshold value = -30,\n+ // the MainVisualView position the pagination selected index are changed\n+ if (Shift[0] < -30 && PaginationExample.SelectedIndex < PaginationExample.IndicatorCount - 1)\n+ {\n+ MainVisualView.Position2D = MainVisualView.Position2D - WindowShift;\n+ PaginationExample.SelectedIndex = PaginationExample.SelectedIndex + 1;\n+ IfTouched = false;\n+ }\n+\n+ break;\n+ }\n+ }\n+ }\n+\n/// <summary>\n/// Called when the chosen key event is received.\n- /// Response on the pressing the left and right arrow is defined here:\n+ /// Response to the pressing the left and right arrow is defined here:\n/// switching the selected pagination's indicator.\n/// Also used to exit the application.\n/// </summary>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] Pagination - warnings cleanup
The touch event is handled together with the key event. |
594,259 | 11.05.2021 01:31:05 | -7,200 | d029306507a5693d73db306c2f5a2fb1f56efd0e | [Mobile][NUI] NotificationExample enhancemet | [
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/NotificationExample/NotificationExample/NotificationExample.cs",
"new_path": "Mobile/NUI/NotificationExample/NotificationExample/NotificationExample.cs",
"diff": "@@ -57,8 +57,9 @@ namespace NotificationExample\nRectangle PositionSize = new Rectangle(20, 0, 680, 100);\nnotification.SetPositionSize(PositionSize);\n+ // Dismiss notification window on touch if the value is true.\nbool DismissOnTouch = true;\n- notification.SetDismissOnTouch(DismissOnTouch); // Dismiss notification window on touch if the value is true.\n+ notification.SetDismissOnTouch(DismissOnTouch);\nTextLabel text = new TextLabel(\"This is a notification sample.\");\ntext.HorizontalAlignment = HorizontalAlignment.Center;\n@@ -81,16 +82,31 @@ namespace NotificationExample\nvoid Initialize()\n{\nWindow window = Window.Instance;\n-\n- View root = new View()\n- {\n- Size = new Size(window.Size.Width, window.Size.Height),\n- BackgroundColor = Color.Black\n- };\n-\n- window.Add(root);\n-\nwindow.KeyEvent += OnKeyEvent;\n+ Size2D ScreenSize = Window.Instance.WindowSize;\n+\n+ //Create view for text label\n+ View textView = new View();\n+ textView.Size2D = ScreenSize;\n+\n+ //create layout for text label\n+ LinearLayout textLayout = new LinearLayout();\n+ textLayout.LinearAlignment = LinearLayout.Alignment.CenterVertical;\n+ textLayout.LinearOrientation = LinearLayout.Orientation.Vertical;\n+ textView.Layout = textLayout;\n+\n+ //create label with information about notification\n+ TextLabel t1 = new TextLabel(\"Notification will be displayed every 5 seconds\\nTap on it to dismiss\");\n+ t1.TextColor = Color.Green;\n+ t1.MultiLine = true;\n+ t1.EnableMarkup = true;\n+ t1.WidthResizePolicy = ResizePolicyType.FillToParent;\n+ t1.HorizontalAlignment = HorizontalAlignment.Center;\n+ t1.VerticalAlignment = VerticalAlignment.Center;\n+\n+ //add components to label and window\n+ textView.Add(t1);\n+ window.Add(textView);\n//show notification each 10 seconds\nTimer timer = new Timer(10000);\n@@ -117,11 +133,14 @@ namespace NotificationExample\n/// <param name=\"e\">event</param>\npublic void OnKeyEvent(object sender, Window.KeyEventArgs e)\n{\n- if (e.Key.State == Key.StateType.Down && (e.Key.KeyPressedName == \"XF86Back\" || e.Key.KeyPressedName == \"Escape\"))\n+ if (e.Key.State == Key.StateType.Down)\n+ {\n+ if (e.Key.KeyPressedName == \"XF86Back\" || e.Key.KeyPressedName == \"Escape\" || e.Key.KeyPressedName == \"BackSpace\")\n{\nExit();\n}\n}\n+ }\n/// <summary>\n/// The enter point of the application.\n@@ -129,9 +148,10 @@ namespace NotificationExample\n/// <param name=\"args\">args</param>\nstatic void Main(string[] args)\n{\n- Log.Info(\"Tag\", \"========== Hello, Notifciation Example ==========\");\n+ Log.Info(\"NotificationExample\", \"========== Hello, Notifciation Example ==========\");\nvar app = new NotificationExample();\napp.Run(args);\n+ app.Dispose();\n}\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/NotificationExample/NotificationExample/NotificationExample.csproj",
"new_path": "Mobile/NUI/NotificationExample/NotificationExample/NotificationExample.csproj",
"diff": "</PropertyGroup>\n<ItemGroup>\n- <PackageReference Include=\"Tizen.NET\" Version=\"8.0.0.15524\">\n+ <PackageReference Include=\"Tizen.NET\" Version=\"8.0.0.15625\">\n<ExcludeAssets>Runtime</ExcludeAssets>\n</PackageReference>\n<PackageReference Include=\"Tizen.NET.Sdk\" Version=\"1.1.2\" />\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI/NotificationExample/README.md",
"diff": "+### NUINotificationExample\n+NUINotificationExample is a simple app that shows how [NUI Component Notification](https://docs.tizen.org/application/dotnet/guides/nui/nui-component/Notification/) usage example.\n+\n+\n+\n+### Author\n+* Patryk Kaczmarek\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/NotificationExample/Screenshots/screen1.png",
"new_path": "Mobile/NUI/NotificationExample/Screenshots/screen1.png",
"diff": "Binary files /dev/null and b/Mobile/NUI/NotificationExample/Screenshots/screen1.png differ\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] NotificationExample enhancemet |
594,259 | 11.05.2021 02:12:44 | -7,200 | 3d2f8fe7f7109eaf0b93cb44cd42471fcbda9fb5 | [Mobile][NUI] ScrollableBaseExample enhancemet | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI/ScrollableBaseExample/README.md",
"diff": "+### NUIScrollableBase\n+NUIScrollableBase is a simple app that shows how [NUI Scrollable Base](https://docs.tizen.org/application/dotnet/guides/nui/nui-components/ScrollableBase/) sample.\n+\n+\n+\n+### Author\n+* Patryk Kaczmarek\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/ScrollableBaseExample/Screenshots/screen1.png",
"new_path": "Mobile/NUI/ScrollableBaseExample/Screenshots/screen1.png",
"diff": "Binary files /dev/null and b/Mobile/NUI/ScrollableBaseExample/Screenshots/screen1.png differ\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/ScrollableBaseExample/ScrollableBaseExample/ScrollableBaseExample.cs",
"new_path": "Mobile/NUI/ScrollableBaseExample/ScrollableBaseExample/ScrollableBaseExample.cs",
"diff": "@@ -31,8 +31,13 @@ namespace ScrollableBaseExample\nInitialize();\n}\n+ /// <summary>\n+ /// ScrollableBase Simple App initializations.\n+ /// </summary>\nvoid Initialize()\n{\n+ Window window = Window.Instance;\n+ window.KeyEvent += OnKeyEvent;\nScrollableBase scrollableBase = new ScrollableBase();\nscrollableBase.Size = new Size(720, 1280);\nscrollableBase.ScrollingDirection = ScrollableBase.Direction.Vertical;\n@@ -60,16 +65,23 @@ namespace ScrollableBaseExample\n}\nscrollableBase.Add(items[i]);\n}\n-\n}\n+ /// <summary>\n+ /// This Application will be exited when back key entered.\n+ /// </summary>\n+ /// <param name=\"sender\">Window.Instance</param>\n+ /// <param name=\"e\">event</param>\npublic void OnKeyEvent(object sender, Window.KeyEventArgs e)\n{\n- if (e.Key.State == Key.StateType.Down && (e.Key.KeyPressedName == \"XF86Back\" || e.Key.KeyPressedName == \"Escape\"))\n+ if (e.Key.State == Key.StateType.Down)\n+ {\n+ if (e.Key.KeyPressedName == \"XF86Back\" || e.Key.KeyPressedName == \"Escape\" || e.Key.KeyPressedName == \"BackSpace\")\n{\nExit();\n}\n}\n+ }\nprivate void ScrollDragStarted(object sender, ScrollEventArgs e)\n{\n@@ -81,6 +93,10 @@ namespace ScrollableBaseExample\n// Do something in response to scroll drag ended\n}\n+ /// <summary>\n+ /// The enter point of the application.\n+ /// </summary>\n+ /// <param name=\"args\">args</param>\nstatic void Main(string[] args)\n{\nvar app = new ScrollableBaseExample();\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/ScrollableBaseExample/ScrollableBaseExample/ScrollableBaseExample.csproj",
"new_path": "Mobile/NUI/ScrollableBaseExample/ScrollableBaseExample/ScrollableBaseExample.csproj",
"diff": "</ItemGroup>\n<ItemGroup>\n- <PackageReference Include=\"Tizen.NET\" Version=\"8.0.0.15524\">\n+ <PackageReference Include=\"Tizen.NET\" Version=\"8.0.0.15625\">\n<ExcludeAssets>Runtime</ExcludeAssets>\n</PackageReference>\n<PackageReference Include=\"Tizen.NET.Sdk\" Version=\"1.1.2\" />\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][NUI] ScrollableBaseExample enhancemet |
594,294 | 11.05.2021 16:35:48 | -32,400 | f7d4fb78001ed4dce2453c1efaedd2f56f006322 | [Mobile][Downloader] Handle UI objects in a main thread | [
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Downloader/Downloader/Downloader/DownloadMainPage.cs",
"new_path": "Mobile/Xamarin.Forms/Downloader/Downloader/Downloader/DownloadMainPage.cs",
"diff": "@@ -171,10 +171,12 @@ namespace Downloader\n/// <param name=\"e\">Event arguments including download state</param>\nprivate void OnStateChanged(object sender, DownloadStateChangedEventArgs e)\n{\n- if (e.stateMsg.Length > 0)\n- {\n- DependencyService.Get<IDownload>().DownloadLog(\"State: \" + e.stateMsg);\n+ if (e.stateMsg.Length <= 0)\n+ return;\n+ DependencyService.Get<IDownload>().DownloadLog(\"State: \" + e.stateMsg);\n+ Device.BeginInvokeOnMainThread (() =>\n+ {\nif (e.stateMsg == \"Failed\")\n{\ndownloadButton.Text = e.stateMsg + \"! Please start download again.\";\n@@ -185,10 +187,9 @@ namespace Downloader\n}\nelse if (e.stateMsg != downloadButton.Text)\n{\n- // Update a download state\ndownloadButton.Text = e.stateMsg;\n}\n- }\n+ });\n}\n/// <summary>\n@@ -198,13 +199,15 @@ namespace Downloader\n/// <param name=\"e\">Event arguments including received data size</param>\nprivate void OnProgressbarChanged(object sender, DownloadProgressEventArgs e)\n{\n- ulong ContentSize = DependencyService.Get<IDownload>().GetContentSize();\n+ if (e.ReceivedSize <= 0)\n+ return;\n- if (e.ReceivedSize > 0)\n+ ulong ContentSize = DependencyService.Get<IDownload>().GetContentSize();\n+ Device.BeginInvokeOnMainThread (() =>\n{\nprogressBar.Progress = (double)(e.ReceivedSize / ContentSize);\nprogressLabel.Text = e.ReceivedSize + \"bytes / \" + ContentSize + \"bytes\";\n- }\n+ });\n}\n/// <summary>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Downloader/README.md",
"new_path": "Mobile/Xamarin.Forms/Downloader/README.md",
"diff": "@@ -10,7 +10,7 @@ This sample is mainly designed for Tizen Mobile profile.\n### Verified Version\n* Xamarin.Forms : 4.5.0\n* Tizen.NET : 6.0.0\n-* Tizen.NET.SDK : 1.0.9\n+* Tizen.NET.SDK : 1.1.5\n### Supported Profile\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][Downloader] Handle UI objects in a main thread |
594,223 | 12.05.2021 16:43:14 | -32,400 | ce6526e19f52a336b80b7129725a1a402496eaf7 | Fix svace issue in ApplicationControl app | [
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/UI/ApplicationControl/ApplicationControl/ApplicationControl.Tizen.Mobile/ApplicationOperations.cs",
"new_path": "Mobile/Xamarin.Forms/UI/ApplicationControl/ApplicationControl/ApplicationControl.Tizen.Mobile/ApplicationOperations.cs",
"diff": "@@ -172,7 +172,9 @@ namespace ApplicationControl.Tizen.Mobile\npublic string GetApplicationIconPath(string id)\n{\nvar info = new ApplicationInfo(id);\n- return info.IconPath;\n+ string iconPath = info.IconPath;\n+ info.Dispose();\n+ return iconPath;\n}\n/// <summary>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/UI/ApplicationControl/ApplicationControl/ApplicationControl/MainPage.cs",
"new_path": "Mobile/Xamarin.Forms/UI/ApplicationControl/ApplicationControl/ApplicationControl/MainPage.cs",
"diff": "@@ -147,7 +147,7 @@ namespace ApplicationControl\n/// </summary>\npublic void ExecuteSelectedApplication()\n{\n- if (SelectedItem.Id == null || SelectedAppControlType == AppControlType.Unknown)\n+ if (SelectedItem == null || SelectedItem?.Id == null || SelectedAppControlType == AppControlType.Unknown)\n{\nreturn;\n}\n@@ -160,7 +160,7 @@ namespace ApplicationControl\n/// </summary>\npublic void KillSelectedApplication()\n{\n- if (SelectedItem.Id == null)\n+ if (SelectedItem == null || SelectedItem?.Id == null)\n{\nreturn;\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Fix svace issue in ApplicationControl app |
594,223 | 12.05.2021 17:22:24 | -32,400 | d69783b5198f0c1183625d824ae99f0f8bfb175c | Fix svace issues in Alarm app | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Alarm/Alarm/Implements/AlarmPersistentHandler.cs",
"new_path": "Wearable/Xamarin.Forms/Alarm/Alarm/Implements/AlarmPersistentHandler.cs",
"diff": "@@ -49,6 +49,7 @@ namespace Alarm.Implements\n{\nvar dataContractSerializer = new DataContractSerializer(typeof(Dictionary<string, AlarmRecord>));\nObject ret1 = dataContractSerializer.ReadObject(alarmReader);\n+ alarmFileStream.Dispose();\nalarmFileStream = null;\nreturn (IDictionary<string, AlarmRecord>)ret1;\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Alarm/Alarm/Renderers/ImageButtonRenderer.cs",
"new_path": "Wearable/Xamarin.Forms/Alarm/Alarm/Renderers/ImageButtonRenderer.cs",
"diff": "@@ -147,6 +147,13 @@ namespace Alarm.Tizen.Renderers\nprivate void UpdateBlendColor(bool obj)\n{\nImageButton BtnElement = Element as ImageButton;\n+\n+ if (BtnElement == null ||\n+ Control == null)\n+ {\n+ return;\n+ }\n+\nControl.Color = BtnElement.BlendColor.ToNative();\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Alarm/Alarm/Views/AlarmListCell.cs",
"new_path": "Wearable/Xamarin.Forms/Alarm/Alarm/Views/AlarmListCell.cs",
"diff": "@@ -104,6 +104,8 @@ namespace Alarm.Views\nswitchObj.Toggled += (s, e) =>\n{\nAlarmRecord am = (AlarmRecord)BindingContext;\n+ if (am != null)\n+ {\n/// Modify state and re-draw it. Redraw must be called to redraw\nif (e.Value)\n{\n@@ -113,6 +115,7 @@ namespace Alarm.Views\n{\nAlarmModel.DeactivatelAlarm(am);\n}\n+ }\n};\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Fix svace issues in Alarm app |
594,223 | 12.05.2021 17:34:23 | -32,400 | 05c82fe47b01c2bfdae1b16240a0d255aad1360f | Fix svace issue in ImageViewer app | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/ImageViewer/ImageViewer/Views/CircleContentViewRenderer.cs",
"new_path": "Wearable/Xamarin.Forms/ImageViewer/ImageViewer/Views/CircleContentViewRenderer.cs",
"diff": "@@ -35,12 +35,16 @@ namespace ImageViewer.Views\n_circleImage.IsFilled = true;\n_circleImage.File = ResourcePath.GetPath(\"circle.png\");\n_circleImage.Show();\n+\n+ if (Control != null)\n+ {\n_circleImage.Geometry = Control.Geometry;\nControl.SetClip(_circleImage);\nControl.LayoutUpdated += OnLayoutUpdated;\nControl.Moved += Control_Moved;\nControl.Deleted += Control_Deleted;\n}\n+ }\nprivate void Control_Deleted(object sender, EventArgs e)\n{\n@@ -48,14 +52,20 @@ namespace ImageViewer.Views\n}\nprivate void Control_Moved(object sender, EventArgs e)\n+ {\n+ if (Control != null)\n{\n_circleImage.Geometry = Control.Geometry;\n}\n+ }\nprivate void OnLayoutUpdated(object sender, Xamarin.Forms.Platform.Tizen.Native.LayoutEventArgs e)\n+ {\n+ if (Control != null)\n{\n_circleImage.Geometry = Control.Geometry;\n}\n+ }\nprotected override void Dispose(bool disposing)\n{\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Fix svace issue in ImageViewer app |
594,272 | 13.05.2021 15:44:43 | -7,200 | f8ab3ed46cdb5542b0d545b18666daae3d1f2639 | [W/XF/SpeechToText] Svace fix. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/SpeechToText/SpeechToText/App.xaml.cs",
"new_path": "Wearable/Xamarin.Forms/SpeechToText/SpeechToText/App.xaml.cs",
"diff": "@@ -44,6 +44,11 @@ namespace SpeechToText\n{\nInitializeComponent();\n+ if (Resources == null)\n+ {\n+ return;\n+ }\n+\nResources.Add(\"TextColor\", Color.FromRgba(247, 247, 247, 0.8));\nResources.Add(\"TipColor\", Color.FromRgba(250, 250, 250, 0.8));\nResources.Add(\"TizenPointColor\", Color.FromHex(\"#4CCFFF\"));\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [W/XF/SpeechToText] Svace fix. |
594,272 | 13.05.2021 15:50:30 | -7,200 | 1c7aa6bbd28ea0451178ed7edcf95f4001cd368b | [W/XF/Calculator] Svace fixes. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Calculator/src/Calculator/Models/Operators.cs",
"new_path": "Wearable/Xamarin.Forms/Calculator/src/Calculator/Models/Operators.cs",
"diff": "@@ -254,8 +254,9 @@ namespace Calculator.Models\n{\nIOperator inputOper = Operators.GetOperator(addingElement);\nexpressionElements.RemoveAt(expressionElements.Count - 1);\n- if (OperandType.RIGHT == inputOper.OperandType ||\n- OperandType.NONE == inputOper.OperandType)\n+ if (inputOper != null &&\n+ (OperandType.RIGHT == inputOper.OperandType ||\n+ OperandType.NONE == inputOper.OperandType))\n{\nexpressionElements.Add(new Multiplication());\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Calculator/src/Calculator/Renderers/ImageButtonRenderer.cs",
"new_path": "Wearable/Xamarin.Forms/Calculator/src/Calculator/Renderers/ImageButtonRenderer.cs",
"diff": "@@ -98,16 +98,23 @@ namespace Calculator.Renderers\nprotected override void UpdateAfterLoading(bool initialize)\n{\nbase.UpdateAfterLoading(initialize);\n+\n+ if (Control != null)\n+ {\nControl.Color = RegularColor;\n}\n+ }\n/// <summary>\n/// Revert the button's color\n/// </summary>\nprivate void KeyUp()\n+ {\n+ if (Control != null)\n{\nControl.Color = RegularColor;\n}\n+ }\n/// <summary>\n/// A Action delegate which is restore button image as default\n@@ -122,8 +129,11 @@ namespace Calculator.Renderers\n/// <summary>\n/// A Action delegate which is restore button image as pressed situation. </summary>\nprivate void KeyDown()\n+ {\n+ if (Control != null)\n{\nControl.Color = PressedColor;\n}\n}\n}\n+}\n\\ No newline at end of file\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [W/XF/Calculator] Svace fixes. |
594,232 | 13.05.2021 14:51:04 | -32,400 | dc8fe59f673d6964f3f6a3506e2347f4a11e00a8 | [Mobile][Sensor] Change library version for xamarin.Forms | [
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Sensor/src/Sensor/Sensor.Tizen.Mobile/Sensor.Tizen.Mobile.csproj",
"new_path": "Mobile/Xamarin.Forms/Sensor/src/Sensor/Sensor.Tizen.Mobile/Sensor.Tizen.Mobile.csproj",
"diff": "<!-- Include Nuget Package for Tizen Project building -->\n<ItemGroup>\n- <PackageReference Include=\"Tizen.NET\" Version=\"4.0.0\">\n+ <PackageReference Include=\"NETStandard.Library\" Version=\"2.0.3\" />\n+ <PackageReference Include=\"Tizen.NET\" Version=\"8.0.0.15631\">\n<ExcludeAssets>Runtime</ExcludeAssets>\n</PackageReference>\n<PackageReference Include=\"Tizen.NET.Sdk\" Version=\"1.0.0\" />\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Sensor/src/Sensor/Sensor/Sensor.csproj",
"new_path": "Mobile/Xamarin.Forms/Sensor/src/Sensor/Sensor/Sensor.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n+ <PackageReference Include=\"Tizen.NET\" Version=\"8.0.0.15631\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n<ItemGroup>\n<Compile Update=\"Pages\\SensorMain.xaml.cs\">\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][Sensor] Change library version for xamarin.Forms |
594,279 | 14.05.2021 21:32:34 | -32,400 | 2f92f6c4a77748067fdcbcb281424ea6ce1f875c | Fix cli build error | [
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Calculator/Calculator/tizen/Calculator.sln",
"new_path": "Mobile/Xamarin.Forms/Calculator/Calculator/tizen/Calculator.sln",
"diff": "@@ -7,11 +7,6 @@ Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"Calculator\", \"Calculator\\Ca\nEndProject\nProject(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"Calculator.Tizen\", \"Calculator\\Calculator.Tizen\\Calculator.Tizen.csproj\", \"{0004D192-AE18-45EF-98DB-270136EA7711}\"\nEndProject\n-Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"CalculatorUnitTest\", \"CalculatorUnitTest\\CalculatorUnitTest.csproj\", \"{890D5ACB-66F5-4816-8322-5E5AB02FDE03}\"\n- ProjectSection(ProjectDependencies) = postProject\n- {07E84A80-0B76-42F5-AECE-8924BDCCE3B5} = {07E84A80-0B76-42F5-AECE-8924BDCCE3B5}\n- EndProjectSection\n-EndProject\nGlobal\nGlobalSection(SolutionConfigurationPlatforms) = preSolution\nDebug|Any CPU = Debug|Any CPU\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Fix cli build error |
594,232 | 17.05.2021 17:00:44 | -32,400 | 90b7e166f77c23dbd18db5330259a9cc3242f27a | [Mobile][Sensor] Change project file to latest version. | [
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Sensor/src/Sensor.sln",
"new_path": "Mobile/Xamarin.Forms/Sensor/src/Sensor.sln",
"diff": "@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00\n# Visual Studio Version 16\nVisualStudioVersion = 16.0.31229.75\nMinimumVisualStudioVersion = 10.0.40219.1\n-Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"Sensor\", \"Sensor\\Sensor\\Sensor.csproj\", \"{F497375C-DCE7-4D66-ACF5-BF5832944534}\"\n+Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"Sensor\", \"Sensor\\Sensor\\Sensor.csproj\", \"{468BE482-845F-4568-A823-A2F219AA5310}\"\nEndProject\n-Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"Sensor.Tizen.Mobile\", \"Sensor\\Sensor.Tizen.Mobile\\Sensor.Tizen.Mobile.csproj\", \"{27270740-F842-4832-B542-54E35E53B685}\"\n+Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"Sensor.Tizen.Mobile\", \"Sensor\\Sensor.Tizen.Mobile\\Sensor.Tizen.Mobile.csproj\", \"{73243086-7137-4247-8349-DA0B80EF0F6D}\"\nEndProject\nGlobal\nGlobalSection(SolutionConfigurationPlatforms) = preSolution\n@@ -13,19 +13,19 @@ Global\nRelease|Any CPU = Release|Any CPU\nEndGlobalSection\nGlobalSection(ProjectConfigurationPlatforms) = postSolution\n- {F497375C-DCE7-4D66-ACF5-BF5832944534}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n- {F497375C-DCE7-4D66-ACF5-BF5832944534}.Debug|Any CPU.Build.0 = Debug|Any CPU\n- {F497375C-DCE7-4D66-ACF5-BF5832944534}.Release|Any CPU.ActiveCfg = Release|Any CPU\n- {F497375C-DCE7-4D66-ACF5-BF5832944534}.Release|Any CPU.Build.0 = Release|Any CPU\n- {27270740-F842-4832-B542-54E35E53B685}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n- {27270740-F842-4832-B542-54E35E53B685}.Debug|Any CPU.Build.0 = Debug|Any CPU\n- {27270740-F842-4832-B542-54E35E53B685}.Release|Any CPU.ActiveCfg = Release|Any CPU\n- {27270740-F842-4832-B542-54E35E53B685}.Release|Any CPU.Build.0 = Release|Any CPU\n+ {468BE482-845F-4568-A823-A2F219AA5310}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n+ {468BE482-845F-4568-A823-A2F219AA5310}.Debug|Any CPU.Build.0 = Debug|Any CPU\n+ {468BE482-845F-4568-A823-A2F219AA5310}.Release|Any CPU.ActiveCfg = Release|Any CPU\n+ {468BE482-845F-4568-A823-A2F219AA5310}.Release|Any CPU.Build.0 = Release|Any CPU\n+ {73243086-7137-4247-8349-DA0B80EF0F6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n+ {73243086-7137-4247-8349-DA0B80EF0F6D}.Debug|Any CPU.Build.0 = Debug|Any CPU\n+ {73243086-7137-4247-8349-DA0B80EF0F6D}.Release|Any CPU.ActiveCfg = Release|Any CPU\n+ {73243086-7137-4247-8349-DA0B80EF0F6D}.Release|Any CPU.Build.0 = Release|Any CPU\nEndGlobalSection\nGlobalSection(SolutionProperties) = preSolution\nHideSolutionNode = FALSE\nEndGlobalSection\nGlobalSection(ExtensibilityGlobals) = postSolution\n- SolutionGuid = {A11B0798-5ACA-4DC6-8570-917003C02E5F}\n+ SolutionGuid = {F98B7925-D0AD-4FBD-9041-9AC9757AD495}\nEndGlobalSection\nEndGlobal\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Sensor/src/Sensor/Sensor.Tizen.Mobile/Sensor.Tizen.Mobile.cs",
"new_path": "Mobile/Xamarin.Forms/Sensor/src/Sensor/Sensor.Tizen.Mobile/Sensor.Tizen.Mobile.cs",
"diff": "* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n+using System;\nusing Xamarin.Forms;\nnamespace Sensor.Tizen.Mobile\n{\nclass Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication\n{\n- /// <summary>\n- /// This method called when the application created.\n- /// </summary>\nprotected override void OnCreate()\n{\nbase.OnCreate();\n- LoadApplication(new SensorApp());\n+\n+ LoadApplication(new App());\n}\n- /// <summary>\n- /// The main entrance of the application.\n- /// </summary>\n- /// <param name=\"args\">The <see cref=\"string\"/> arguments.</param>\nstatic void Main(string[] args)\n{\nvar app = new Program();\n"
},
{
"change_type": "RENAME",
"old_path": "Mobile/Xamarin.Forms/Sensor/src/Sensor/Sensor/SensorApp.cs",
"new_path": "Mobile/Xamarin.Forms/Sensor/src/Sensor/Sensor/Sensor.cs",
"diff": "@@ -19,43 +19,32 @@ using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n+\nusing Xamarin.Forms;\nnamespace Sensor\n{\n- /// <summary>\n- /// Application class\n- /// </summary>\n- public class SensorApp : Application\n+ public class App : Application\n{\n- /// <summary>\n- /// Initializes a new instance of the app class\n- /// </summary>\n- public SensorApp()\n+ public App()\n{\n// The root page of your application\nMainPage = new NavigationPage(new SensorMain());\n}\n- /// <summary>\n- /// Handles when your app starts\n- /// </summary>\nprotected override void OnStart()\n{\n+ // Handle when your app starts\n}\n- /// <summary>\n- /// Handles when your app sleeps\n- /// </summary>\nprotected override void OnSleep()\n{\n+ // Handle when your app sleeps\n}\n- /// <summary>\n- /// Handles when your app resumes\n- /// </summary>\nprotected override void OnResume()\n{\n+ // Handle when your app resumes\n}\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile][Sensor] Change project file to latest version.
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com> |
594,272 | 19.05.2021 17:57:27 | -7,200 | 48d6d3e38fe5d680b76d030eac021b649741637a | [M/XF/Weather] Svace fixes. | [
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/ViewModels/CurrentWeatherViewModel.cs",
"new_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/ViewModels/CurrentWeatherViewModel.cs",
"diff": "@@ -274,6 +274,11 @@ namespace Weather.ViewModels\n/// <returns>Task to be executed.</returns>\nprivate async Task ForecastOnPropertyChangedTask(string propertyName)\n{\n+ if (Forecast == null)\n+ {\n+ return;\n+ }\n+\nif (propertyName == nameof(NotificationTask<Forecast>.IsFaulted))\n{\nif (Forecast.InnerException is HttpException exception)\n@@ -282,7 +287,7 @@ namespace Weather.ViewModels\n}\n}\n- if (propertyName == nameof(NotificationTask<Forecast>.IsSuccessfullyCompleted))\n+ if (propertyName == nameof(NotificationTask<Forecast>.IsSuccessfullyCompleted) && Forecast.Result != null)\n{\nforeach (var currentWeather in Forecast.Result.WeatherList)\n{\n@@ -305,7 +310,7 @@ namespace Weather.ViewModels\n{\nif (propertyName == nameof(NotificationTask<CurrentWeather>.IsFaulted))\n{\n- if (CurrentWeather.InnerException is HttpException exception)\n+ if (CurrentWeather?.InnerException is HttpException exception)\n{\nawait ErrorHandler.HandleException((int)exception.StatusCode, exception.StatusCode.ToString());\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [M/XF/Weather] Svace fixes. |
594,272 | 19.05.2021 18:29:16 | -7,200 | 799aa5f18cec1195ea210a8f998a4ad600bc30af | [M/XF/CalendarComponent] Svace fixes. | [
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/CalendarComponent/src/CalendarComponent/CalendarComponent.Tizen.Mobile/Renderers/CalendarViewRenderer.cs",
"new_path": "Mobile/Xamarin.Forms/CalendarComponent/src/CalendarComponent/CalendarComponent.Tizen.Mobile/Renderers/CalendarViewRenderer.cs",
"diff": "@@ -39,6 +39,8 @@ namespace CalendarComponent.Tizen.Mobile.Renderers\nSetNativeControl(calrendarView);\n}\n+ if (Control != null)\n+ {\nif (e.OldElement != null)\n{\nControl.DateChanged -= DateChangedHandler;\n@@ -48,6 +50,7 @@ namespace CalendarComponent.Tizen.Mobile.Renderers\n{\nControl.DateChanged += DateChangedHandler;\n}\n+ }\nbase.OnElementChanged(e);\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [M/XF/CalendarComponent] Svace fixes. |
594,272 | 19.05.2021 19:14:39 | -7,200 | 333815f79e0dafc591403779d5b538d0e075ba91 | [M/XF/SpeechToText] Svace fixes. | [
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/SpeechToText/src/SpeechToText/SpeechToText/SpeechToText.xaml.cs",
"new_path": "Mobile/Xamarin.Forms/SpeechToText/src/SpeechToText/SpeechToText/SpeechToText.xaml.cs",
"diff": "@@ -47,6 +47,11 @@ namespace SpeechToText\n{\nInitializeComponent();\n+ if (Resources == null)\n+ {\n+ return;\n+ }\n+\nResources.Add(\"TextColor\", Color.FromRgba(247, 247, 247, 0.8));\nResources.Add(\"TipColor\", Color.FromRgba(250, 250, 250, 0.8));\nResources.Add(\"NavigationBarBackgroundColor\", Color.FromRgb(87, 187, 201));\n@@ -65,7 +70,7 @@ namespace SpeechToText\nMainPage = new NavigationPage(new MainPage())\n{\n- BarBackgroundColor = (Color)Resources[\"NavigationBarBackgroundColor\"]\n+ BarBackgroundColor = (Color)Resources?[\"NavigationBarBackgroundColor\"]\n};\nAppViewModel.Navigation = MainPage.Navigation;\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [M/XF/SpeechToText] Svace fixes. |
594,249 | 20.05.2021 11:24:25 | -32,400 | b4a62bcf5a0651fcfc26eab97c27f2d6f49ad7dd | Fix svace issues and remove unnecessary codes. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/WeatherWatch/WeatherWatch/Services/ForecastService.cs",
"new_path": "Wearable/Xamarin.Forms/WeatherWatch/WeatherWatch/Services/ForecastService.cs",
"diff": "@@ -19,7 +19,6 @@ using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\nusing Tizen.Location;\n-using Tizen.System;\nusing WeatherWatch.PageModels;\nnamespace WeatherWatch.Services\n@@ -81,7 +80,6 @@ namespace WeatherWatch.Services\n{\ntry\n{\n- HttpClient client = new HttpClient();\nstring url = WebSiteInfo.AIR_POLLUTION_URL + position.Latitude + \";\" + position.Longitude + \"/?token=\" + WebSiteInfo.AIR_POLLUTION_API_KEY;\nConsole.WriteLine(\"[UpdateAQI] url : \" + url);\ndynamic result = await GetDataFromWeb(url);\n@@ -117,7 +115,6 @@ namespace WeatherWatch.Services\n{\ntry\n{\n- HttpClient _httpWeatherClient = new HttpClient();\nstring url = string.Format(WebSiteInfo.WEATHER_URL, location.Latitude, location.Longitude, WebSiteInfo.WEATHER_API_KEY);\ndynamic result = await GetDataFromWeb(url);\nif (result != null)\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/WebProxySample/src/WebProxySample/MainPageModel.cs",
"new_path": "Wearable/Xamarin.Forms/WebProxySample/src/WebProxySample/MainPageModel.cs",
"diff": "@@ -34,6 +34,7 @@ namespace WebProxySample\npublic const string Tizen_Emulator = \"Emulator\";\nstring DownloadsFolder;\nstring ModelName;\n+ WebClient webClient;\n/// <summary>\n/// Constructor\n@@ -113,7 +114,7 @@ namespace WebProxySample\ntry\n{\n- WebClient webClient = new WebClient();\n+ webClient = new WebClient();\nConnectionItem currentConnection = ConnectionManager.CurrentConnection;\nLog.Info(Program.LOG_TAG, \"Connection(\" + currentConnection.Type + \", \" + currentConnection.State + \")\");\n@@ -149,6 +150,10 @@ namespace WebProxySample\ncatch (Exception ex)\n{\nLog.Error(Program.LOG_TAG, \"[DownloadContent] Error: \" + ex.Message);\n+ if (webClient != null)\n+ {\n+ webClient.Dispose();\n+ }\n}\n}\n@@ -189,6 +194,7 @@ namespace WebProxySample\nLog.Error(Program.LOG_TAG, \"[WebClient_DownloadFileCompleted] Error : \" + e.Error.GetType() + \", \" + e.Error.Message);\nDownloadInfo += \"\\n[WebClient_DownloadFileCompleted] Error : \" + e.Error.GetType() + \", \" + e.Error.Message;\n}\n+ webClient.Dispose();\n}\n/// <summary>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | Fix svace issues and remove unnecessary codes. |
594,294 | 20.05.2021 20:09:39 | -32,400 | 51b7b32d512d05ebe2f9f94e74de27610203b4ae | [Mobile/Wearable][NetworkApp] Fix svace issues | [
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/NetworkApp/NetworkApp/NetworkApp.Tizen.Mobile/WiFiImplementation.cs",
"new_path": "Mobile/Xamarin.Forms/NetworkApp/NetworkApp/NetworkApp.Tizen.Mobile/WiFiImplementation.cs",
"diff": "@@ -107,6 +107,8 @@ namespace NetworkApp.Tizen.Mobile\nLogImplementation.DLog(\"Connect() \" + essid + \" \" + password);\n// Get a WiFiAP instance with essid from Wi-Fi AP list\nWiFiAP ap = FindAP(essid);\n+ if (ap == null)\n+ return Task.FromException(new ArgumentException(\"Cannot find \" + essid));\n// Set password\nif (password.Length > 0)\n{\n@@ -125,7 +127,11 @@ namespace NetworkApp.Tizen.Mobile\n{\nLogImplementation.DLog(\"Disconnect() \" + essid);\n// Get a WiFiAP instance with essid from Wi-Fi AP list and disconnect it by calling Tizen C# API\n- return FindAP(essid).DisconnectAsync();\n+ WiFiAP ap = FindAP(essid);\n+ if (ap == null)\n+ return Task.FromException(new ArgumentException(\"Cannot find \" + essid));\n+\n+ return ap.DisconnectAsync();\n}\n/// <summary>\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/NetworkApp/NetworkApp/Models/WiFiApiManager.cs",
"new_path": "Wearable/Xamarin.Forms/NetworkApp/NetworkApp/Models/WiFiApiManager.cs",
"diff": "@@ -117,6 +117,8 @@ namespace NetworkApp.Models\nLogger.Log(\"Connect() \" + essid + \" \" + password);\n// Get a WiFiAP instance with essid from Wi-Fi AP list\nWiFiAP ap = FindAP(essid);\n+ if (ap == null)\n+ return Task.FromException(new ArgumentException(\"Cannot find \" + essid));\n// Set password\nif (password.Length > 0)\n{\n@@ -135,7 +137,10 @@ namespace NetworkApp.Models\n{\nLogger.Log(\"Disconnect() \" + essid);\n// Get a WiFiAP instance with essid from Wi-Fi AP list and disconnect it by calling Tizen C# API\n- return FindAP(essid).DisconnectAsync();\n+ WiFiAP ap = FindAP(essid);\n+ if (ap == null)\n+ return Task.FromException(new ArgumentException(\"Cannot find \" + essid));\n+ return ap.DisconnectAsync();\n}\n/// <summary>\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [Mobile/Wearable][NetworkApp] Fix svace issues |
594,272 | 21.05.2021 16:17:01 | -7,200 | 39a202d7de60f4862c76bf14f6ab3f2fe6e6ed8e | [W/XF/TextReader] Svace fixes. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/TextReader/TextReader/Views/WearableViewResolver.cs",
"new_path": "Wearable/Xamarin.Forms/TextReader/TextReader/Views/WearableViewResolver.cs",
"diff": "@@ -53,7 +53,7 @@ namespace TextReader.Tizen.Wearable.Views\n_rootPage = new NavigationPage(main)\n{\n- BarBackgroundColor = (Color)main.Resources[\"MainColor\"]\n+ BarBackgroundColor = (Color)main.Resources?[\"MainColor\"]\n};\nreturn _rootPage;\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [W/XF/TextReader] Svace fixes. |
594,272 | 21.05.2021 16:17:36 | -7,200 | 80321abc5efdf4902877af71d16b7b7ea5d33860 | [W/XF/Weather] Svace fixes. | [
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Weather/Weather/ViewModels/CurrentWeatherViewModel.cs",
"new_path": "Wearable/Xamarin.Forms/Weather/Weather/ViewModels/CurrentWeatherViewModel.cs",
"diff": "@@ -236,7 +236,7 @@ namespace Weather.ViewModels\nif (propertyName == nameof(NotificationTask<Forecast>.IsSuccessfullyCompleted))\n{\n- foreach (var currentWeather in Forecast.Result.WeatherList)\n+ foreach (var currentWeather in Forecast.Result?.WeatherList)\n{\nif (currentWeather != null)\n{\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Weather/Weather/ViewModels/ForecastViewModel.cs",
"new_path": "Wearable/Xamarin.Forms/Weather/Weather/ViewModels/ForecastViewModel.cs",
"diff": "@@ -176,7 +176,7 @@ namespace Weather.ViewModels\n{\nforeach (CurrentWeather forecast in list)\n{\n- ForecastsModels.Add(forecast);\n+ ForecastsModels?.Add(forecast);\n}\n}\n"
}
] | C# | Apache License 2.0 | samsung/tizen-csharp-samples | [W/XF/Weather] Svace fixes. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.