From 8367f24c385643f9d55e029bf1f11b13c0213e9a Mon Sep 17 00:00:00 2001 From: Ahmed TARAFI <103176694+atarafi@users.noreply.github.com> Date: Wed, 31 May 2023 16:00:14 +0200 Subject: [PATCH] release: 2.1.1 (#4) --- README.md | 78 +++++++++++++++++++++++++++---------------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index 41f5b21..fcf4216 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# CrossDK 2.1.0 +# CrossDK 2.1.1 ![Android](https://img.shields.io/badge/Android-android-white) [![Kotlin](https://img.shields.io/badge/Kotlin-compatible-brightgreen)](#kotlin-support) @@ -63,7 +63,7 @@ repositories { ```groovy dependencies { - implementation 'com.adikteev:crossdk-android:2.1.0' + implementation 'com.adikteev:crossdk-android:2.1.1' } ``` @@ -231,25 +231,25 @@ import android.widget.RelativeLayout import com.adikteev.crossdk.views.CrossDKView class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val container = - findViewById(R.id.container_id) // container_id: the id of your parent layout - val view = CrossDKView(this) - val params = - RelativeLayout.LayoutParams( - RelativeLayout.LayoutParams.MATCH_PARENT, - RelativeLayout.LayoutParams.WRAP_CONTENT - ) - view.id = View.generateViewId() - view.setCloseButtonVisibility(View.VISIBLE) - params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, view.id) - container.addView(view, params) - // Showing recommendation - view.show() - } + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val container = + findViewById(R.id.container_id) // container_id: the id of your parent layout + val view = CrossDKView(this) + val params = + RelativeLayout.LayoutParams( + RelativeLayout.LayoutParams.MATCH_PARENT, + RelativeLayout.LayoutParams.WRAP_CONTENT + ) + view.id = View.generateViewId() + view.setCloseButtonVisibility(View.VISIBLE) + params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, view.id) + container.addView(view, params) + // Showing recommendation + view.show() + } } ``` @@ -261,23 +261,23 @@ import android.widget.RelativeLayout; public class MainActivity extends AppCompatActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - RelativeLayout container = findViewById(R.id.container_view); // container_id: the id of your parent layout - CrossDKView view = new CrossDKView(this); - RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams( - RelativeLayout.LayoutParams.MATCH_PARENT, - RelativeLayout.LayoutParams.WRAP_CONTENT); - view.setId(View.generateViewId()); - view.setCloseButtonVisibility(View.VISIBLE); - params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, view.getId()); - container.addView(view); - // Showing recommendation - view.show(); - } + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + RelativeLayout container = findViewById(R.id.container_view); // container_id: the id of your parent layout + CrossDKView view = new CrossDKView(this); + RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams( + RelativeLayout.LayoutParams.MATCH_PARENT, + RelativeLayout.LayoutParams.WRAP_CONTENT); + view.setId(View.generateViewId()); + view.setCloseButtonVisibility(View.VISIBLE); + params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, view.getId()); + container.addView(view); + // Showing recommendation + view.show(); + } } ``` @@ -518,7 +518,7 @@ you have this activated in your AndroidManifest.xml: ```Xml - + ```