RoundedCornerView does not layout its content in Android.
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

Android, Horizontal Center, Vertical Center

Android, Vertical EndAndExpand

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 :

Hi,
Thanks for reporting this bug. Have you tried this with a regular ContentView on Android as well? Just asking because I don't think the rounded corner view should do any layout processing.
Please feel free to download the source code and investigate as well ;-)
Chris
On Thu, May 25, 2017 at 7:10 AM, Anton Tsvilikhovskiy < [email protected]> wrote:
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 http://url iOS, Horizontal Center, Vertical Center
[image: simulator screen shot may 25 2017 12 18 12 am] https://cloud.githubusercontent.com/assets/9003682/26436081/dfb13844-40e1-11e7-887a-cf06d062f2c8.png Android, Horizontal Center, Vertical Center
[image: screenshot_1495685853] https://cloud.githubusercontent.com/assets/9003682/26436076/d6f8f372-40e1-11e7-8fbf-8d4e0329f326.png Android, Vertical EndAndExpand
[image: screenshot_1495687008] https://cloud.githubusercontent.com/assets/9003682/26436129/4ee9787a-40e2-11e7-87ce-e4ca3a870941.png
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 :
[image: screenshot_1495686320] https://cloud.githubusercontent.com/assets/9003682/26436285/70a08fac-40e3-11e7-8328-e86dfc0f1175.png
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chrfalch/NControl.Controls/issues/47, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1a9IXBu9FiEN5Q5y-52facgOuxNCtvks5r9Q0_gaJpZM4Nl-CM .