Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

list of numbers in line

$
0
0

Hi, i'm using a list view with labels to show a list of numbers (currency), but the digits of the numbers are not miming each other. Is there an other way to show a clear list instead of using a monospaced font like courier?

                                <ScrollView x:Name="tabview" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Padding="0,0,0,0" >
                                    <ListView x:Name="datenListe" RowHeight="22" SeparatorVisibility="None" ItemTapped="OnItemTapped_datenListe">
                                        <ListView.ItemTemplate>
                                            <DataTemplate>
                                                <ViewCell>
                                                    <ContentView>
                                                            <Grid 
                                                              BackgroundColor="Transparent"
                                                              Padding="4,0,4,0" 
                                                              HorizontalOptions="FillAndExpand" 
                                                              VerticalOptions="FillAndExpand"
                                                              RowSpacing="0"
                                                              ColumnSpacing="2">
                                                                <Grid.RowDefinitions>
                                                                    <RowDefinition Height="30" />
                                                                </Grid.RowDefinitions>
                                                                <Grid.ColumnDefinitions>
                                                                    <ColumnDefinition Width="80" />
                                                                    <ColumnDefinition Width="*" />
                                                                    <ColumnDefinition Width="200" />

                                                                </Grid.ColumnDefinitions>   
                                                                <Label Grid.Column="0" FontFamily="Courier" FontSize="14" Text="{Binding FIRMA}" YAlign="Center" XAlign="End" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/>
                                                                <Label Grid.Column="1" FontFamily="Courier" FontSize="14" Text="{Binding JAHR}" YAlign="Center" XAlign="End" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/>
                                                                <Label Grid.Column="2" FontFamily="Courier" FontSize="14" Text="{Binding NETTO}" YAlign="Center" XAlign="End" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/>

                                                            </Grid>
                                                    </ContentView>
                                                </ViewCell>
                                            </DataTemplate>
                                        </ListView.ItemTemplate>
                                    </ListView>
                                </ScrollView>

THX


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>