Skip to content

Instantly share code, notes, and snippets.

View HxBreak's full-sized avatar
🐱
Hello

New Coder HxBreak

🐱
Hello
  • None
  • Xi'an, China
View GitHub Profile
#!/usr/bin/perl
######################################################################
#
# File : split_bootimg.pl
# Author(s) : William Enck <[email protected]>
# Description : Split appart an Android boot image created
# with mkbootimg. The format can be found in
# android-src/system/core/mkbootimg/bootimg.h
#
# Thanks to alansj on xda-developers.com for
@HxBreak
HxBreak / DescentBasedImageSpan.kt
Created March 7, 2021 06:19
Android DescentBasedImageSpan 基于字体底部位置显示的SpannableDrawable内容,设置行间距时图像位置不会显示异常
/**
* @author HxBreak
* @sample DescentBasedImageSpan(Context.getDrawable(R.mimap.ic_new), ViewUtils.dpToPx(4))
* An ImageSpannable BottomBased Line Descent Position And Horizontal Margin Supported
*/
package com.example.myapplication
import android.content.Context
import android.graphics.*
import android.graphics.Paint.FontMetricsInt