diff --git a/app/src/main/java/p32929/myadslibapp/MainActivity.java b/app/src/main/java/p32929/myadslibapp/MainActivity.java
index 410ac9b..58d488b 100644
--- a/app/src/main/java/p32929/myadslibapp/MainActivity.java
+++ b/app/src/main/java/p32929/myadslibapp/MainActivity.java
@@ -5,7 +5,6 @@
import android.view.View;
import android.widget.LinearLayout;
-import p32929.myadslib.MyAd;
import p32929.myadslib.MyAdsAdder;
public class MainActivity extends AppCompatActivity {
@@ -22,13 +21,13 @@ protected void onCreate(Bundle savedInstanceState) {
// Show from JSON url
myAdsAdder = new MyAdsAdder(
- this, null,
+ this, linearLayout,
"https://raw.githubusercontent.com/p32929/SomeHowTosAndTexts/master/HouseAdsJson/house_ads.json"
);
// or to show from Device
// myAdsAdder = new MyAdsAdder(
-// this, linearLayout,
+// this, null,
// new MyAd(R.drawable.cgpa, "CGPA Calculator", "https://play.google.com/store/apps/details?id=p32929.cgpa_calculator2"),
// new MyAd(R.drawable.desplash, "Desplash - Automatic Unsplash Wallpapers", "https://play.google.com/store/apps/details?id=p32929.desplash"),
// new MyAd(R.drawable.postman, "The Great REST API Client", "https://play.google.com/store/apps/details?id=p32929.greatpostman"),
diff --git a/myadslib/src/main/res/layout/my_inter_ads.xml b/myadslib/src/main/res/layout/my_inter_ads.xml
index 1805875..e8e231f 100644
--- a/myadslib/src/main/res/layout/my_inter_ads.xml
+++ b/myadslib/src/main/res/layout/my_inter_ads.xml
@@ -13,6 +13,13 @@
android:layout_marginBottom="16dp"
android:scaleType="centerInside" />
+
+