Implement quickfixes for Android Lint api issues
#KT-16624 Fixed #KT-16625 Fixed #KT-14947 Fixed
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
package com.myapp;
|
||||
|
||||
public final class R {
|
||||
public static final class string {
|
||||
|
||||
}
|
||||
public static final class layout {
|
||||
|
||||
}
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
import android.app.Activity
|
||||
import com.myapp.R
|
||||
|
||||
fun Activity.getSetMainContentView() = setContentView(R.layout.activity_main)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
</LinearLayout>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<resources>
|
||||
</resources>
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import android.app.Activity
|
||||
import com.myapp.R
|
||||
|
||||
fun Activity.getSetMainContentView() = setContentView(R.layout.<caret>activity_main)
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"resDirectory": "../../res",
|
||||
"intentionText": "Create layout resource file 'activity_main.xml'"
|
||||
}
|
||||
Reference in New Issue
Block a user