๋ฒ๊ทธ ๋ณด๊ณ ์ ๋ชจ๋ฒ ์ฌ๋ก : https://github.com/xamarin/Xamarin.Forms/wiki/Submitting-Issues
ListView์ ๋ ์ด๋ธ์ Android์์ ์ฌ๋ฐ๋ฅด๊ฒ ๋ ์ด์์ ๋ ์ ์์ต๋๋ค. iOS๋ ๊ด์ฐฎ์ต๋๋ค.
2. the CheckBox code like that:
public CheckBox() {
this.TapCmd = new Command(() => {
this.Checked = !this.Checked;
if (this.CheckChanged != null)
this.CheckChanged.Invoke(this, new EventArgs());
if (this.CheckChangedCmd != null && this.CheckChangedCmd.CanExecute(this.Checked))
this.CheckChangedCmd.Execute(this.Checked);
});
StackLayout stackLayout = new StackLayout {
Orientation = StackOrientation.Horizontal
};
TapBinder.SetCmd(stackLayout, this.TapCmd);
this.Content = stackLayout;
this.Label = new Label() {
BackgroundColor = Color.Red,
BindingContext = this,
VerticalTextAlignment = TextAlignment.Center,
HorizontalOptions = LayoutOptions.StartAndExpand
};
this.Label.SetBinding(Label.TextProperty, "Text");
this.Label.SetBinding(Label.IsVisibleProperty, "ShowLabel");
this.Icon = new Image() {
WidthRequest = this.Size,
HeightRequest = this.Size,
Source = this.OffImg
};
stackLayout.Children.Add(this.Icon);
stackLayout.Children.Add(this.Label);
}
```
๋ ์ด๋ธ์ ํ ์คํธ๋ ์ ์์ ์ผ๋ก ํ์ ๋ ์ ์์ต๋๋ค.
ListView๋ฅผ ์ ๋๋ ์๋๋ก ์ด๋ํ ๋ ์ผ๋ถ ๋ ์ด๋ธ์ ํ ์คํธ๋ฅผ ๋ณผ ์ ์์ต๋๋ค.
=== Mac ์ฉ Visual Studio ์ปค๋ฎค๋ํฐ 2017 ===
๋ฒ์ 7.7.4 (๋น๋ 1)
์ค์น UUID : 4e60959a-758f-48ce-ae6d-26e15276ea83
GTK + 2.24.23 (๋กค๋ฆฌ ํ
๋ง)
Xamarin.Mac 4.4.1.178 (๋ง์คํฐ / eeaeb7e6)
Package version: 516000221
=== ๋ชจ๋ ธ ํ๋ ์ ์ํฌ MDK ===
์คํ ์๊ฐ:
Mono 5.16.0.221 (2018-06 / b63e5378e38) (64 ๋นํธ)
ํจํค์ง ๋ฒ์ : 516000221
=== NuGet ===
๋ฒ์ : 4.8.0.5385
=== .NET Core ===
๋ฐํ์ : / usr / local / share / dotnet / dotnet
๋ฐํ์ ๋ฒ์ :
2.1.8
2.1.7
2.1.2
2.1.1
2.0.5
2.0.0
1.1.1
1.0.4
SDK : /usr/local/share/dotnet/sdk/2.1.504/Sdks
SDK ๋ฒ์ :
2.1.504
2.1.503
2.1.302
2.1.301
2.1.4
2.0.0
1.0.3
MSBuild SDK : /Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/msbuild/15.0/bin/Sdks
=== Xamarin.Mac ===
๋ฒ์ : 5.2.1.15 (Visual Studio ์ปค๋ฎค๋ํฐ)
ํด์ : d60abd198
๋ถ๊ธฐ:
๋น๋ ๋ ์ง : 2019-02-01 12 : 23 : 30-0500
=== Xamarin.Android ===
๋ฒ์ : 9.1.8.0 (Visual Studio ์ปค๋ฎค๋ํฐ)
์๋๋ก์ด๋ SDK : / Users / huangboru / myfile / sdk
์ง์๋๋ Android ๋ฒ์ :
4.2 (API ๋ ๋ฒจ 17)
4.4 (API ๋ ๋ฒจ 19)
5.1 (API ๋ ๋ฒจ 22)
6.0 (API ๋ ๋ฒจ 23)
7.0 (API ๋ ๋ฒจ 24)
7.1 (API ๋ ๋ฒจ 25)
8.0 (API ๋ ๋ฒจ 26)
8.1 (API ๋ ๋ฒจ 27)
SDK ๋๊ตฌ ๋ฒ์ : 26.1.1
SDK ํ๋ซํผ ๋๊ตฌ ๋ฒ์ : 28.0.0
SDK ๋น๋ ๋๊ตฌ ๋ฒ์ : 28.0.3
=== ๋ง์ดํฌ๋ก ์ํํธ ๋ชจ๋ฐ์ผ OpenJDK ===
์๋ฐ SDK : /Users/huangboru/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.9
openjdk ๋ฒ์ "1.8.0-9"
OpenJDK ๋ฐํ์ ํ๊ฒฝ (๋น๋ 1.8.0-9-microsoft-b00)
OpenJDK 64 ๋นํธ ์๋ฒ VM (๋น๋ 25.71-b00, ํผํฉ ๋ชจ๋)
Android Designer EPL ์ฝ๋๋ ์ฌ๊ธฐ์์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
https://github.com/xamarin/AndroidDesigner.EPL
=== ๋น๋ ์ ๋ณด ===
๋ฆด๋ฆฌ์ค ID : 707040001
Git ๊ฐ์ : 2a4679454f31c8bb887cfd181ea133c9149d3cad
๋น๋ ๋ ์ง : 2019-01-30 16 : 18 : 21 + 00
๋น๋ ๋ธ๋์น : ๋ฆด๋ฆฌ์ค -7.7.4
Xamarin ํ์ฅ : c8b4305fd4c60b9c25947072eb150fdc3a5aa2b5
Label์ backgroundColor๋ฅผ ์ค์ ํ๋๋ฐ ๋ฌธ์ ๊ฐ Label์ ์๋ชป๋ ๋ ์ด์์ ๋๋ฌธ์ธ ๊ฒ ๊ฐ์ต๋๋ค.
@suihanhbr ์ด ๋ฌธ์ ๋ฅผ ๋ณด์ฌ์ฃผ๋ ์ํ ํ๋ก์ ํธ๋ฅผ ์ฒจ๋ถ ํด ์ฃผ์๊ฒ ์ต๋๊น? ๊ฐ์ฌํฉ๋๋ค!
๋ค์์ ์ํ์
๋๋ค.
TestLabelProblem.zip
์ด๊ฒ์ด ์ฒซ ๋ฒ์งธ UI์
๋๋ค. ํ
์คํธ๊ฐ ์ ์์ ์ผ๋ก ํ์๋์ง ์์ต๋๋ค.
listView๋ฅผ ์ฌ๋ฌ ๋ฒ ๋น ๋ฅด๊ฒ ์คํฌ๋กคํ๋ฉด ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
๋ฟก๋ฟก
Xamarin.Forms ๋ฒ์ ์ 3.5.169047๋ก ์ ๋ฐ์ดํธํ๋๋ฐ ๋ฌธ์ ๊ฐ ์ฌ๋ผ์ก์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
Xamarin.Forms ๋ฒ์ ์ 3.5.169047๋ก ์ ๋ฐ์ดํธํ๋๋ฐ ๋ฌธ์ ๊ฐ ์ฌ๋ผ์ก์ต๋๋ค.