所以我寫了這樣的代碼:
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"/span>
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"。
x:Class="alphatrial.MainPage"。
BackgroundColor="#ffc40c">>
<StackLayout >/span>
< Label Text="ISC - Alpha" FontAttributes="Bold" FontFamily="MyAwesomeCustomFont" HorizontalOptions="End"/span> Margin="0。 50,20,0" />
< Line Stroke="black"/span> X1="0" X2="340" StrokeThickness="2" />
< Label Text="App" FontAttributes="Bold" FontFamily="MyAwesomeCustomFont" HorizontalOptions="End"/span> Margin="0。 0,20,0"/>
</StackLayout>
</ContentPage>/span>
但是我得到了這樣的結果
。
我不能直接把字放在行上。我不希望在字和行之間有這樣的空間。我應該怎么做?
謝謝
uj5u.com熱心網友回復:
也要考慮到標簽的Padding和Margins。至于布局的間距 如果這對你來說還不夠,你甚至可以設定一個負的margin來重疊組件
。轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/329106.html
標籤:

