Android synthetic properties are now properties with flexible type

This commit is contained in:
Yan Zhulanow
2015-03-16 20:33:52 +03:00
parent 01c79c6d00
commit e56d67f4b8
11 changed files with 65 additions and 47 deletions
@@ -4,16 +4,17 @@ import android.app.Activity
import android.app.Fragment
import android.view.View
import android.widget.*
import kotlin.internal.flexible.ft
val View.item_detail_container: FrameLayout
val View.item_detail_container: ft<FrameLayout, FrameLayout?>
get() = findViewById(0) as FrameLayout
val View.textView1: TextView
val View.textView1: ft<TextView, TextView?>
get() = findViewById(0) as TextView
val View.password: EditText
val View.password: ft<EditText, EditText?>
get() = findViewById(0) as EditText
val View.login: Button
val View.login: ft<Button, Button?>
get() = findViewById(0) as Button