Skip to content

Instantly share code, notes, and snippets.

View SystemUiHelper.java
/*
* Copyright (C) 2014 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
@demixdn
demixdn / gist:527367fedba8b9e11c4c74bb0d7c4db9
Created Apr 11, 2019 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:527367fedba8b9e11c4c74bb0d7c4db9

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
View MainActivity.java
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import java.util.ArrayList;
import java.util.List;
public class MainActivity extends AppCompatActivity implements Messenger {
@demixdn
demixdn / BlankFragment.java
Last active Jan 19, 2018
Простая организация асинхронной работы (Callback + Runnable + Executor)
View BlankFragment.java
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.concurrent.Executor;
View PdfViewerActivity.java
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.AppCompatActivity;
import android.util.SparseArray;
import android.view.View;
import android.view.Window;
@demixdn
demixdn / SimpleTextWatcher.java
Created May 25, 2017
Simple TextWatcher for EditText
View SimpleTextWatcher.java
import android.text.Editable;
import android.text.TextWatcher;
/**
* @author Aleks Sander
*/
public abstract class SimpleTextWatcher implements TextWatcher {
View EmailClient.java
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import java.io.UnsupportedEncodingException;
import java.util.Properties;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
@demixdn
demixdn / SimpleAdapter.java
Created Apr 24, 2017
Simple Recycler Adapter with generics
View SimpleAdapter.java
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
/**
@demixdn
demixdn / EditTextDebounce.java
Created Apr 24, 2017
Get text from EditText with debounce without RxJava
View EditTextDebounce.java
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;
import java.lang.ref.WeakReference;
View cities.json
["Москва", "Абрамцево", "Алабино", "Апрелевка", "Архангельское", "Ашитково", "Байконур", "Бакшеево", "Балашиха", "Барыбино", "Белоомут", "Белые Столбы", "Бородино", "Бронницы", "Быково", "Валуево", "Вербилки", "Верея", "Видное", "Внуково", "Вождь Пролетариата", "Волоколамск", "Вороново", "Воскресенск", "Восточный", "Востряково", "Высоковск", "Голицино", "Деденево", "Дедовск", "Джержинский", "Дмитров", "Долгопрудный", "Домодедово", "Дорохово", "Дрезна", "Дубки", "Дубна", "Егорьевск", "Железнодорожный", "Жилево", "Жуковский", "Загорск", "Загорянский", "Запрудная", "Зарайск", "Звенигород", "Зеленоград", "Ивантеевка", "Икша", "Ильинский", "Истра", "Калининград", "Кашира", "Керва", "Климовск", "Клин", "Клязьма", "Кожино", "Кокошкино", "Коломна", "Колюбакино", "Королев", "Косино", "Котельники", "Красково", "Красноармейск", "Красногорск", "Краснозаводск", "Краснознаменск", "Красный Ткач", "Крюково", "Кубинка", "Купавна", "Куровское", "Лесной Городок", "Ликино-Дулево", "Лобня", "Лопатинский", "Лосино-Петровский", "Ло