File tree Expand file tree Collapse file tree
java/com/gateway/android/animation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ android {
1212 applicationId " com.gateway.android.animation"
1313 minSdkVersion 21
1414 targetSdkVersion 31
15- versionCode 3
16- versionName " 1.1.9 "
15+ versionCode 4
16+ versionName " 1.1.10 "
1717
1818 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
1919 }
Original file line number Diff line number Diff line change 11package com.gateway.android.animation
22
33import android.os.Bundle
4- import android.widget.Toast
54import androidx.appcompat.app.AppCompatActivity
6- import com.gateway.android.bannerads.util.OnBannerClickListener
7- import com.gateway.android.bannerads.view.BannerView
85
96class MainActivity : AppCompatActivity () {
107 override fun onCreate (savedInstanceState : Bundle ? ) {
@@ -16,16 +13,16 @@ class MainActivity : AppCompatActivity() {
1613 images.add(" https://www.hyundai.com/content/dam/hyundai/ww/en/images/find-a-car/all-vehicles/accent-hc-quarter-view-silk-silver-pc.png" )
1714 images.add(" https://www.hyundai.com/content/dam/hyundai/ww/en/images/find-a-car/all-vehicles/azera-ig-fl-quater-view-oxford-blue.png" )
1815
19- val bannerImage: BannerView = findViewById(R .id.banner_frame_layout)
20- bannerImage.imagesUrl = images
21- bannerImage.start()
22- bannerImage.setOnClickListener(OnBannerClickListener {
23- Toast .makeText(this , " $it " , Toast .LENGTH_SHORT ).show()
24- })
25- bannerImage.animationsPeriod(
26- fadeIn = 2000 ,
27- fadeOut = 4000 ,
28- displayImage = 6000
29- )
16+ // val bannerImage: BannerView = findViewById(R.id.banner_frame_layout)
17+ // bannerImage.imagesUrl = images
18+ // bannerImage.start()
19+ // bannerImage.setOnClickListener(OnBannerClickListener {
20+ // Toast.makeText(this, "$it", Toast.LENGTH_SHORT).show()
21+ // })
22+ // bannerImage.animationsPeriod(
23+ // fadeIn = 2000,
24+ // fadeOut = 4000,
25+ // displayImage = 6000
26+ // )
3027 }
3128}
Original file line number Diff line number Diff line change 66 android : layout_height =" match_parent"
77 tools : context =" .MainActivity" >
88
9- <com .gateway.android.bannerads.view.BannerView
10- android : id =" @+id/banner_frame_layout"
11- android : layout_width =" match_parent"
12- android : layout_height =" 150dp"
13- app : displayImageDuration =" 3000"
14- app : fadeInDuration =" 300"
15- app : fadeOutDuration =" 300" />
9+ <!-- <com.gateway.android.bannerads.view.BannerView-->
10+ <!-- android:id="@+id/banner_frame_layout"-->
11+ <!-- android:layout_width="match_parent"-->
12+ <!-- android:layout_height="150dp"-->
13+ <!-- app:displayImageDuration="3000"-->
14+ <!-- app:fadeInDuration="300"-->
15+ <!-- app:fadeOutDuration="300" /> -- >
1616</FrameLayout >
You can’t perform that action at this time.
0 commit comments