Skip to content

Instantly share code, notes, and snippets.

View FelipeBerbert's full-sized avatar

Felipe Berbert FelipeBerbert

View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="match_parent">
<!-- TextView to welcome users into the app -->
<TextView
android:id="@id/logo_text"
open class AwesomeFragment(var name: String): Fragment(), TextWatcher {
public var textToPrependOnTVAfterTextChanged = "Hello "
init {
// Make sure we don't crash if name is null
name = name ?: ""
}
override fun onCreateView(