Skip to content

Instantly share code, notes, and snippets.

View felixdivo's full-sized avatar
💻

Felix Divo felixdivo

💻
View GitHub Profile
@felixdivo
felixdivo / UserAwareEditText.java
Created June 14, 2016 22:24
An android EditText view, that calls a listener if the user leaves the edit field. (Closes the keyboard or moves to another focus)
package com.example;
import android.content.Context;
import android.graphics.Rect;
import android.support.annotation.NonNull;
import android.util.AttributeSet;
import android.view.KeyEvent;
/**
* https://developer.android.com/reference/android/widget/TextView.OnEditorActionListener.html
@felixdivo
felixdivo / Java Periodic table of elements.java
Last active March 29, 2023 15:14
This Java enum (=singleton) provides information about the elements of the periodic table (PTE). (Symbol, full name, atomic number, average atomic mass and electron negativity by Pauling) It can be searched by symbol and atomic number.
package divo.felix.chem.pte;
import java.util.HashMap;
import java.util.Map;
/**
* Holds information of the periodic table of elements.
*
* @author Felix Divo
*/