Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
release: 2.1.1 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
atarafi authored May 31, 2023
1 parent 6d45888 commit 8367f24
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -63,7 +63,7 @@ repositories {

```groovy
dependencies {
implementation 'com.adikteev:crossdk-android:2.1.0'
implementation 'com.adikteev:crossdk-android:2.1.1'
}
```

Expand Down Expand Up @@ -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<RelativeLayout>(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<RelativeLayout>(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()
}
}
```

Expand All @@ -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();
}
}
```

Expand Down Expand Up @@ -518,7 +518,7 @@ you have this activated in your AndroidManifest.xml:
```Xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<activity android:hardwareAccelerated="true" />
<activity android:hardwareAccelerated="true" />
</manifest>
```

Expand Down

0 comments on commit 8367f24

Please sign in to comment.