I hereby claim:
- I am jermainedilao on github.
- I am jermainedilao (https://keybase.io/jermainedilao) on keybase.
- I have a public key ASAYqNYv59g1VWZPXStMTS5BsE-d6pJe0zS6-9rB96JeDgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package com.example.kotlinworkshop | |
object CheeseKt { | |
val LIST = arrayOf( | |
"Abbaye de Belloc", "Abbaye du Mont des Cats", "Abertam", "Abondance", "Ackawi", | |
"Acorn", "Adelost", "Affidelice au Chablis", "Afuega'l Pitu", "Airag", "Airedale", | |
"Aisy Cendre", "Allgauer Emmentaler", "Alverca", "Ambert", "American Cheese", | |
"Ami du Chambertin", "Anejo Enchilado", "Anneau du Vic-Bilh", "Anthoriro", "Appenzell", |
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context="com.example.kotlinworkshop.MainActivityKt"> | |
<EditText | |
android:id="@+id/editText" |
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.constraint.ConstraintLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<TextView | |
android:id="@+id/textView" |
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.constraint.ConstraintLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<TextView | |
android:id="@+id/textView2" |
/** | |
* Bookmarks or removes bookmark from an article. | |
**/ | |
export const articleBookmarkOrRemoveBookmark = (article) => { | |
console.log("articleBookmarkOrRemoveBookmark"); | |
// Temporary workaround. | |
// Replace with bookmarking inside DB then pass the new list from DB to reducers. | |
article.bookmark = !article.bookmark; | |
git add .
git commit -m "<Insert commit message>"
After committing, follow the steps below.
master
. Check if there are any updates from origin/master
)import android.graphics.Rect | |
import android.view.View | |
import androidx.recyclerview.widget.RecyclerView | |
/** | |
* Adds vertical margin to RecyclerView's items. | |
*/ | |
class VerticalMarginItemDecoration( | |
/** | |
* Vertical margin for all items. |
import android.graphics.Rect | |
import android.view.View | |
import androidx.recyclerview.widget.RecyclerView | |
/** | |
* Adds horizontal margin to RecyclerView's items. | |
*/ | |
class HorizontalMarginItemDecoration( | |
/** | |
* Horizontal margin for all items. |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.annotation.LayoutRes | |
import androidx.databinding.DataBindingUtil | |
import androidx.databinding.ViewDataBinding | |
import androidx.recyclerview.widget.DiffUtil | |
import androidx.recyclerview.widget.ListAdapter | |
import androidx.recyclerview.widget.RecyclerView |