Skip to content

Instantly share code, notes, and snippets.

Avatar

Yoshihito Ikeda yqritc

View GitHub Profile
@yqritc
yqritc / AndroidABIs.md
Last active Oct 5, 2017
Android ABI share on Google Play Store
View AndroidABIs.md

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 May 17, 2020
SeekBar showing its progress as text on thumb
View TextThumbSeekBar.md

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 Aug 19, 2018
Manage Android Software Keyboard Visibility
View gist:efa7bf4a9b060a74d27a

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 Aug 7, 2020
Equal column spacing for Android RecyclerView GridLayoutManager by using custom ItemDecoration
View gist:ccca77dc42f2364777e1

ItemOffsetDecoration

public class ItemOffsetDecoration extends RecyclerView.ItemDecoration {

    private int mItemOffset;

    public ItemOffsetDecoration(int itemOffset) {
        mItemOffset = itemOffset;
    }
You can’t perform that action at this time.