Skip to content

Instantly share code, notes, and snippets.

View ytabuchi's full-sized avatar
😊
Always happy

Yoshito Tabuchi ytabuchi

😊
Always happy
  • XLsoft-Corporation
  • Tokyo, Japan
  • X @ytabuchi
View GitHub Profile
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
@ytabuchi
ytabuchi / MarkerActivity.kt
Last active March 18, 2020 07:49
マーカーと ImageNode を AsyncTask で取得するサンプル
package com.xlsoft.kudanar
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.AsyncTask
import android.os.Bundle
import android.util.Log
import eu.kudan.kudan.*
import java.io.*
import java.lang.Exception
@ytabuchi
ytabuchi / CustomRenderer.md
Last active November 6, 2019 01:51
Snippets for platform specific training

Snippet for CustomRenderer

Xamarin.Forms / NakayokunaruHandsOn.xaml.cs

public App()
{
    InitializeComponent();

    var rootPage = new ContentPage();
@ytabuchi
ytabuchi / Error
Last active January 15, 2019 05:12
Build error for c++ library
SIMPLE: CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
SIMPLE: CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
<ScrollView Padding="8">
<StackLayout>
<svg:SvgImage SvgPath="{Binding AppStorePath}"
SvgAssembly="{Binding SvgAssembly}"
WidthRequest="135"
HeightRequest="40"
HorizontalOptions="Center"/>
<svg:SvgImage SvgPath="{Binding CoolMaskPath}"
SvgAssembly="{Binding SvgAssembly}"
WidthRequest="100"
public Assembly SvgAssembly
{
get { return typeof(App).GetTypeInfo().Assembly; }
}
public string AppStorePath
{
get { return "SvgSample.Resources.AppStore.svg"; }
}
public string CoolMaskPath
@ytabuchi
ytabuchi / SvgPageCS.cs
Created March 24, 2017 07:16
Loading SVG iamges
var appStore = new SvgImage
{
SvgPath = "SvgSample.Resources.AppStore.svg",
SvgAssembly = typeof(App).GetTypeInfo().Assembly,
WidthRequest = 135,
HeightRequest = 40,
HorizontalOptions = LayoutOptions.Center
};
var coolMask = new SvgImage
{
var stack = new StackLayout
{
Children =
{
new BoxView
{
HeightRequest = 100,
BackgroundColor = Color.FromHex("cccccc")
},
new BoxView
<StackLayout>
<BoxView HeightRequest="100"
BackgroundColor="#cccccc"/>
<BoxView HeightRequest="50"
BackgroundColor="#ffaaaa"
VerticalOptions="EndAndExpand"/>
<BoxView HeightRequest="50"
BackgroundColor="#aaffaa"
VerticalOptions="CenterAndExpand"/>
<BoxView HeightRequest="50"