This file contains hidden or 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
const formioPortalUri = { | |
"_id": "5a24c7b3b29588000162731f", | |
"machineName": "cznodnazrvizwmz:LCAP2017", | |
"modified": "2017-12-15T00:49:59.498Z", | |
"title": "DO NOT CHANGE - LCAP", | |
"display": "form", | |
"settings": {}, | |
"name": "LCAP2017", | |
"path": "lcap", |
This file contains hidden or 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
public static int calculateInSampleSizeInside(BitmapFactory.Options options, int maxWidth, int maxHeight) { | |
final int height = options.outHeight; | |
final int width = options.outWidth; | |
int inSampleSize = 1; | |
if (height > maxHeight || width > maxWidth) { | |
if (width > height) { | |
inSampleSize = Math.round((float) height / (float) maxHeight); | |
} else { | |
inSampleSize = Math.round((float) width / (float) maxWidth); |
This file contains hidden or 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
package some.awesome.package; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.view.animation.Animation; | |
import android.view.animation.Animation.AnimationListener; | |
import android.view.animation.Transformation; | |
import android.widget.RelativeLayout; |
This file contains hidden or 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
private void loadEntypoFont() { | |
Typeface entypo = Typeface.createFromAsset(getAssets(), "fonts/Entypo.otf"); | |
mTvEntypo.setTypeface(entypo); | |
int codePoint = 0x1F4F1; | |
char[] text = Character.toChars(codePoint); | |
mTvEntypo.setText(text, 0, text.length); | |
mTvEntypo.setTextColor(Color.RED); | |
} |
This file contains hidden or 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
package some.awesome.package; | |
import it.sephiroth.android.library.imagezoom.ImageViewTouch; | |
import android.content.Context; | |
import android.support.v4.view.ViewPager; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.view.View; | |
public class ImageViewTouchViewPager extends ViewPager { |
This file contains hidden or 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
/* Base fragment to ensure the parent activity implements a contract interface. */ | |
public abstract class ContractFragment<T> extends Fragment { | |
private T mContract; | |
@Override | |
public void onAttach(Activity activity) { | |
try { | |
mContract = (T)activity; | |
} catch (ClassCastException e) { | |
throw new IllegalStateException(activity.getClass().getSimpleName() |