Skip to content

Conversation

@flyofsky
Copy link
Contributor

Description of Change

This PR is for adding MList

Issues Resolved

API Changes

Added

  • MList

Platforms Affected

  • Tizen

Behavioral/Visual Changes

None

Before/After Screenshots

  • single line
    Selection_016

  • double line
    Selection_017

  • triple line
    Selection_018

PR Checklist

  • Has automated tests
  • Rebased on top of the target branch at time of PR
  • Changes adhere to coding standard

@flyofsky flyofsky requested a review from rookiejava June 17, 2019 05:09
TripleLine
}

public class MItem
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create MItem.cs for MItem class.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


public EvasObject Control { get; set; }

public MItem(string title, MListStyle style = MListStyle.OneLine)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to provide optional parameter only for style?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@rookiejava rookiejava added the enhancement New feature or request label Jul 3, 2019

public EvasObject Control { get; set; }

public MItem(string title, string icon = null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoid optional parameter as a public API. Is is necessary>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

}
}

public IList<MItem> Items
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about using ObservableCollection<MItem> instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


namespace Tizen.NET.MaterialComponents
{
public class MList : GenList, IColorSchemeComponent
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As MList inherit GenList, all public APIs of GenList can be exposed. For example, user can use Append() to add item. How do you think about this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'MList' thinks it is to provide a 'Material Design', not to constrain its function.
So I think it's a class that makes the 'GenList' look like a 'Material Design', not just a 'Material Design' list.

@shyunMin
Copy link
Contributor

New PR(#52) has been opened according to design changes

@shyunMin shyunMin closed this Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Lists

3 participants