Back to Projects
2025-12-09AI/MLREADME Rendered
AITextTool
Android text assistant with floating windows and multi-provider LLM support for translation, explanation, AI search, and quick actions on selected text.
AndroidKotlinJetpack ComposeLLMTranslation
⨠Features
- š Text Selection Integration - Select text anywhere, invoke AI assistant from system menu
- š Translation - Translate between Chinese and English instantly
- š” Explanation - Get concise explanations for any concept or term
- š AI Search - Search and summarize information with AI
- š Quick Copy - Copy selected text or AI results with one tap
- šØ Floating Window - Non-intrusive overlay UI that doesn't interrupt your workflow
- āļø Multi-Provider Support - Works with OpenAI, Claude, DeepSeek, and 10+ other AI providers
š± Screenshots
| Settings | Floating Menu | AI Response |
|---|---|---|
| Screenshot 1 | Screenshot 2 | Screenshot 3 |
š Getting Started
Prerequisites
- Android 7.0 (API 24) or higher
- An API key from any supported AI provider
Installation
- Download the latest APK from Releases
- Install the APK on your Android device
- Open the app and configure your API settings
- Grant overlay permission when prompted
Supported AI Providers
| Provider | Base URL | Models |
|---|---|---|
| DeepSeek | api.deepseek.com | deepseek-chat, deepseek-coder |
| OpenAI | api.openai.com | gpt-4o, gpt-3.5-turbo |
| Claude | api.anthropic.com | claude-3-5-sonnet |
| Google Gemini | generativelanguage.googleapis.com | gemini-1.5-pro |
| Moonshot | api.moonshot.cn | moonshot-v1-128k |
| And more... |
š ļø Building from Source
Requirements
- Android Studio Hedgehog or later
- JDK 17
- Android SDK 34
Build Steps
# Clone the repository
git clone https://github.com/yourusername/ai-text-tool.git
cd ai-text-tool
# Set JAVA_HOME (if not set)
# Windows:
set JAVA_HOME=D:\Android Studio\jbr
# Build debug APK
./gradlew assembleDebug
# Build release APK (requires signing config)
./gradlew assembleRelease
The APK will be generated at app/build/outputs/apk/
šļø Tech Stack
- Language: Kotlin 1.9.24
- UI Framework: Jetpack Compose
- Dependency Injection: Hilt
- Networking: Retrofit + OkHttp
- Local Storage: DataStore
- Architecture: MVVM
š Project Structure
app/src/main/
āāā java/com/example/aitexttool/
ā āāā MainActivity.kt # Settings screen
ā āāā SplashActivity.kt # Splash animation
ā āāā ProcessTextActivity.kt # Text selection handler
ā āāā FloatingWindowService.kt # Floating window service
ā āāā data/
ā ā āāā AiRepository.kt # AI API calls
ā ā āāā UserPreferencesRepository.kt
ā ā āāā network/ # API models
ā āāā di/
ā ā āāā AppModule.kt # Hilt modules
ā āāā ui/
ā āāā FloatingMenu.kt # Floating UI
ā āāā SettingsScreen.kt # Settings UI
āāā assets/
ā āāā splash.html # Splash animation
āāā res/
āāā ...
š¤ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- 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
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š Acknowledgments
- Jetpack Compose
- Hilt
- Retrofit
- All the amazing AI providers
Made with ā¤ļø by AI Text Tool Team