Skip to main content

Maday - Android Code Snippets Generator

A Python package that provides 18 ready-to-use Android development code snippets. Easily generate, copy, and reference Android code for various UI components and functionalities.

Features

✨ 18 Android Code Snippets including:

  • Alert Dialog
  • TimePicker & DatePicker
  • Radio Button, CheckBox, ToggleButton
  • Progress Bar
  • AutoComplete TextView
  • Shape Drawing
  • Spinner
  • Shared Preferences
  • Intent (with examples)
  • Popup Menu & Context Menu
  • Animation (Basic & Advanced)
  • SQLite Database
  • Custom Toast Messages

Each snippet includes:

  • ✅ Complete XML layout files
  • ✅ Full Kotlin/Java code
  • ✅ File paths and locations
  • ✅ Ready-to-copy format

Installation

Install from PyPI:

pip install maday

Or install from source:

git clone https://github.com/yourusername/maday.git
cd maday
pip install -e .

Quick Start

python -c "from maday import android_snippets; android_snippets()"

Or in Python:

from maday import android_snippets

# Launch the interactive menu
android_snippets()

# Follow the prompts to select a snippet
# Your selected code will be saved to output.txt

Quick Examples

from maday import hello_world, show_help

# Get info about available commands
show_help()

# Quick test
print(hello_world())

Usage

  1. Run the Android Snippets Generator:

    python -c "from maday import android_snippets; android_snippets()"
    
  2. Select a snippet (1-18) from the menu

  3. Copy the generated code from output.txt

  4. Paste into your Android project

Snippets Available

# Snippet Files
1 Alert Dialog activity_main.xml, MainActivity.kt
2 TimePicker activity_main.xml, MainActivity.kt
3 Date Picker activity_main.xml, MainActivity.kt
4 Radio Button activity_main.xml, MainActivity.kt
5 Check Box activity_main.xml, MainActivity.kt
6 Toggle Button activity_main.xml, MainActivity.kt
7 Progress Bar activity_main.xml, MainActivity.kt
8 AutoComplete TextView activity_main.xml, MainActivity.kt
9 Shape Drawing activity_main.xml, MainActivity.kt
10 Spinner activity_main.xml, MainActivity.kt
11 Shared Preferences activity_main.xml, MainActivity.kt
12 Intent activity_main.xml, MainActivity.kt, activity_second.xml, SecondActivity.kt
13 Popup Menu activity_main.xml, popup_menu.xml, MainActivity.kt
14 Context Menu activity_main.xml, context_menu.xml, MainActivity.kt
15 Animation (Basic) activity_main.xml, MainActivity.kt
16 Animation (Advanced) activity_main.xml, MainActivity.kt, 8 Animation XML files
17 SQLite Database activity_main.xml, DBHelper.kt, MainActivity.kt
18 Toast Messages activity_main.xml, custom_toast.xml, MainActivity.kt

Development

Install development dependencies:

pip install -e ".[dev]"

Run tests:

pytest

Example Output

When you select a snippet, you'll get:

================================================================================
1. ALERT DIALOG
================================================================================

FILE: activity_main.xml
================================================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    ...
    
FILE: MainActivity.kt
================================================================================
package com.example.alertdialogapp
import android.os.Bundle
...

Each file is clearly labeled with its path and purpose.

Tips

  • 💡 All code is production-ready
  • 📋 Copy directly from output.txt
  • 🔗 Each snippet is self-contained
  • 🎨 Customizable for your project
  • ⚙️ Works with latest Android API levels

Requirements

  • Python 3.8+
  • No external dependencies!

License

MIT License - see LICENSE file for details

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues, suggestions, or questions, please visit the GitHub Issues page.


Made with ❤️ for Android Developers

Metadata

Release files for maday 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maday 0.1.7
File Size Uploaded Provenance Actions
maday-0.1.7.tar.gz 15.6 kB Without provenance Details for maday-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for maday 0.1.7
File Interpreter ABI Platform Actions
maday-0.1.7-py3-none-any.whl Python 3 none any Details for maday-0.1.7-py3-none-any.whl

Total release size: 30.5 kB

Release files / maday-0.1.7.tar.gz

Download URL maday-0.1.7.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
70b5941acc7f900756b41c49f86e6777e978236da5454dc2ddf93f0ca3b7497a
BLAKE2b-256 checksum
How to use checksums
ee4767be8b06931c5e31ab188d23ec4441bdc5485780d396a9636bb9e64de832
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / maday-0.1.7-py3-none-any.whl

Download URL maday-0.1.7-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82be788403c237183a697165321cbeca2c473478bdfc22e0b46b0d7f6937b1f7
BLAKE2b-256 checksum
How to use checksums
035616e870e0c6a39727e6dcd2d3b50ae7f14f57b5149391f041fa1895b0c1f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Security for maday 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page