Skip to content

RoundedCornerView does not layout its content in Android. #47

Description

@antontsvil

RoundedCornerView can have another view set as its content, which can be aligned using Horizontal/VeriticalOptions. This works as expected in iOS, but not in Android.

I've made a quick project to demonstrate this bug here
https://github.com/antontsvil/NControls-RoundedCornerView-LayoutBug

iOS, Horizontal Center, Vertical Center

simulator screen shot may 25 2017 12 18 12 am

Android, Horizontal Center, Vertical Center

screenshot_1495685853

Android, Vertical EndAndExpand

screenshot_1495687008

Seems like on android, the control is not aware of its own full width, and is missing half it's height. As even setting it to EndAndExpand will leave it stuck on the left side, halfway down. This behavior is not present if you don't set any layout options. In that case, the control will center the view like so :

screenshot_1495686320

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions