Skip to content

Instantly share code, notes, and snippets.

View yqritc's full-sized avatar

Yoshihito Ikeda yqritc

  • CyberAgent, Inc.
  • Yokohama, Japan
View GitHub Profile
@yqritc
yqritc / AndroidABIs.md
Last active October 5, 2017 22:52
Android ABI share on Google Play Store

Android ABI share on Google Play (JAN/05/2017)

The followings are the number of supported devices for each ABI on GooglePlay Store.
Google Play Store shows us these number by uploading an application including native library which support each ABI.
Test application is

  • min sdk 16
  • no permission in android manifest
ABI The number of supported devices
@yqritc
yqritc / TextThumbSeekBar.md
Last active April 17, 2024 08:26
SeekBar showing its progress as text on thumb

TextThumbSeekBar

Define a custom class extending SeekBar to show the progress text on thumb of SeekBar.

public class TextThumbSeekBar extends SeekBar {

    private int mThumbSize;
    private TextPaint mTextPaint;

    public TextThumbSeekBar(Context context) {
@yqritc
yqritc / gist:efa7bf4a9b060a74d27a
Last active October 29, 2021 01:41
Manage Android Software Keyboard Visibility

Caution

The ways to manage Android software keyboard visibility have already discussed so much on web.
But some of old solutions on web does not work since the view hierarchy of Activity changes over time.
Therefore, the following solution may not work in the future.

KeyboardHelper

public class KeyboardHelper {
@yqritc
yqritc / gist:ccca77dc42f2364777e1
Last active March 29, 2024 10:25
Equal column spacing for Android RecyclerView GridLayoutManager by using custom ItemDecoration

ItemOffsetDecoration

public class ItemOffsetDecoration extends RecyclerView.ItemDecoration {

    private int mItemOffset;

    public ItemOffsetDecoration(int itemOffset) {
        mItemOffset = itemOffset;
    }