Itme Selected/UnSelected Vi changed.
Add animation at additionalinfo.
No contents layout added.
Change-Id: Ia609a32af2b32262305cea18cc55a6e04733141a
Signed-off-by: jjie.choi <jjie.choi@samsung.com>
<Image x:Name="DimImage"
VerticalOptions="Start"
Source="img_apps_list_dimmed_75.png"
- Opacity="0"
- Scale="0" />
+ Opacity="0"/>
<Image x:Name="StrokeImage"
VerticalOptions="Start"
Source="img_apps_list_stroke.png"
<Image x:Name="PinnedIcon"
Grid.Row="1"
Grid.Column="1"
- Source="ic_apps_launcher_checkmark.png"
+ Source="ic_apps_pinmark.png"
Opacity="0"/>
<Label x:Name="ButtonTitle"
Grid.Row="0"
Grid.RowSpan="3"
Grid.Column="2"
- Opacity="1"
+ Opacity="0.6"
TextColor="White"
LineBreakMode="TailTruncation"
HorizontalTextAlignment="Center"
ButtonTitle.PropertyChanged += ButtonTitlePropertyChanged;
PropertyChanged += AppItemCellPropertyChanged;
+ ButtonTitle.On<Tizen>().SetFontWeight(FontWeight.Normal);
}
var translationY = height300 - height16 * v;
ButtonImage.Scale = scale;
TextArea.TranslationY = translationY;
+ if (!IsChecked)
+ {
+ var imgOpacity = 0.99 - 0.99 * v;
+ StrokeImage.Opacity = imgOpacity;
+ DimImage.Opacity = imgOpacity;
+ StrokeImage.Scale = scale;
+ DimImage.Scale = scale;
+ }
},
- length: 150,
+ length: 167,
finished: (a, b) =>
{
- ButtonImage.ScaleTo(1.195, 150);
- TextArea.TranslateTo(0.0, height300, 150);
- StrokeImage.FadeTo((IsChecked) ? 0.99 : 0.0, 150);
- DimImage.FadeTo((IsChecked) ? 0.99 : 0.0, 150);
- StrokeImage.ScaleTo((IsChecked) ? 1.195 : 0.0, 300);
- DimImage.ScaleTo((IsChecked) ? 1.195 : 0.0, 300);
+ if (IsChecked) {
+ StrokeImage.FadeTo(0.99, 167);
+ DimImage.FadeTo(0.99, 167);
+ StrokeImage.ScaleTo(1.195, 167);
+ DimImage.ScaleTo(1.195, 167);
+ }
+ ButtonImage.ScaleTo(1.195, 167);
+ TextArea.TranslateTo(0.0, height300, 167);
});
+
+
}
else
{
StrokeImage.FadeTo((IsChecked) ? 0.99 : 0.0, 300);
DimImage.FadeTo((IsChecked) ? 0.99 : 0.0, 300);
- DimImage.ScaleTo((IsChecked) ? 1.195 : 0.0, 300);
+ DimImage.ScaleTo((IsChecked) ? 1.195 : 1.0, 300);
TextArea.TranslateTo(0.0, height284, 300);
}
OnPropertyChanged("IsFocused");
OnFocusedCommand?.Execute("");
- ButtonTitle.On<Tizen>().SetFontWeight(FontWeight.Medium);
+ ButtonTitle.FadeTo(1.0, 167);
if (IsChecked)
{
DimImage.ScaleTo(1.195, 167);
{
IsItemFocused = false;
OnPropertyChanged("IsFocused");
- ButtonTitle.On<Tizen>().SetFontWeight(FontWeight.Normal);
+ ButtonTitle.FadeTo(0.6, 167);
if (!IsShowOptions)
{
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0}">
<StackLayout x:Name="AppUpperList"
+ IsVisible="False"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.541}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0}"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0}"
HorizontalOptions="Start"/>
<StackLayout x:Name="AppLowerList"
+ IsVisible="False"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.541}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.459}"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0}"
Orientation="Horizontal"
HorizontalOptions="Start"/>
+ <StackLayout x:Name="NoContentsView"
+ IsVisible="True"
+ RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
+ HorizontalOptions="Center"
+ Orientation="Vertical" >
+ <Image Source="img_apps_no_contents.png"/>
+ <Label x:Name="LabelNoContents"
+ Text="No content"
+ TextColor="#33FFFFFF"
+ FontFamily="BreezeSans"/>
+ </StackLayout>
</RelativeLayout>
</ScrollView>
AppLowerList.Padding = padding;
AppLowerList.Spacing = spacing;
+ NoContentsView.Padding = new Thickness(0.0, SizeUtils.GetHeightSize(242), 0.0, 0.0);
+ LabelNoContents.Margin = new Thickness(0.0, SizeUtils.GetHeightSize(28), 0.0, 0.0);
+ LabelNoContents.FontSize = SizeUtils.GetFontSize(28);
+
AppCount = 0;
PropertyChanged += AppListViewPropertyChanged;
}
AppCount = AppCount + 1;
}
+ if (AppCount > 0)
+ {
+ AppUpperList.IsVisible = true;
+ AppLowerList.IsVisible = true;
+ NoContentsView.IsVisible = false;
+ }
+ else
+ {
+ AppUpperList.IsVisible = false;
+ AppLowerList.IsVisible = false;
+ NoContentsView.IsVisible = true;
+ }
if (OnChangeFocusChainingCommand != null)
{
OnChangeFocusChainingCommand.Execute("");
/// </summary>
private void CreateSortButton()
{
- List<string> SortList = new List<string> { "Newest", "A - Z", "Z - A" };
+ List<string> SortList = new List<string> { "NEWEST", "A - Z", "Z - A" };
SortButton = new DropdownList();
SortButton.ItemsSource = SortList;
{
Orientation = StackOrientation.Horizontal,
Spacing = SizeUtils.GetWidthSize(8),
- HorizontalOptions = LayoutOptions.Start
+ HorizontalOptions = LayoutOptions.Start,
+ Opacity = 0.0
};
this.Children.Add(additionalInfo,
pinnedAppCount = SumOfCheckedApp;
return;
}
-
+ additionalInfo.Opacity = 0;
additionalInfo.Children.Add(AppNameLabel);
additionalInfo.Children.Add(AfterLabel);
additionalInfo.IsVisible = true;
+ var animation = new Animation();
+
+ additionalInfo.FadeTo(1, 334);
pinnedAppCount = SumOfCheckedApp;
}
}