This file contains 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
/* BASICS */ | |
.CodeMirror { | |
/* Set height, width, borders, and global font properties here */ | |
font-family: monospace; | |
height: 300px; | |
} | |
.CodeMirror-scroll { | |
/* Set scrolling behaviour here */ | |
overflow: auto; |
This file contains 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
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"); |
This file contains 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
<!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"); | |
} | |
*{ |
This file contains 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
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<LinearLayout style="@style/KYPStyle"> | |
<TextView style="@style/ItemKPYNameText" /> | |
<TextView |
This file contains 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
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; |
This file contains 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.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; |
This file contains 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
//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; |
This file contains 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.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 |
This file contains 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.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; |
This file contains 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
data class TrafficLight( | |
var color: String | |
) |
OlderNewer