Skip to content

Instantly share code, notes, and snippets.

View kyawhtut-cu's full-sized avatar
🎯
Focusing

Kyaw Htut kyawhtut-cu

🎯
Focusing
View GitHub Profile
@kyawhtut-cu
kyawhtut-cu / style.css
Created September 28, 2017 19:11
style.css
/* BASICS */
.CodeMirror {
/* Set height, width, borders, and global font properties here */
font-family: monospace;
height: 300px;
}
.CodeMirror-scroll {
/* Set scrolling behaviour here */
overflow: auto;
public class FirebaseMessagingService extends com.google.firebase.messaging.FirebaseMessagingService {
private NotificationManager notificationManager;
private int NOTIFICATION_ID;
public static final String ANDROID_CHANNEL_ID = "com.kyawhtut.firebaseandwebtesting.ANDROID";
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
String message = remoteMessage.getData().get("message");
String imageUri = remoteMessage.getData().get("image");
<!DOCTYPE html>
<html>
<head>
<title>Font embed with css injection</title>
<style>
@font-face{
font-family: "PAOH Font";
src: url('resource/fonts/smartzg.ttf') format("truetype");
}
*{
@kyawhtut-cu
kyawhtut-cu / MLO
Last active September 20, 2018 05:37
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout style="@style/KYPStyle">
<TextView style="@style/ItemKPYNameText" />
<TextView
public class MaterialBadgeTextView extends TextView {
private static final int DEFAULT_FILL_TYPE = 0;
private int backgroundColor;
private int borderColor;
private float borderWidth;
private float borderAlpha;
private int ctType;
package com.team10.wastetomoney.buyerFragment;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
//create global variable
private List<String> mTagList = new ArrayList<>();
//add tags change listener to TagsEdittext
mItemTags.setTagsListener(new TagsEditText.TagsEditListener() {
@Override
public void onTagsChanged(Collection<String> collection) {
Timber.i("onTagsChanged : %s", collection);
if (mTagList.size() != mItemTags.getTags().size()) {
boolean isDataChange = false;
@kyawhtut-cu
kyawhtut-cu / ExpandableLayout.kt
Created May 20, 2019 09:54
ExpandableLayoutWithRecyclerView
import android.animation.ObjectAnimator
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.FrameLayout
import androidx.annotation.DrawableRes
import androidx.recyclerview.widget.RecyclerView
import com.nwt.labelspinner.R
import com.nwt.labelspinner.expandable.ExpandableType.ICON
package com.nwt.myhealthcarefordoctors.utils;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.media.ExifInterface;
import android.os.Environment;
import android.util.Log;
data class TrafficLight(
var color: String
)