diff --git a/app/src/main/java/io/fabianterhorst/fastlayout/sample/AppLayouts.java b/app/src/main/java/io/fabianterhorst/fastlayout/sample/AppLayouts.java index deda665..1ce1dfe 100644 --- a/app/src/main/java/io/fabianterhorst/fastlayout/sample/AppLayouts.java +++ b/app/src/main/java/io/fabianterhorst/fastlayout/sample/AppLayouts.java @@ -7,9 +7,9 @@ /** * Created by fabianterhorst on 14.05.16. */ -@Layouts(all = true/*, exclude = {R.layout.item_sample}*/) +//@Layouts(all = true, exclude = {R.layout.card_view}) //@Layouts(ids = {R.layout.activity_main, R.layout.item_sample, R.layout.card_view}) -//@Layouts(layouts = {"activity_main"}) +@Layouts(layouts = {"item_sample"}) //@Layouts public class AppLayouts { diff --git a/app/src/main/java/io/fabianterhorst/fastlayout/sample/MainActivity.java b/app/src/main/java/io/fabianterhorst/fastlayout/sample/MainActivity.java index 1f78bd3..04ba0a0 100644 --- a/app/src/main/java/io/fabianterhorst/fastlayout/sample/MainActivity.java +++ b/app/src/main/java/io/fabianterhorst/fastlayout/sample/MainActivity.java @@ -11,7 +11,7 @@ protected void onCreate(Bundle savedInstanceState) { //Default //setContentView(new ActivityMainLayout(this)); //The cache is reusing the object to improve the performance - ActivityMainLayout layout = LayoutCache.getInstance().getLayout(this, LayoutCache.Activity_Main_Layout); + ItemSampleLayout layout = LayoutCache.getInstance().getLayout(this, LayoutCache.Item_Sample_Layout); setContentView(layout); } } diff --git a/app/src/main/res/layout/item_sample.xml b/app/src/main/res/layout/item_sample.xml index 972c62b..126c15b 100644 --- a/app/src/main/res/layout/item_sample.xml +++ b/app/src/main/res/layout/item_sample.xml @@ -12,4 +12,10 @@ android:layout_height="wrap_content" android:visibility="invisible"/> + \ No newline at end of file diff --git a/build.gradle b/build.gradle index 34ef695..10a8c2b 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.0.0-beta3' + classpath 'com.android.tools.build:gradle:3.1.3' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.2' //classpath 'io.fabianterhorst:fastlayout-gradle-plugin:0.0.1-alpha11' diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index f16d266..23c4826 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ +#Thu Jan 24 10:34:53 CST 2019 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip