Support Fragment in android-compiler-plugin
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package android.app
|
||||
|
||||
import android.view.View
|
||||
import android.content.Context
|
||||
|
||||
abstract class Fragment {
|
||||
abstract fun getView(): View
|
||||
}
|
||||
@@ -2,4 +2,6 @@ package android.view
|
||||
|
||||
import android.content.Context
|
||||
|
||||
open class View(ctx: Context)
|
||||
open class View(ctx: Context) {
|
||||
open fun findViewById(id: Int): View? = null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user