Skip to content

Instantly share code, notes, and snippets.

View sbelloz's full-sized avatar
💻
Focusing

Simone Bellotti sbelloz

💻
Focusing
View GitHub Profile
@sbelloz
sbelloz / SuggestionSearchView.java
Last active February 19, 2020 12:12
Suggestion search view collapsable
/**
* @author Simone Bellotti
*/
public class SuggestionSearchView extends LinearLayout {
private static final String TAG = "SuggestionSearchView";
private static final double COS_45 = Math.cos(Math.toRadians(45));
private static final boolean DEFAULT_ENABLED_BACK = true;
private static final boolean DEFAULT_WAIT_KEYBOARD_FOR_COLLAPSE = true;
@sbelloz
sbelloz / SingleLineLinearLayout.kt
Created June 3, 2020 12:52
SingleLineLinearLayout
/**
* Class describing a SingleLineLinearLayout
*/
open class SingleLineLinearLayout @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : LinearLayout(context, attrs, defStyleAttr) {
var isChildRemoving = false