(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /* | |
| * Copyright (C) 2012 Sebastian Kaspari | |
| * | |
| * 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 |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import android.content.Context; | |
| import android.graphics.Typeface; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.ArrayAdapter; | |
| import android.widget.TextView; |
| /* | |
| * Copyright 2014 Chris Banes | |
| * | |
| * 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 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| actions=true | |
| ads=true | |
| analytics=true | |
| appindexing=true | |
| appstate=true | |
| auth=true | |
| cast=true | |
| common=true | |
| drive=false | |
| dynamic=true |
| /* | |
| * Copyright (C) 2014 The Android Open Source Project | |
| * | |
| * 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 |
| <?xml version="1.0" encoding="utf-8"?> | |
| <android.support.v7.widget.SwitchCompat xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:id="@android:id/checkbox" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:background="@null" | |
| android:clickable="false" | |
| android:focusable="false" /> |
| package com.cgollner.unclouded.preferences; | |
| import android.annotation.TargetApi; | |
| import android.content.Context; | |
| import android.os.Build; | |
| import android.preference.CheckBoxPreference; | |
| import android.util.AttributeSet; | |
| import com.cgollner.unclouded.R; |
| /* | |
| * Copyright (C) 2013 The Android Open Source Project | |
| * | |
| * 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 |
| import android.support.annotation.Nullable; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.view.View; | |
| import butterknife.ButterKnife; | |
| /** | |
| * Created by brandon on 12/9/15. | |
| */ | |
| public abstract class ButterKnifeViewHolder<T> extends RecyclerView.ViewHolder { | |
| public ButterKnifeViewHolder(View itemView) { |