简体   繁体   English

如何在Xamarin.Forms中为Android / iOS实现特定的布局

[英]How to achieve specific layout in Xamarin.Forms for android / ios

I would like to add multiple labels to the page and have them placed one after another. 我想在页面上添加多个标签,并将它们一个接一个地放置。 When they reach the end of the screen i want them to move to the next line and so forth. 当它们到达屏幕末端时,我希望它们移至下一行,依此类推。

Here is an example of what I am looking to do from the Next Door android app. 这是我要在Next Door android应用程序中执行的操作的示例。 Notice the stacking categories in blue. 注意蓝色的堆叠类别。

What layout should be used and options / or method? 应该使用哪种布局以及选项/方法? I tried stacklayout but it doesnt work like that. 我尝试了stacklayout,但它不能那样工作。

堆叠按钮和标签的示例

XLabs具有WrapLayout类,该类应该执行您想要的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xamarin.Forms:如何在 Android 和 Z9E304D4E8DF1B7248ABZ809 上获取和添加滑动事件? - Xamarin.Forms : How to get and add swipe events on Android and ios? Xamarin.Forms安卓 - Xamarin.Forms Android Xamarin在Android / iOS上的常见Xamarin.Forms代码 - Xamarin common Xamarin.Forms code across Android/iOS 如何使用 DependencyService 和接口委托将 xamarin.android 特定功能的方法传递给 xamarin.forms? - How to pass a method of xamarin.android specific functionnality to a xamarin.forms using DependencyService and a delegate of Interface? 如何在Android上使用Xamarin.Forms创建文件? - How to create a file with Xamarin.Forms on Android? Xamarin.Forms - 在iOS中不更新属性赋值的Slider,适用于Android - Xamarin.Forms - Slider not updating on property assignment in iOS, works in Android Xamarin.Forms更新UI线程在iOS和Android中表现奇怪 - Xamarin.Forms updating UI thread behaving strangely in iOS & Android 在xamarin.forms中使用fontawesome(仅限iOS和Android) - Use of fontawesome in xamarin.forms (iOS and Android only) Xamarin.Forms - 获取 Android 和 Z9E304D4E8DF1B74CFA009928AB1 的手机提供商 - Xamarin.Forms - Get cellphone provider for both Android and ios Layout如何在Xamarin.Forms中绘制其子元素? - How does Layout draw its child elements in Xamarin.Forms?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM