A simple, full-screen LED-style digital desk clock application for Android, built with Kotlin and Jetpack Compose. This app turns your Android device into a retro-style alarm clock, perfect for your desk or nightstand.
The text size is dynamically adjusted to fill the screen, ensuring it looks great on any device size, from small phones to large tablets.
- Full-Screen Display: The clock takes over the entire screen for maximum visibility without distractions from the status or navigation bars.
- Dynamic Text Sizing: The clock digits automatically resize to fit the width of any screen, ensuring a "꽉 찬 화면" (full-screen) experience.
- Always-On Screen: The screen is kept on by default, so the clock is always visible.
- Customizable LED Font: Easily change the font to any 7-segment or digital-style font you prefer.
- Landscape Mode: Optimized for horizontal (landscape) orientation, typical for desk clocks.
- Modern UI Toolkit: Built with 100% Kotlin and Jetpack Compose, Google's modern toolkit for building native Android UI.
(Add a screenshot of your running application here for a better visual representation.)
You can build and run this project using Android Studio.
- Android Studio (latest version recommended)
- An Android device or emulator
-
Clone the repository:
git clone https://github.com/IDKNWHORU/lcdclock.git
-
Open in Android Studio:
- Open Android Studio.
- Click on
File->Open. - Navigate to the cloned project directory and select it.
-
Sync Gradle:
- Let Android Studio sync the project and download the required dependencies.
-
Run the App:
- Select your target device (emulator or a physical device).
- Click the
Run 'app'button (the green play icon).
You can easily customize the look of the clock by using your own digital-style font.
-
Find a Font:
- Download a digital, 7-segment, or LED-style font. A good source for free fonts is Google Fonts or dafont.com.
- The font file should be in
.ttfor.otfformat.
-
Add Font to Project:
- In Android Studio's project view, navigate to the
app/src/main/resdirectory. - Right-click the
resfolder and selectNew->Android Resource Directory. - Set the
Resource typeto font and clickOK. - Copy your downloaded font file (e.g.,
my_cool_font.ttf) into the newly createdres/fontdirectory. Note: The filename must be lowercase and use only letters, numbers, or underscores.
- In Android Studio's project view, navigate to the
-
Update the Code:
- Open the
MainActivity.ktfile. - Find the
ResponsiveLedClockcomposable function. - Locate the
Textcomponent and change thefontFamilyattribute:
// ... inside ResponsiveLedClock() Text( text = currentTime, // ... other properties fontFamily = FontFamily(Font(R.font.your_new_font_file_name)) // Change this line )
- Replace
your_new_font_file_namewith the name of your font file (without the.ttfextension).
- Open the
- Language: Kotlin
- UI Toolkit: Jetpack Compose
- Asynchronicity: Kotlin Coroutines
This project is licensed under the MIT License - see the LICENSE.md file for details.
