Skip to content

Instantly share code, notes, and snippets.

@klemenzarn
klemenzarn / MainActivity.java
Created June 1, 2017 07:43
GoogleMapView inside HorizontalView
//horizontalScrollView initialization needed
public void initGoogleMap(){
//google map view init
TouchableMapFragment mapFragment = (TouchableMapFragment) getSupportFragmentManager().findFragmentById(R.id.map_view);
mapFragment.setListener(new TouchableMapFragment.OnWrapperTouchListener() {
@Override
public void onTouchUp() {
horizontalScrollView.requestDisallowInterceptTouchEvent(false);
}
{
"ID": 1,
"name": "Europark",
"allSlots": 1000,
"freeSlots": 489,
"areas": [
{
"ID": 1,
"short_name": "P1",
"full_name": "Nadstropje 1",
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
vrednost_1a=get(handles.edit1, 'String');%Tukaj sem rezerviral prostor
vrednost_1b=get(handles.edit8, 'String');
vrednost_1c=get(handles.edit9, 'String');
vrednost_2=get(handles.edit2, 'String');
vrednost_3=get(handles.edit3, 'String');
vrednost_4=get(handles.edit4, 'String');
vrednost_5=get(handles.edit5, 'String');
vrednost_6=get(handles.edit6, 'String');
vrednost_7=get(handles.edit7, 'String');
vrednost_1a=get(handles.edit1, 'String');%Tukaj sem rezerviral prostor
vrednost_1b=get(handles.edit8, 'String');
vrednost_1c=get(handles.edit9, 'String');
vrednost_2=get(handles.edit2, 'String');
vrednost_3=get(handles.edit3, 'String');
vrednost_4=get(handles.edit4, 'String');
vrednost_5=get(handles.edit5, 'String');
vrednost_6=get(handles.edit6, 'String');
vrednost_7=get(handles.edit7, 'String');
//razred snake
function Snake(){
this.dolzina = 1;
this.x = 0;
this.y = 0;
this.telo = new Array();
for (var i=0;i<this.dolzina;i++) {
telo.push(new Telo(i,0));
}
}
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
//tle spremen textView
}
}, 1500); //1,5 sekund