[英]Overlapping Elements in a List Xamarin Forms
I am trying to get the elements of the listview to overlap slightly. 我正在尝试使listview的元素稍微重叠。 Is this possible in the standard listview?
在标准列表视图中可能吗?
Here is my Xaml: 这是我的Xaml:
<StackLayout Padding="10, 10, 10, 10">
<StackLayout>
<ListView HasUnevenRows="True"
SeparatorColor="Blue"
x:Name="cardsList">
</ListView>
</StackLayout>
</StackLayout>
and this is my code behind: 这是我的代码背后:
var cards = new List<string> {"card 1","card 2","card 3","card 4" };
// stacklayout.Children.Add(listView);
cardsList.ItemsSource = cards;
cardsList.RowHeight = 150;
the code is very minimal and this is only a proof of concept. 代码非常少,这仅是概念证明。 This gives the standard list with some height but not quite what im looking for.
这为标准列表提供了一定的高度,但并不是我想要的。 This is what im trying to achieve:
这就是我要实现的目标:
I realise that I'm not going to be able to get that exactly that or probably close to it. 我意识到,我将无法完全做到这一点或可能接近它。 But this kind of effect.
但是这种效果。 It doesnt need to be a listview, it can be a grid or even a nuget package that does it.
它不需要是列表视图,它可以是执行此操作的网格甚至是nuget程序包。 Any ideas?
有任何想法吗?
我认为这可以帮助您开发这样的UI。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.