Skip to content

Conversation

@gabrielemariotti
Copy link
Contributor

Currently the checkedIcon in the MaterialCardView is positioned on the top|end corner.
With this PR is possible to configure the checkedIconGravity.

top_start

bottom_start

top_end

bottom_end

It preserves the current default behavior.

Comment on lines +132 to +137
@IntDef({
CHECKED_ICON_GRAVITY_TOP_START,
CHECKED_ICON_GRAVITY_BOTTOM_START,
CHECKED_ICON_GRAVITY_TOP_END,
CHECKED_ICON_GRAVITY_BOTTOM_END
})

Choose a reason for hiding this comment

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

I think it is better to have both the vertical and horizontal gravity not the mixture of both and also center alignment would be helpful

@drchen drchen added the Reviewing Internally An internal change has been created and sent for review. label Nov 4, 2021
@drchen drchen closed this in 250d56d Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Reviewing Internally An internal change has been created and sent for review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants