Skip to content

Instantly share code, notes, and snippets.

Avatar
🎃
woah, how close was that?

Ozodrukh ozodrukh

🎃
woah, how close was that?
View GitHub Profile
@ozodrukh
ozodrukh / Fragment.java
Created Jan 6, 2015
Fragment Circular Reveal animation
View Fragment.java
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.view.animation.AccelerateInterpolator;
@ozodrukh
ozodrukh / CompoundDrawableClickListener.java
Created Jan 4, 2018 — forked from amaksoft/CompoundDrawableClickListener.java
Handling TextView compound drawables touch and click events
View CompoundDrawableClickListener.java
/*
* Copyright 2017, Andrey Makeev
*
* 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
@ozodrukh
ozodrukh / MainActivity.kt
Created Mar 15, 2018
Background View Rendering
View MainActivity.kt
package com.ozodrukh.pictureexploration
import android.content.Context
import android.graphics.BitmapFactory
import android.graphics.Canvas
import android.graphics.Picture
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
@ozodrukh
ozodrukh / arch.components.kt
Created Apr 5, 2018
Extensions to Android Arch Components
View arch.components.kt
package uz.gap.messenger.ext
import android.arch.lifecycle.*
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentActivity
import uz.gap.messenger.connection.SocketModel.MessageStatus
/**
* created at 3/31/18
*
@ozodrukh
ozodrukh / BitmapHunter.kt
Created Jun 25, 2018
Very simple Bitmap loading from Disk & Assets, it's taken from Picasso (c)
View BitmapHunter.kt
package com.ozodrukh.meet
import android.app.ActivityManager
import android.content.Context
import android.content.pm.ApplicationInfo
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.BitmapFactory.Options
import android.graphics.BitmapShader
import android.graphics.Matrix