Skip to content

Instantly share code, notes, and snippets.

View novembergave's full-sized avatar

Teresa novembergave

View GitHub Profile

Keybase proof

I hereby claim:

  • I am novembergave on github.
  • I am teresang (https://keybase.io/teresang) on keybase.
  • I have a public key ASDZyAMXxXA9PQ2amaS9iwqLz7O6oYxoTFRmIxn2rKfQ_Ao

To claim this, I am signing this object:

@novembergave
novembergave / adapter.java
Created November 19, 2017 21:19
RecyclerViewAdapter Original
public class MorseAdapter extends RecyclerView.Adapter<MorseViewHolder> {
private List<MorseCharacter> feedModels = new ArrayList<>();
private final MorseClickListener clickListener;
@Override
public MorseViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View transactionsView = LayoutInflater.from(parent.getContext())
.inflate(R.layout.list_item, parent, false);
return new MorseViewHolder(transactionsView);
@novembergave
novembergave / adapter.kt
Created November 19, 2017 21:16
RecyclerViewAdapter
class MorseAdapter(private val feedModels: List<MorseCharacter>, private val clickListener: (MorseCharacter) -> Unit) : RecyclerView.Adapter<MorseViewHolder>() {
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MorseViewHolder {
val transactionsView = LayoutInflater.from(parent.context)
.inflate(R.layout.list_item, parent, false)
return MorseViewHolder(transactionsView)
}
override fun onBindViewHolder(holder: MorseViewHolder, position: Int) {
holder.bindTo(feedModels[position], clickListener)
@novembergave
novembergave / MainActivity.xml
Created August 5, 2017 16:52
MockTwitterMainActivity
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.novembergave.apps.mocktwitter.MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
@novembergave
novembergave / QuizActivity.java
Last active February 17, 2017 22:00
Learn Hiragana (Quiz Activity)
package com.novembergave.apps.learnhiragana;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
@novembergave
novembergave / MainActivity.java
Created February 5, 2017 16:05
Android for Beginners: Score Keeper App
package com.novembergave.apps.volleyballscorecounter;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
@novembergave
novembergave / activity_main.xml
Created January 15, 2017 15:56
Udacity Android Basics: User Interface Project 1
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
@novembergave
novembergave / activity_main.xml
Last active January 15, 2017 15:10
Udacity Android Basics: User Interface Practice Set 1
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.android.udacitycard.MainActivity">
<ImageView
android:layout_width="match_parent"
@novembergave
novembergave / CategoryAdaptor.java
Last active December 29, 2016 21:58
Japan Trip Autumn 2016 App
package com.example.android.japanautumntrip2016;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
/**
* Created by novembergave on 21/12/2016.
*/
@novembergave
novembergave / 00ReadMe.md
Last active August 19, 2018 14:13
Christmas Quiz App (Udacity Android Beginners Project)