Skip to content

Instantly share code, notes, and snippets.

View solkin's full-sized avatar

Igor Solkin solkin

View GitHub Profile
@solkin
solkin / ic_settings_anim.xml
Created June 6, 2017 18:07
Анимированная версия векторной шестерёнкой с несколькими аниматорами
<?xml version="1.0" encoding="utf-8"?>
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt">
<aapt:attr name="android:drawable">
<vector
android:width="48dp"
android:height="24dp"
android:viewportHeight="24"
android:viewportWidth="48">
<group android:name="gear_group">
@solkin
solkin / ic_lock_anim.xml
Created June 6, 2017 17:50
Анимированная версия векторного замка
<?xml version="1.0" encoding="utf-8"?>
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt">
<aapt:attr name="android:drawable">
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24"
android:viewportWidth="24">
<path
@solkin
solkin / ic_lock_static.xml
Last active June 6, 2017 17:50
Статическая версия векторного замка, обёрнутая в XML Bundle
<?xml version="1.0" encoding="utf-8"?>
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt">
<aapt:attr name="android:drawable">
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24"
android:viewportWidth="24">
<path
@solkin
solkin / ic_lock.xml
Last active June 6, 2017 17:49
Векторная иконка замка
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24"
android:viewportWidth="24">
<path
android:fillColor="#000000"
android:pathData="M6,9c-1.1,0-2,0.9-2,2v10c0,1.1,0.9,2,2,2h12c1.1,0,2-0.9,2-2V11c0-1.1-0.9-2-2-2H6z
M12,18c-1.1,0-2-0.9-2-2s0.9-2,2-2 s2,0.9,2,2S13.1,18,12,18z" />
@solkin
solkin / lock.svg
Created October 11, 2016 10:09
"lock" icon vector drawable and SVG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@solkin
solkin / anim_download.xml
Last active October 11, 2016 10:06
Animated and static "download" vector drawable
<?xml version="1.0" encoding="utf-8"?>
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="MissingPrefix">
<aapt:attr name="android:drawable">
<vector
android:width="24dp"
android:height="24dp"
@solkin
solkin / HexHelper.java
Last active August 8, 2016 20:53
Java (also, Android) hexadecimal output formatter
package com.tomclaw.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
/**
* Created by ivsolkin on 06.07.16.
@solkin
solkin / FileStack.java
Created August 8, 2016 20:46
Android FileStack
package com.tomclaw.stack;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.EOFException;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;
import java.util.EmptyStackException;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.tomclaw.mandarin.R;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
package ru.mail.im.ui;
import android.app.Activity;
import android.content.Context;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import org.androidannotations.annotations.AfterViews;