This Android application provides a simple and convenient way to browse common HTTP headers and status codes. It's built using Jetpack Compose, the modern UI toolkit for Android.
- Features
- Getting Started
- Usage
- Code Structure
- Dependencies
- Contributing
- License
- Contact
- Project Link
- Browse HTTP Headers: View a list of common HTTP headers and their descriptions.
- Browse HTTP Status Codes: View a list of common HTTP status codes and their meanings.
- Clean and Simple UI: The app uses a clean and intuitive user interface built with Jetpack Compose.
- Efficient List Rendering: The app uses
LazyColumn
for efficient rendering of long lists. - Well-Organized Code: The code is well-structured and easy to understand, making it a good example for learning Jetpack Compose and Android development.
- Clear Visual Hierarchy: The app uses
SectionHeader
andListItem
composables to create a clear visual hierarchy. - Material Design: The app uses Material Design components.
- Android Studio (latest version recommended)
- Android SDK (API level 21 or higher)
- Basic knowledge of Kotlin and Jetpack Compose
-
Clone the repository:
-
- Open in Android Studio:
- Open Android Studio and select "Open an existing Android Studio project."
- Navigate to the cloned repository directory and select it.
-
Build and Run:
- Connect an Android device or start an emulator.
- Click the "Run" button in Android Studio.
- Launch the app on your Android device or emulator.
- The main screen will display two sections: "HTTP Headers" and "HTTP Status Codes."
- Scroll through the lists to browse the headers and status codes.
- Each item in the list shows the name and the value.
MainActivity.kt
: The main entry point of the application.HttpListerScreen.kt
: Contains theHttpListerScreen
composable, which displays the list of HTTP headers and status codes.HttpHeaders.kt
: Defines theHttpHeaders
class, which provides constants for common HTTP header names.HttpStatus.kt
: Defines theHttpStatus
class, which provides constants for common HTTP status codes.SectionHeader.kt
: Defines theSectionHeader
composable.LabeledValueRow.kt
: Defines theLabeledValueRow
composable.
- Jetpack Compose:
androidx.compose.ui:ui
androidx.compose.material3:material3
androidx.compose.ui:ui-tooling-preview
androidx.compose.foundation:foundation
androidx.compose.foundation:foundation-layout
androidx.compose.foundation:foundation-android
androidx.compose.ui:ui-android
androidx.compose.ui:ui-text-android
androidx.compose.ui:ui-util-android
androidx.compose.ui:ui-geometry-android
androidx.compose.ui:ui-graphics-android
androidx.compose.ui:ui-unit-android
androidx.compose.runtime:runtime-android
androidx.compose.runtime:runtime-saveable-android
androidx.compose.material:material-icons-core-android
androidx.compose.material:material-ripple-android
androidx.compose.material:material-icons-extended-android
androidx.compose.material3:material3-window-size-class-android
androidx.compose.animation:animation-android
androidx.compose.animation:animation-core-android
- Android Core KTX:
androidx.core:core-ktx
- Activity Compose:
androidx.activity:activity-compose
- Lifecycle:
androidx.lifecycle:lifecycle-runtime-compose
androidx.lifecycle:lifecycle-viewmodel-compose
- Navigation Compose:
androidx.navigation:navigation-compose
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Donald McCaskey - [email protected]