This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.bakawaii.roomex.utils; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Path; | |
import android.support.annotation.Nullable; | |
import android.util.AttributeSet; | |
import android.util.Log; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.bakawaii.roomex | |
import android.content.Context | |
import android.graphics.* | |
import android.util.AttributeSet | |
import android.view.View | |
/** | |
* Created by Bakawaii on 2017/12/11. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SampleFragment: Fragment() { | |
data class Args(val title: String? = null, val content: String? = null, val showButton: Boolean = false) | |
companion object { | |
private const val ARG_TITLE = "ARG_TITLE" | |
private const val ARG_CONTENT = "ARG_CONTENT" | |
private const val ARG_SHOW_BUTTON = "ARG_SHOW_BUTTON" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.util.Base64; | |
import javax.crypto.Cipher; | |
import javax.crypto.spec.SecretKeySpec; | |
public class CryptographyHelper { | |
private static final String ALGORITHM = "AES/ECB/ZeroBytePadding"; | |
public static String encrypt(String plaintext, String key) throws Exception { |