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 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.
- 📖 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).
- Warm, eye-friendly pastel background (
- 🔔 Android 13+ Support: Dynamic runtime permission handling for
POST_NOTIFICATIONSusing modern Android Activity Result APIs.
| 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) |
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
Follow these instructions to get a copy of the project up and running on your local machine.
- 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
-
Clone the repository:
git clone https://github.com/SorathiyaDhruvin/Random-Quote-Generator.git
-
Navigate into the project directory:
cd Random-Quote-Generator/github -
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.
-
Run the App:
- Select your target device or emulator from the device toolbar.
- Click the Run button (
Shift + F10on Windows /Control + Ron macOS).
- App Launch: The user is greeted by
LogoActivity, followed byLoadingActivitybefore transitioning smoothly toMainActivity. - Reading Quotes: Quotes are stored and served dynamically. The screen presents the quote in elegant italic serif typography with a highlighted author container.
- Previous / Next: Cycle backward or forward. The index wraps around when reaching the beginning or end of the quotes list.
- Copying: Tapping Copy copies
"<Quote Text> - <Author>"directly to your clipboard. - Sharing: Tapping Share triggers an Android
ACTION_SENDintent with an app chooser, allowing instant sharing to messaging and social media apps.
Contributions, issues, and feature requests are welcome!
- Fork the Project.
- Create your Feature Branch (
git checkout -b feature/AmazingFeature). - Commit your Changes (
git commit -m 'Add some AmazingFeature'). - Push to the Branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
Dhruvin Sorathiya
- GitHub: @SorathiyaDhruvin
- Project: Random-Quote-Generator
This project is licensed under the MIT License - see the LICENSE file for details.
Developed with ❤️ for CodeAlpha Android Development Internship
