Skip to content

shibi1306/Android-SimpleStaticImagesSwitcher

Repository files navigation

Android-SimpleStaticImagesSwitcher

This is a simple image switcher for practicing ImageView in Android studio.

Features

  • ImageView width and height is set to activity parent size.
  • Six dog images used as default.
  • Basic button used for switching.
  • Images repeat after the last image is displayed

Instructions to run the application

  1. Clone or Download the project to your PC/Laptop.
  2. Open Android Studio
  3. Select the option "Open an existing Android Studio project"
  4. Locate the project folder in your directory.
  5. Select your target device.
  6. Select menu Run -> Run 'app'

Adding custom images to the app.

  1. Copy the image files to drawable folder in res folder. (Make sure that image filenames do not have characters like '-' or space)
  2. Open the file MainActivity.java file.
  3. Add image refernence id inside the curly braces images = new int[] {R.drawable.dog1, ... R.drawable.dog6};
  4. Thats it!

About

This is a simple image switcher for practicing ImageView in Android studio.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages