Posts

Showing posts with the label ViewPager

Slider using ViewPager - Android Studio - Kotlin

Image
Create slider containing TextView & ImageView using ViewPager and Single Fragment. >> Watch For Java Video: Step 1: Create a new Project or open new project Step 2: Code activity_main.xml <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://schemas.android.com/tools" xmlns:app= "http://schemas.android.com/apk/res-auto" android:id= "@+id/main_content" android:layout_width= "match_parent" android:layout_height= "match_parent" android:fitsSystemWindows= "true" tools:context= ".MainActivity" > <android.support.design.widget.AppBarLayout android:id= "@+id/appbar" android:layout_width= "match_parent" and...

Slider using ViewPager - Android Studio - Java

Image
Create slider containing TextView & ImageView using ViewPager and Single Fragment. >> Watch For Kotlin: Video: Step 1:  Create a new project   OR   Open your project Step 2: Code activity_main.xml <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:app= "http://schemas.android.com/apk/res-auto" xmlns:tools= "http://schemas.android.com/tools" android:id= "@+id/main_content" android:layout_width= "match_parent" android:layout_height= "match_parent" android:fitsSystemWindows= "true" tools:context= ".MainActivity" > <android.support.design.widget.AppBarLayout android:id= "@+id/appbar" android:layout_width= "match_parent" android:layout_height= "...