mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* fix(list-view-ios): fix rowHeight property to apply proper item size for iOS * chore(apps-tests): add rowHeight tests
34 lines
1.4 KiB
XML
34 lines
1.4 KiB
XML
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="onNavigatingTo" class="page">
|
|
|
|
<Page.actionBar>
|
|
<ActionBar title="My App" icon="" class="action-bar">
|
|
</ActionBar>
|
|
</Page.actionBar>
|
|
|
|
<StackLayout>
|
|
<StackLayout class="p-10" row="0">
|
|
<Label text="Row height = 40" class="body m-b-10"/>
|
|
<ListView items="{{ $value }}" rowHeight="40">
|
|
<ListView.itemTemplate>
|
|
<Label text="{{ $value }}" backgroundColor="green"/>
|
|
</ListView.itemTemplate>
|
|
</ListView>
|
|
</StackLayout>
|
|
<StackLayout class="p-10" row="0">
|
|
<Label text="Row height pixels = 40" class="body m-b-10"/>
|
|
<ListView items="{{ $value }}" rowHeight="40px">
|
|
<ListView.itemTemplate>
|
|
<Label text="{{ $value }}" backgroundColor="green"/>
|
|
</ListView.itemTemplate>
|
|
</ListView>
|
|
</StackLayout>
|
|
<StackLayout class="p-10" row="0">
|
|
<Label text="Row height dips = 40" class="body m-b-10"/>
|
|
<ListView items="{{ $value }}" rowHeight="40dips">
|
|
<ListView.itemTemplate>
|
|
<Label text="{{ $value }}" backgroundColor="green"/>
|
|
</ListView.itemTemplate>
|
|
</ListView>
|
|
</StackLayout>
|
|
</StackLayout>
|
|
</Page> |