Skip to content

Instantly share code, notes, and snippets.

View mcfriend99's full-sized avatar

Ore Richard Muyiwa mcfriend99

View GitHub Profile
@mcfriend99
mcfriend99 / IntroVideoView.java
Created August 22, 2018 00:28 — forked from JoaquimLey/IntroVideoView.java
A simple VideoView subclass that displays in full screen while keeping the aspect ration
/**
* Subclass of VideoView to enable video scaling
* CustomAttribute: "scaleType": "normal", "centerCrop", "fill"
* <p>
* Add this stylable:
* <declare-styleable name="IntroVideoView">
* <attr name="scaleType" format="integer">
* <flag name="normal" value="0" />
* <flag name="centerCrop" value="1" />
* <flag name="fill" value="2" />
@mcfriend99
mcfriend99 / UndoBarController.java
Created May 15, 2018 01:14 — forked from benvd/UndoBarController.java
Roman Nurik's UndoBarController, using NineOldAndroids
/*
* Copyright 2012 Roman Nurik
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software