๐ค
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.content.Context | |
import android.graphics.Canvas | |
import android.graphics.Color | |
import android.graphics.Paint | |
import android.util.AttributeSet | |
import android.view.View | |
private const val N = 16 | |
private const val PERIOD1 = -10000.0 | |
private const val PERIOD2 = -500.0 |
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 example | |
import android.support.v7.recyclerview.extensions.AsyncDifferConfig | |
import android.support.v7.recyclerview.extensions.AsyncListDiffer | |
import android.support.v7.util.DiffUtil | |
import android.support.v7.util.ListUpdateCallback | |
import android.support.v7.widget.RecyclerView | |
/** | |
* {@link RecyclerView.Adapter RecyclerView.Adapter} base class based on |
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
/** | |
* An [Observer] for [Event]s, simplifying the pattern of checking if the [Event]'s content has | |
* already been handled. | |
* | |
* [onEventUnhandledContent] is *only* called if the [Event]'s contents has not been handled. | |
*/ | |
class EventObserver<T>(private val onEventUnhandledContent: (T) -> Unit) : Observer<Event<T>> { | |
override fun onChanged(event: Event<T>?) { | |
event?.getContentIfNotHandled()?.let { value -> | |
onEventUnhandledContent(value) |
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
<templateSet group="ConstraintLayout"> | |
<template name="cbb" value="app:layout_constraintBottom_toBottomOf="$cursor$"" description="constraint bottom to bottom of id" toReformat="true" toShortenFQNames="true"> | |
<variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="cbp" value="app:layout_constraintBottom_toBottomOf="parent"" description="constraint bottom to bottom of parent" toReformat="true" toShortenFQNames="true"> | |
<context> |
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
/* | |
* Copyright (C) 2016 Jeff Gilfelt. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
- ๊ฒฝ์ฌ์ค๋ฌ์ด ์ผ์ ๋๋ค. ์ด์ ์ด ๊ณณ์ ๋ฌ๋ฆฌ๋ ๋๊ธ์ ๋ง์ ์ ์์ด ๊ทธ๋ฆฌ ํ๊ฒ ๋์์ต๋๋ค. ๊ทธ๋๋ ์ด์ ์ ๋ฌ๋ ธ๋ ๋๊ธ๋ค์ ์๋ฌด๋๋ ๋ณผ ์ ์๋ ๋ค๋ฅธ ๋ฐฉ๋ฒ์ด ์ธํฐ๋ท ์์ ์กด์ฌํ๊ธด ํ๋ ๋ชจ์์ ๋๋ค.
โฆ
(U+2026),โฏ
(U+22EF),โฎ
(U+22EE)๋ ๋ชจ๋.
(U+002E)๊ฐ 3๋ฒ ์ฐ์์ผ๋ก ๋์ด๋ ๊ฒ๊ณผ ๊ฐ์ ๊ฒ์ผ๋ก ๋ด ๋๋ค.- "ํ๊ธ ์์ ๋ฌธ์"๋ ๊ฐ(U+AC00) ์ด์ ํฃ(U+D7A3) ์ดํ์ ์ ๋์ฝ๋ ๋ฌธ์๋ค์ ์๋ฏธํฉ๋๋ค.
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 MainActivity extends AppCompatActivity { | |
public static class Shop { | |
public int id; | |
public String name; | |
public List<Coordinate> coordinates = new ArrayList<>(); | |
@Override | |
public String toString() { | |
String str = id + " (" + name + ") [ "; |
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 productmeister.com.productmeister.view; | |
import android.annotation.TargetApi; | |
import android.os.Build; | |
import android.support.design.widget.AppBarLayout; | |
import android.support.v4.view.ViewCompat; | |
import android.support.v7.app.ActionBar; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.widget.Toolbar; |
NewerOlder