Skip to content

Instantly share code, notes, and snippets.

View SorrowBlue's full-sized avatar

Sorrow Blue SorrowBlue

View GitHub Profile
View
TextView
ImageView
Layout
LayoutParams
MarginLayoutParams
Window
Frame
@SorrowBlue
SorrowBlue / Timer.js
Created April 12, 2018 17:47
Inner Core
// standard
const timer = new java.util.Timer();
timer.schedule(new JavaAdapter(java.util.TimerTask, {
run: function () {
alert('timer test');
}
}), 100, 5000);
// ExtraScript
isTech -> falseでクリエイティブに追加する
// アイテムID登録
IDRegistry.genItemID("testItem")
// 普通のアイテム追加
Item.createItem("item_id", "item_name", {name: "texture_name", meta: 0}, {isTech: false, stack: 64})
// 食べられるアイテム追加
Item.createFoodItem("item_id", "item_name", {name: "texture_name", meta: 0}, {isTech: false, stack: 64, food: 1})
@SorrowBlue
SorrowBlue / file0.txt
Last active December 21, 2017 11:32
いまさら RuntimePermission を簡単に実装するやつ作ってみた ref: https://qiita.com/SorrowBlue/items/52ecd509cbd63b0e6552
dependencies {
implementation 'com.sorrowblue.library:supportruntimepermission:1.0.0'
}
repositories {
maven { url 'https://raw.githubusercontent.com/SorrowBlue/Android-Library/master/' }
}