Skip to content

smeletiou/Pokedex_Android_java

Repository files navigation

Android Pokedex App

This is a lightweight Pokédex Android application . It allows users to search, download, and view detailed information about Pokémon using data fetched from the PokeAPI, with local storage via Firebase Firestore.

📱 Features

🔍 Pokedex Home Page

  • Displays a list of all downloaded Pokémon.
  • Includes a search bar that supports lookup by name or ID.
  • Pokémon cards show their ID, name, type, and front sprite.
  • Cards use a Pokéball XML background (sourced from GitHub).
Pokedex Home

📄 Details Page

  • Accessed by selecting a Pokémon from the list.
  • Displays:
    • ID, Name, Type, Weight, Height, Base Experience
    • Abilities, Held Items (or a "No held items" message), and Moves
  • Includes two tabs to toggle between Normal and Shiny versions using animated .gif sprites.
Settings Page

⚙️ Settings Page

  • Download Pokémon data from the PokeAPI.
  • Choose how many Pokémon to fetch (default is 20 if left blank).
  • Option to delete the Pokémon list from Firestore.
  • Automatically sorts by ascending Pokémon ID.
Pokemon Details

ℹ️ About Us Page

  • Displays brief info about the app and its purpose.

🔄 Data Handling

  • Data is fetched using the endpoint: https://pokeapi.co/api/v2/pokemon?limit={limit}&offset=0

  • For each Pokémon, a second API call retrieves full details.

  • Stored fields:

  • Id, Name, Types, Abilities, Held Items, Moves, Weight, Height, Base Experience

  • Animated GIFs:

    • Front Default
    • Back Default
    • Front Shiny Default
    • Back Shiny Default
  • Pokémon data is stored in Firebase Firestore, using the Pokémon’s name as the document ID.

🧱 Structure

  • Pokemon.java — Model class with constructors, getters, and setters.
  • PokemonAdaptor.java — Adapter for rendering the list and passing data from home to details.
  • MainActivity.java, DetailsActivity.java, etc. — Handle UI logic.

🔧 Tech Stack

  • Java (Android)
  • Firebase Firestore
  • PokeAPI
  • XML-based UI components

🤓 Author

Sotiris Meletiou

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages