Skip to content

Commit

Permalink
added 5 stars
Browse files Browse the repository at this point in the history
  • Loading branch information
p32929 committed Jun 17, 2019
1 parent 8a3476e commit 546c9de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/p32929/myadslibapp/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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"),
Expand Down
7 changes: 7 additions & 0 deletions myadslib/src/main/res/layout/my_inter_ads.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
android:layout_marginBottom="16dp"
android:scaleType="centerInside" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="★★★★★"
android:textColor="#FFC107" />

<TextView
android:id="@+id/adText"
android:layout_width="wrap_content"
Expand Down

0 comments on commit 546c9de

Please sign in to comment.