This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
658 additions
and
1,176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<PropertyGroup> | ||
<ThemeFileDirectory>$(MSBuildThisFileDirectory)..\content\theme\</ThemeFileDirectory> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'tizen40' "> | ||
<TizenTpkUserIncludeFiles Include="$(ThemeFileDirectory)*.edj"> | ||
<TizenTpkSubDir>res</TizenTpkSubDir> | ||
</TizenTpkUserIncludeFiles> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
src/Tizen.Wearable.CircularUI.Forms.Renderer/ContentButtonRenderer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/* | ||
* Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved | ||
* | ||
* Licensed under the Flora License, Version 1.1 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://floralicense.org/license/ | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
using System; | ||
using Tizen.Wearable.CircularUI.Forms; | ||
using Tizen.Wearable.CircularUI.Forms.Renderer; | ||
using Xamarin.Forms; | ||
using Xamarin.Forms.Platform.Tizen; | ||
using Xamarin.Forms.Platform.Tizen.Native; | ||
using XForms = Xamarin.Forms.Forms; | ||
using XFLayout = Xamarin.Forms.Layout; | ||
using EButton = ElmSharp.Button; | ||
using EColor = ElmSharp.Color; | ||
using System.ComponentModel; | ||
|
||
[assembly: ExportRenderer(typeof(ContentButton), typeof(ContentButtonRenderer))] | ||
|
||
namespace Tizen.Wearable.CircularUI.Forms.Renderer | ||
{ | ||
public class ContentButtonRenderer : LayoutRenderer | ||
{ | ||
EButton _button; | ||
|
||
ContentButton Button => Element as ContentButton; | ||
|
||
protected override void OnElementChanged(ElementChangedEventArgs<XFLayout> e) | ||
{ | ||
base.OnElementChanged(e); | ||
Initialize(); | ||
} | ||
|
||
void Initialize() | ||
{ | ||
if (_button == null) | ||
{ | ||
_button = new EButton(XForms.NativeParent); | ||
_button.BackgroundColor = EColor.Transparent; | ||
_button.SetPartColor("effect", EColor.Transparent); | ||
_button.SetPartColor("effect_pressed", EColor.Transparent); | ||
_button.Show(); | ||
|
||
_button.Pressed += OnPressed; | ||
_button.Released += OnReleased; | ||
_button.Clicked += OnClicked; | ||
|
||
Control.PackEnd(_button); | ||
} | ||
} | ||
|
||
protected override void UpdateLayout() | ||
{ | ||
base.UpdateLayout(); | ||
|
||
_button.Geometry = Control.Geometry; | ||
_button.RaiseTop(); | ||
} | ||
|
||
void OnPressed(object sender, EventArgs args) | ||
{ | ||
Button?.SendPressed(); | ||
} | ||
|
||
void OnReleased(object sender, EventArgs args) | ||
{ | ||
Button?.SendReleased(); | ||
} | ||
|
||
void OnClicked(object sender, EventArgs args) | ||
{ | ||
Button?.SendClicked(); | ||
} | ||
} | ||
} |
25 changes: 0 additions & 25 deletions
25
src/Tizen.Wearable.CircularUI.Forms.Renderer/IMediaViewProvider.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.