<ViewCell xmlns="http://xamarin.com/schemas/2014/forms"\r
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"\r
x:Class="TVHome.Controls.MainPanelButton">\r
- <RelativeLayout Opacity="0.3">\r
- <BoxView x:Name = "ButtonBox"\r
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"\r
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"\r
- Color="Red" />\r
- <Label x:Name ="ButtonTitle"\r
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"\r
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"\r
- Text="{Binding CurrentStateDescription.Label}"\r
- LineBreakMode="TailTruncation" />\r
- <Button x:Name = "ButtonFocusArea"\r
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"\r
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"\r
- Focused="OnFocused"\r
- Unfocused="OnUnfocused"\r
- Clicked="OnClicked"\r
- Opacity="0" />\r
- </RelativeLayout>\r
+ <RelativeLayout Opacity="0.3">\r
+ <BoxView x:Name = "ButtonBox"\r
+ RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"\r
+ RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"\r
+ Color="Red" />\r
+ <Image x:Name="ButtonImage"\r
+ RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"\r
+ RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}" \r
+ Source="{Binding CurrentStateDescription.IconPath}"/>\r
+ <Button x:Name = "ButtonFocusArea"\r
+ RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"\r
+ RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"\r
+ Focused="OnFocused"\r
+ Unfocused="OnUnfocused"\r
+ Clicked="OnClicked"\r
+ Opacity="0" />\r
+ </RelativeLayout>\r
</ViewCell>
\ No newline at end of file
{\r
string[] AppName = { "Recent", "Apps", "Settings" };\r
string[] AppControlID = { "org.tizen.settings", "org.tizen.apps", "org.tizen.settings" };\r
+ string[] AppIconPath = { "recent_normal.png", "app_normal.png", "settings_normal.png" };\r
\r
List<ShortcutInfo> TempList = new List<ShortcutInfo>();\r
for (int i = 0; i < 3; i++)\r
new StateDescription\r
{\r
Label = AppName[i],\r
- IconPath = "wifion.png",\r
+ IconPath = AppIconPath[i],\r
Action = new AppControlAction()\r
{\r
PkgID = AppControlID[i]\r