Skip to content

Instantly share code, notes, and snippets.

View egek92's full-sized avatar
🔵

Ege Kuzubasioglu egek92

🔵
View GitHub Profile
@egek92
egek92 / gist:2fb83dc704ca6baab1cfebfd64cb1432
Created April 30, 2018 21:03 — forked from in28minutes/gist:b6d9e5737bf0a3c657188e36287eb6b7
Kotlin Programming Language Cheat Sheet Part 1

Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.

@egek92
egek92 / WrapContentHeightViewPager.java
Created April 5, 2018 10:47 — forked from egslava/WrapContentHeightViewPager.java
Wrap content height ViewPager (Android)
package org.cnii.layoutloader.ui;
import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.View;
/**
* Special thanks to Daniel López Lacalle for his response
* (http://stackoverflow.com/questions/8394681/android-i-am-unable-to-have-viewpager-wrap-content/20784791#20784791)