Skip to content

Instantly share code, notes, and snippets.

View Savrov's full-sized avatar

Pavel Savrov

  • Qinshift
  • Prague
View GitHub Profile
@jimschubert
jimschubert / .gitignore
Last active November 16, 2023 04:16
Prototyping a Flags/Bitmasks implementation in Kotlin 1.1.1
META-INF/
*.class
@nikhiljha
nikhiljha / AddCookiesInterceptor.java
Created July 29, 2016 04:35
Retrofit2/OkHttp3 Cookies (Drag and Drop, One Size Fits 99%)
// Original written by tsuharesu
// Adapted to create a "drop it in and watch it work" approach by Nikhil Jha.
// Just add your package statement and drop it in the folder with all your other classes.
import android.content.Context;
import android.preference.PreferenceManager;
import android.util.Log;
import java.io.IOException;
import java.util.HashSet;
@tuanchauict
tuanchauict / RotateOrientationEventListener.java
Created March 16, 2016 13:10
Handle screen rotation without onConfigurationChanged
package com.notabasement.common.photopicker.events;
import android.content.Context;
/**
* Created by tuanchauict on 3/16/16.
*/
public abstract class RotateOrientationEventListener extends SimpleOrientationEventListener {
public RotateOrientationEventListener(Context context) {
super(context);
@iPaulPro
iPaulPro / include_list_viewpager.xml
Last active March 7, 2024 11:13
CollapsingToolbarLayout with TabLayout
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2015 The Android Open Source Project
~
~ 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