Skip to content

Instantly share code, notes, and snippets.

Avatar
📱
making something amazing

David Ortinau davidortinau

📱
making something amazing
View GitHub Profile
@davidortinau
davidortinau / DroidTabbedPageRenderer.cs
Created Nov 18, 2018
Displays Android bottom tabs fixed like iOS with label visible and shifting disabled
View DroidTabbedPageRenderer.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
View CountAndroidViews.cs
using Android.Views;
public int Count = 0;
public void Iterate(View view) {
if (view is ViewGroup)
IterateViewChildren(view);
System.Console.WriteLine($"Total Children {Count}");
}
View previewer.txt
[2017-10-19 15:19:26.1] INFO: : Initializing the previewer with Android API level 25.
[2017-10-19 15:19:26.2] Renderer >> ERROR: java.lang.ClassNotFoundException: mono.android.D3DImageFactory
[2017-10-19 15:19:26.2] Renderer >> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
[2017-10-19 15:19:26.2] Renderer >> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[2017-10-19 15:19:26.2] Renderer >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
[2017-10-19 15:19:26.2] Renderer >> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[2017-10-19 15:19:26.2] Renderer >> at java.lang.Class.forName0(Native Method)
[2017-10-19 15:19:26.2] Renderer >> at java.lang.Class.forName(Class.java:264)
[2017-10-19 15:19:26.2] Renderer >> at mono.android.DesignerSession.initializePlatformSpecific(DesignerSession.java:88)
[2017-10-19 15:19:26.2] Renderer >> at mono.android.DesignerSession.<init>(DesignerSession.java:77)
@davidortinau
davidortinau / ide.log
Created Aug 24, 2017
This is the error that was logged when I tried to open (go to) and existing editor tab and it appeared blank.
View ide.log
INFO [2017-08-24 11:44:57Z]: Launching iOS Simulator: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mlaunch -sdkroot "/Applications/Xcode.app/Contents/Developer" --launchsim "/Users/dave/Projects/BackBindings/iOS/bin/iPhoneSimulator/Debug/device-builds/iphone9.1-10.3.1/BackBindings.iOS.app" --argument=-monodevelop-port --argument=54439 --setenv=__XAMARIN_DEBUG_PORT__=54439 --sdk "10.3.1" --device=:v2:runtime=com.apple.CoreSimulator.SimRuntime.iOS-10-3,devicetype=com.apple.CoreSimulator.SimDeviceType.iPhone-7
ERROR [2017-08-24 11:45:02Z]: An unhandled exception has occured. Terminating Visual Studio? False
System.NullReferenceException: Object reference not set to an instance of an object
at MonoDevelop.CSharp.PathedDocumentTextEditorExtension.<UpdateOwnerProjects>b__18_1 (MonoDevelop.Projects.DotNetProject p) [0x00000] in /Users/builder/data/lanes/4989/9c529966/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs:260
at System.Linq.Enum
View env.txt
=== Visual Studio Community 2017 for Mac ===
Version 7.1 (build 1297)
Installation UUID: 16acb303-b9c5-4a0d-95db-97b0ec8bf365
Runtime:
Mono 5.2.0.215 (d15-3/da80840) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 502000215
View env.txt
=== Visual Studio Community 2017 for Mac (Preview) ===
Version 7.1 Preview (7.1 build 1294)
Installation UUID: 16acb303-b9c5-4a0d-95db-97b0ec8bf365
Runtime:
Mono 5.2.0.215 (d15-3/da80840) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 502000215
View env.txt
=== Visual Studio Community 2017 for Mac (Preview) ===
Version 7.1 Preview (7.1 build 1281)
Installation UUID: 16acb303-b9c5-4a0d-95db-97b0ec8bf365
Runtime:
Mono 5.2.0.209 (2017-04/3d531ba) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 502000209
View env.txt
=== Visual Studio Community 2017 for Mac ===
Version 7.0.1 (build 24)
Installation UUID: 16acb303-b9c5-4a0d-95db-97b0ec8bf365
Runtime:
Mono 5.0.1.1 (2017-02/5077205) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 500010001
View chromium.txt
[chromium] [ERROR:texture_manager.cc(2746)] [.CommandBufferContext.RenderCompositor-0xe9bb6340]GL ERROR :GL_INVALID_OPERATION : glTexImage2D: <- error from previous GL command
[chromium] [ERROR:gles2_cmd_decoder.cc(2167)] [.CommandBufferContext.RenderWorker-0xe9bb6420]GL ERROR :GL_INVALID_OPERATION : GLES2DecoderImpl::DoBindTexImage2DCHROMIUM: <- error from previous GL command
[chromium] [ERROR:gles2_cmd_decoder.cc(2167)] [.CommandBufferContext.RenderWorker-0xe9bb6420]GL ERROR :GL_INVALID_OPERATION : GLES2DecoderImpl::DoBindTexImage2DCHROMIUM: <- error from previous GL command
[chromium] [ERROR:gles2_cmd_decoder.cc(2167)] [.CommandBufferContext.RenderWorker-0xe9bb6420]GL ERROR :GL_INVALID_OPERATION : GLES2DecoderImpl::DoBindTexImage2DCHROMIUM: <- error from previous GL command
[chromium] [ERROR:gles2_cmd_decoder.cc(2167)] [.CommandBufferContext.RenderWorker-0xe9bb6420]GL ERROR :GL_INVALID_OPERATION : GLES2DecoderImpl::DoBindTexImage2DCHROMIUM: <- error from previous GL command
[chromium] [ERROR:gles2_cmd_deco
View MyXamlStyles.xaml
<?xml version="1.0" encoding="utf-8" ?>
<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="My.Project.Styles">
<Style TargetType="Label">
<Setter Property="TextColor" Value="Blue" />
</Style>
...
</ResourceDictionary>