Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💬 Random Quote Generator

Kotlin Android Min SDK Target SDK Material Design License: MIT

A modern, elegant, and interactive Android application that delivers daily inspiration and wisdom at your fingertips. Built with Kotlin and Google Material Components as part of the CodeAlpha Android Development Internship.


Random Quote Generator Logo

📱 Overview

Random Quote Generator is designed to provide users with a clean, uplifting reading experience. It curates timeless words of wisdom from renowned thinkers, leaders, and visionaries—including Albert Einstein, Steve Jobs, Winston Churchill, and Franklin D. Roosevelt.

With its sleek Material Card layout and dedicated action controls, users can smoothly browse through quotes, copy their favorites with a single tap, or share inspirational thoughts across any social platform.


✨ Features

  • 📖 Curated Quotes Collection: A rich library of inspirational, motivational, and philosophical quotes paired with verified author attributions.
  • 🔄 Seamless Navigation: Bidirectional navigation (Previous & Next) with circular wrapping to explore quotes effortlessly.
  • 📋 One-Tap Copy: Instant clipboard copying with user-friendly toast confirmation ("<quote> - <author>").
  • 📤 Native ShareSheet Integration: Share quotes directly to WhatsApp, Telegram, X (Twitter), LinkedIn, Messages, or Email via Android's native chooser.
  • 🚀 Splash & Loading Screen Flow:
    • Logo Screen: Branded initial launch screen.
    • Loading Transition: Smooth simulated buffer ensuring a polished user onboarding experience.
  • 🎨 Modern Material Design UI:
    • Warm, eye-friendly pastel background (#FFF9E6).
    • Elevated Material Card View with distinct author pill badge.
    • Color-coded action buttons (Orange for Previous, Green for Next, Blue for Copy, Purple for Share).
  • 🔔 Android 13+ Support: Dynamic runtime permission handling for POST_NOTIFICATIONS using modern Android Activity Result APIs.

🛠️ Tech Stack & Architecture

Component Technology / Library
Language Kotlin
UI Framework XML Layouts + Google Material Components (MaterialButton, MaterialCardView)
Minimum SDK API 21 (Android 5.0 Lollipop)
Target / Compile SDK API 36 (Android 15 / Latest)
Build System Gradle (Kotlin DSL - build.gradle.kts)
Permissions AndroidX ActivityResultContracts.RequestPermission
Network & Serialization Retrofit 2 & Gson Converter (ready for external API integration)

📂 Project Structure

github/
├── AndroidManifest.xml          # App manifest with permissions & activity definitions
├── build.gradle.kts             # App-level build configuration (Kotlin DSL)
├── settings.gradle.kts          # Gradle settings & plugin management
├── gradle.properties            # JVM & AndroidX configuration
│
├── MainActivity.kt              # Core logic: Quote management, navigation, copy & share
├── Logo_activity.kt             # Splash brand activity
├── Loading_activity.kt          # Interim smooth loader screen
│
├── activity_main.xml            # Main layout with MaterialCard & navigation controls
├── activity_logo.xml            # Splash branding layout
├── activity_loading.xml         # Loading indicator layout
│
├── colors.xml                   # Color palette tokens (buttons, card, background)
├── strings.xml                  # App string resources
├── themes.xml                   # Base application theme definitions
│
├── Color.kt                     # Compose color palette definitions
├── Theme.kt                     # Compose theme setup
├── Type.kt                      # Compose typography styling
│
├── ic_launcher-playstore.png    # Play Store launcher graphic
├── logo.png                     # Application branding asset
└── proguard-rules.pro           # ProGuard optimization and obfuscation rules

🚀 Getting Started

Follow these instructions to get a copy of the project up and running on your local machine.

Prerequisites

  • Android Studio (Ladybug / Koala or newer recommended)
  • JDK 11 or JDK 17 configured in Android Studio
  • Android SDK with platform tools installed (API 21+)
  • Android Virtual Device (AVD) or physical Android device enabled for USB debugging

Installation & Setup

  1. Clone the repository:

    git clone https://github.com/SorathiyaDhruvin/Random-Quote-Generator.git
  2. Navigate into the project directory:

    cd Random-Quote-Generator/github
  3. Open in Android Studio:

    • Open Android Studio.
    • Select Open an Existing Project and browse to the cloned folder.
    • Wait for Gradle to download dependencies and complete project sync.
  4. Run the App:

    • Select your target device or emulator from the device toolbar.
    • Click the Run button (Shift + F10 on Windows / Control + R on macOS).

💡 How It Works

  1. App Launch: The user is greeted by LogoActivity, followed by LoadingActivity before transitioning smoothly to MainActivity.
  2. Reading Quotes: Quotes are stored and served dynamically. The screen presents the quote in elegant italic serif typography with a highlighted author container.
  3. Previous / Next: Cycle backward or forward. The index wraps around when reaching the beginning or end of the quotes list.
  4. Copying: Tapping Copy copies "<Quote Text> - <Author>" directly to your clipboard.
  5. Sharing: Tapping Share triggers an Android ACTION_SEND intent with an app chooser, allowing instant sharing to messaging and social media apps.

🤝 Contributing

Contributions, issues, and feature requests are welcome!

  1. Fork the Project.
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature).
  3. Commit your Changes (git commit -m 'Add some AmazingFeature').
  4. Push to the Branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

👤 Author

Dhruvin Sorathiya


📜 License

This project is licensed under the MIT License - see the LICENSE file for details.


Developed with ❤️ for CodeAlpha Android Development Internship

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages