Build a Simple Daily Quotes App Using Android Studio & Stitch

By KundanD
Table of Contents

    How to Build a Simple Daily Quotes App Using Android Studio and Stitch (NO Coding Needed)

    Hi guys, so in this article, we are going to show you how to make an app. It is really easy to do and we're gonna show you step-by-step. What you need to do first is to have a Google account you can only do this if you have it, if you don't have then make one. And then come here and next thing you need is android studio so if you don't have download it, you can see download link for android studio if you don't have it first go and download it and install it and then can you follow steps.

    1. How to Design Simple Daily Quotes App with Stitch? 

    So in order to design app, we are going to use Google stitch. It's one of the free and good tool for designing app. The main reason of using this app is really simple. We want to know before developing an app how our app gonna look and that is the purpose of this app so in order to generate this design, we just have to login here with your Google account once you do that below here, you can see a prompt just copy and paste on Google stitch and you get the design.

    Google Stitch prompt
    
    
    Design a mobile Android app UI using Material Design 3 (M3).
    
    App name: Daily Quotes
    
    Purpose:
    A simple, calm app that shows one inspirational quote at a time and allows the user to see the next quote by tapping a button.
    
    Design goals:
    - Minimal
    - Clean
    - Peaceful
    - Easy to read
    - Beginner-friendly
    - Emotionally calming
    
    ------------------------------------------------
    OVERALL STYLE
    ------------------------------------------------
    - Material Design 3
    - Light theme by default
    - Soft neutral background
    - Rounded surfaces
    - Generous spacing
    - Focus on typography
    - No clutter
    
    ------------------------------------------------
    TOP APP BAR
    ------------------------------------------------
    - Centered title: "Daily Quotes"
    - No back button
    - No extra icons
    - Simple and clean
    
    ------------------------------------------------
    MAIN CONTENT AREA
    ------------------------------------------------
    Centered vertically and horizontally.
    
    QUOTE CARD:
    - Rounded card with soft elevation
    - Padding inside the card
    - Large quote text in the center
    - Quote text aligned center
    - Use elegant, readable font
    - Below quote text:
      - Author name (smaller text)
      - Prefixed with a dash (— Author)
    
    Example:
    “Believe you can and you’re halfway there.”
    — Theodore Roosevelt
    
    ------------------------------------------------
    ACTION BUTTON
    ------------------------------------------------
    Button placed near the bottom (but not touching the edge):
    
    - Text: "Next Quote"
    - Filled button
    - Rounded corners
    - Primary color
    - Easy to tap
    - Calm, friendly appearance
    
    ------------------------------------------------
    EMPTY / LOADING STATE
    ------------------------------------------------
    If no quote is available:
    - Show placeholder text:
      "Your quote will appear here"
    
    ------------------------------------------------
    ACCESSIBILITY
    ------------------------------------------------
    - High contrast text
    - Large readable font size
    - Clear button label
    - Comfortable spacing
    
    ------------------------------------------------
    NAVIGATION
    ------------------------------------------------
    - Single screen only
    - No bottom navigation
    - No floating action button
    
    ------------------------------------------------
    EMOTIONAL TONE
    ------------------------------------------------
    The UI should feel:
    - Calm
    - Encouraging
    - Peaceful
    - Non-distracting
    
    End goal:
    A beautiful, simple Daily Quotes app UI that feels relaxing and easy to use, following Material Design 3 principles.
    .

    2. How to Create App In Android Studio?

    Now, we know that how our design is looking so the next steps you're going to take is to be make an app. for that you have to open android studio make a project. You can just watch the video for better understanding. You don't need to do anything just copy paste prompt inside android studio agent. Nothing else you do just copy and paste that's all. You can also watch a video if you don't know, you can watch first video then you can copy the prompt.


     
      Prompt For Android Studio
    ANDROID STUDIO AGENT PROMPT (Jetpack Compose + Kotlin)
    
    You are an expert Android developer.
    
    Create a Daily Quotes app screen using Jetpack Compose and Kotlin.
    The UI should closely match the provided design reference.
    
    ------------------------------------
    TECH STACK
    ------------------------------------
    - Language: Kotlin
    - UI: Jetpack Compose
    - Material Design 3
    - Single-screen app
    - No database
    - No internet
    - No permissions
    
    ------------------------------------
    SCREEN STRUCTURE
    ------------------------------------
    
    TOP APP BAR
    - Centered title: "Daily Quotes"
    - Left icon: menu (hamburger icon)
    - Right icon: favorite (heart icon)
    - Material 3 TopAppBar
    
    ------------------------------------
    
    CATEGORY FILTER SECTION
    ------------------------------------
    - Horizontal scrollable row of filter chips
    - Categories:
      - Inspiration (selected by default)
      - Peace
      - Wisdom
      - Love
    - Use AssistChip / FilterChip
    - Single selection only
    - Selected chip uses soft green background
    
    ------------------------------------
    
    QUOTE CARD (MAIN CONTENT)
    ------------------------------------
    - Centered Card
    - Rounded corners (20–24dp)
    - Soft elevation
    - Large quote text
    - Decorative quotation marks icon
    - Text aligned center
    - Elegant typography
    
    Below quote:
    - Thin divider line
    - Author row:
        - Circular avatar placeholder
        - Author name text
    
    ------------------------------------
    
    CARD ACTIONS
    ------------------------------------
    - Row with icons:
        - Share icon
        - Copy icon
    - Center aligned
    - Icons only (no text)
    
    ------------------------------------
    
    BOTTOM ACTION
    ------------------------------------
    - Large primary button at bottom
    - Text: "Next Quote →"
    - Rounded corners
    - Green primary color
    - Full width with padding
    
    ------------------------------------
    
    PAGINATION INDICATOR
    ------------------------------------
    - Small dots below the button
    - Indicates current quote index
    - Active dot highlighted
    
    ------------------------------------
    STATE MANAGEMENT
    ------------------------------------
    - Create QuoteUiModel (text, author, category)
    - Create QuoteViewModel
    - Use StateFlow
    - Fake hardcoded list of quotes
    - Button click updates current quote
    
    ------------------------------------
    ARCHITECTURE
    ------------------------------------
    - MVVM
    - No logic inside composables
    - UI observes ViewModel using collectAsState()
    
    ------------------------------------
    DESIGN GOALS
    ------------------------------------
    - Calm
    - Minimal
    - Soft green accent
    - Clean spacing
    - Beginner-friendly code
    
    ------------------------------------
    OUTPUT EXPECTATION
    ------------------------------------
    - Complete Compose screen code
    - ViewModel code
    - App builds successfully
    - UI closely matches reference design
    - Clean, readable Kotlin code
    
    .

    3. How I Can add More Features in this App?

    Now, we are going to add more features so that this app looks good till now what we did, we did not use any coding or we don't know how to build at all. We just copy and paste take help from AI tool and that's how we build this one now same thing you did to prompt just copy that prompt and paste it inside. Enter studio agent mode once you do that you'll get the app here you can first watch the video and then put the prompt that we given below the video and that's how you can get an app for yourself.


    Step 3 – Daily Quote Logic
    
    The Daily Quotes app already works with:
    - Jetpack Compose
    - Kotlin
    - ViewModel
    - Fake quote list
    - "Next Quote" button
    
    Now modify the logic to support:
    
    DAILY QUOTE MODE
    
    ------------------------------------
    GOAL
    ------------------------------------
    - Show ONE quote per day
    - The quote must stay the same all day
    - Automatically change when the date changes
    - No database
    - No internet
    - No SharedPreferences needed
    
    ------------------------------------
    IMPLEMENTATION DETAILS
    ------------------------------------
    
    1️⃣ In QuoteViewModel:
    
    - Keep the existing list of QuoteUiModel
    - Remove random or next-quote cycling logic
    
    2️⃣ Create a function:
    
    private fun getDailyQuote(): QuoteUiModel
    
    3️⃣ Inside that function:
    
    - Get current date using:
        LocalDate.now()
    
    - Convert date to a number:
        val dayNumber = today.toEpochDay()
    
    - Compute index:
        val index = (dayNumber % quotes.size).toInt()
    
    - Return quotes[index]
    
    4️⃣ On ViewModel init:
    - Set currentQuote = getDailyQuote()
    
    ------------------------------------
    BUTTON BEHAVIOR
    ------------------------------------
    - "Next Quote" button should now:
        - Refresh using getDailyQuote()
        OR
        - Show a message:
          "Come back tomorrow for a new quote"
    
    Keep implementation simple.
    
    ------------------------------------
    OUTPUT EXPECTATION
    ------------------------------------
    - App builds successfully
    - Quote stays same on app restart
    - Quote changes automatically next day
    - No database used
    - Clean ViewModel logic
    - Beginner-friendly code
    
    .
    After Completing that add this prompt on android studio agent
    Step 4 – Small Polish Features
    
    You are an expert Android developer.
    
    The Daily Quotes app already has:
    - Jetpack Compose
    - ViewModel
    - Daily quote logic
    - Category chips
    - Quote card
    - "Next Quote" button
    
    Now implement small polish features:
    
    ------------------------------------
    FEATURE 1 – FAVORITE TOGGLE
    ------------------------------------
    
    GOAL:
    - Add favorite functionality
    - Heart icon toggles favorite state
    
    IMPLEMENTATION:
    
    1️⃣ Update QuoteUiModel:
    - Add: isFavorite: Boolean
    
    2️⃣ In QuoteViewModel:
    - Keep a MutableStateFlow<QuoteUiModel>
    - Add function: toggleFavorite()
    
    3️⃣ When heart icon clicked:
    - Call ViewModel.toggleFavorite()
    - UI updates automatically
    
    4️⃣ Change icon:
    - If isFavorite == true → filled heart
    - Else → outlined heart
    
    No database required.
    Favorite resets when app restarts.
    
    ------------------------------------
    FEATURE 2 – SHARE QUOTE
    ------------------------------------
    
    GOAL:
    - Share quote using Android share sheet
    
    IMPLEMENTATION:
    
    1️⃣ Add function in ViewModel:
    - fun getShareText(): String
    
    Return:
    "Quote text" — Author
    
    2️⃣ In composable:
    - Use LocalContext
    - Create Intent(Intent.ACTION_SEND)
    - Put EXTRA_TEXT
    - Set type = "text/plain"
    - Use context.startActivity(Intent.createChooser(...))
    
    3️⃣ Trigger on Share icon click
    
    ------------------------------------
    FEATURE 3 – LIGHT/DARK THEME TOGGLE
    ------------------------------------
    
    GOAL:
    - Toggle between light and dark theme
    - Switch using icon in TopAppBar
    
    IMPLEMENTATION:
    
    1️⃣ Create AppThemeViewModel
    - MutableStateFlow<Boolean> isDarkMode
    
    2️⃣ Provide theme state to app root
    - In MainActivity
    - Wrap content in:
      if (isDarkMode) DarkColorScheme else LightColorScheme
    
    3️⃣ Add theme toggle icon in TopAppBar:
    - Sun icon for light mode
    - Moon icon for dark mode
    
    4️⃣ Clicking icon:
    - Toggle isDarkMode
    
    No persistence required.
    Theme resets on restart.
    
    ------------------------------------
    ARCHITECTURE RULES
    ------------------------------------
    - No logic inside composables
    - Use ViewModels
    - StateFlow + collectAsState()
    - Clean separation of concerns
    
    ------------------------------------
    OUTPUT EXPECTATION
    ------------------------------------
    - App builds successfully
    - Favorite icon toggles correctly
    - Share sheet opens correctly
    - Theme switches smoothly
    - No crashes
    - No Gradle changes
    
    .
    Download APK File:- https://www.dropbox.com/scl/fi/s2i2sgof8gc3ttfzu0z96/daily-quote.apk?rlkey=io4pd0iopw2afravu2r9rc89s&st=obtkiyh3&dl=0
    KundanD

    About KundanD

    Thanks for reading! Check out more articles on the homepage.

    Comments

    Comments

    Post a Comment