본문 바로가기

프로그래밍/App 개발57

[Xamarin] Draw dashed(dotted) arc with SkiaSharp (not using AddArc()) var dottedArcSize = Math.Min(info.Width, info.Height); var dottdArcRect = new SKRect( StrokeWidth, StrokeWidth, dottedArcSize - StrokeWidth, dottedArcSize - StrokeWidth); var dottedArcLinePaint = new SKPaint { Color = Color.FromHex("#FF521F").ToSKColor(), StrokeWidth = 4.5f, }; var dotYRatio = 0.22; var dotLength = 0.03; var dotEmptyArcAngle = 60; for (var degrees = 0; degrees < 360; degrees += .. 2021. 6. 14.
[Xamarin] Draw Arc with SkiaSharp https://docs.microsoft.com/ko-kr/xamarin/xamarin-forms/user-interface/graphics/skiasharp/curves/arcs 원호를 그리는 3가지 방법 - Xamarin 이 문서에서는 SkiaSharp를 사용 하 여 세 가지 방법으로 원호를 정의 하는 방법을 설명 하 고 샘플 코드를 사용 하 여이를 보여 줍니다. docs.microsoft.com Start Angle : X축 0도 기준 시작각도 Sweep Angle : 그리고자 하는 호의 각도 (StartAngle를 시작으로 SweepAngle 만큼 호를 그림) 코드 식으로 나타내면, var _emptyArcAngle = 60; StartAngle = 90 + _emptyArcAngle / 2; S.. 2021. 6. 14.
[Xamarin] custom keyboard attachable view https://dvlv.tistory.com/121 기술스택 이제 xaml 코드 짜는 속도가 거의 공장 찍어내는 급이 되었다. 근데, 애니메이션, 플랫폼 스페시픽 한 코드를 짜다보니 현타가 자주온다. 복잡하고 긴 줄 수도 덤. 키보드 위에 붙는 스티키한 뷰 dvlv.tistory.com --> 전에 포스팅했던.. 키보드 위에 붙는 뷰를 개발했던 거를 팝업으로 바꿨음. https://pub.dev/packages/keyboard_attachable keyboard_attachable | Flutter Package A Flutter package to build widgets that can be attached to the soft keyboard. pub.dev (flutter의 keyboard_att.. 2021. 6. 9.
[Xamarin] Lottie (xaml) 중요 Animation="resource://Resources.Jsons.hooray.json?assembly=DreamforaV2" AnimationSource="EmbeddedResource" 2021. 5. 27.
기술스택 이제 xaml 코드 짜는 속도가 거의 공장 찍어내는 급이 되었다. 근데, 애니메이션, 플랫폼 스페시픽 한 코드를 짜다보니 현타가 자주온다. 복잡하고 긴 줄 수도 덤. 키보드 위에 붙는 스티키한 뷰 만들면서 또 현타옴. 자말 코드만 올려본다. (코드 비하인드는 더 거지같음 거의 한땀한땀 바느질한 느낌) None 곧 회사 스택을 flutter or swift native 로 갈아탄다. 두근두근 어떤 일이 펼쳐질까. 과연 xamarin 문제인가 내 손꾸락과 머리의 문제일까 ㅋ 2021. 5. 27.
[Xamarin] Xamarin.Forms iOS Distribution (2021) developer.apple.com/ Apple Developer There’s never been a better time to develop for Apple platforms. developer.apple.com Account 2021. 4. 21.
[Xamarin] Xamarin.Forms Custom BottomSheet (source code) github.com/nathankim0/Today-Manna-iOS-Xamarin/blob/master/TodaysManna/Controls/BottomSheets/BottomSheetContainer.cs nathankim0/Today-Manna-iOS-Xamarin :book: '오늘의 만나' Cross Platform (Android + iOS). Contribute to nathankim0/Today-Manna-iOS-Xamarin development by creating an account on GitHub. github.com 예전에 만든 bottomsheet 을 바로 쓸 수 있게 정리하였다.. _bottomSheet = new BottomSheet(); _bottomSheet.BottomS.. 2021. 4. 21.
[Xamarin] Sticky view Scroll할때 상단에 닿으면 붙는 sticky한 커스텀 토글 제작.. - ScrollView 안에 Grid, Grid안에 토글과 하단의 flexlayout 을 겹치게 배치 (row를 동일하게하면됨) - 위치는 마진값을 조정 - Y값은 해당 뷰의 절대좌표, translationY는 상대좌표. 처음에 0임. SizeChanged 이벤트가 발생하면 토글의 Y를 저장 (스크롤할때 상단에 닿았는지 확인용) - ScrollView의 eventargs.scrolledY가 저장해둔 토글의 Y값보다 커지면 토글의 translationY에 (e.scrolledY - 토글Y) 대입 - 토글Y값보다 작아지면 토글의 translationY에 0 대입 #region Sticky Toggle private void BottomC.. 2021. 4. 21.
[Xamarin] collectionview 안에서의 command (MVVM) 같은 xaml 파일 안에서 하는거면 그냥 Source={x:Reference thisPage} 이런 식으로 하면 되지만, item을 다른 파일로 만들어놨다면, 이렇게 해야함. Command="{Binding BindingContext.ClapCommand, Source={RelativeSource AncestorType={x:Type feedpage:DFFeedPage}}}" 더좋은 방법이 있을 것 같긴한데 이렇게 했음. 근데 로띠에 CommandParameter 가 없어서 걍 Clicked로 했다는...ㅠ 2021. 4. 1.
[Xamarin] TabbedPage tab 처음 이동시 OnAppearing 호출 안되는 현상 해결법 TabbedPage 클래스에 이런 식으로 OnCurrentPageChanged() 를 오버라이드해서, 탭 이동할때 로직을 작성해준다. protected override void OnCurrentPageChanged() { base.OnCurrentPageChanged(); if ( CurrentPage is YourContentPage page) { page.YourCustomCode(); } } 내 코드 protected override void OnCurrentPageChanged() { base.OnCurrentPageChanged(); if (CurrentPage.Equals(navMccheyneCheckListPage)) { App.mccheyneCheckListPage.ScrollToToday.. 2021. 2. 25.