This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A FrameLayout subclass that always has the same width and height and forms a square. | |
* The larger dimension will be set to the smaller to meet this invariant. | |
*/ | |
class SquareFrameLayout: FrameLayout { | |
constructor(context: Context) : super(context) | |
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) | |
override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the ART/Dalvik VM | |
*.dex | |
# Java class files | |
*.class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by Philipp Engel on 26.04.17. | |
// | |
import Foundation | |
import UIKit | |
import youtube_ios_player_helper | |
class YoutubeController: UIViewController { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by Philipp Engel on 02.06.17. | |
// | |
import Foundation | |
import RxSwift | |
extension ObservableType { | |
/** |