Skip to content

Book Library is an Android app for managing personal or public libraries. It stores book records (title, author, pages) offline using SQLite and features customizable themes (light, dark, system default) for an enhanced user experience.

Notifications You must be signed in to change notification settings

aaimran236/book-library-

Repository files navigation

Book Library

Book Library is an Android application designed to help users manage their personal or public library by storing records of books, including title, author, and the number of pages. The app utilizes an SQLite database for offline data storage, ensuring users can access and manage their library records without an internet connection. The application also features a customizable theme, allowing users to switch between light, dark, and system default themes.

Features

  • Add Books: Users can add new book records, including the title, author, and number of pages.
  • Update Books: Existing book records can be updated with new information.
  • Delete Books: Users can delete book records from the library.
  • View Books: All stored books are displayed in a RecyclerView for easy viewing.
  • Theme Selection: Users can choose between light, dark, and system default themes for the app's interface.

Screenshots

                                                                     

Getting Started

Prerequisites

  • Android Studio
  • Android SDK
  • A device or emulator running Android API level 23 or higher

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/book-library.git
    cd book-library
  2. Open the project in Android Studio:

    • Open Android Studio.
    • Select Open an existing Android Studio project.
    • Navigate to the cloned repository and select the book-library folder.
  3. Build the project:

    • Click on Build in the top menu and select Make Project or press Ctrl+F9.
  4. Run the application:

    • Connect an Android device via USB or start an emulator.
    • Click on Run in the top menu and select Run 'app' or press Shift+F10.

Usage

  1. Add a Book:

    • Click on the + button to open the add book screen.
    • Enter the book title, author, and number of pages.
    • Click ADD to add the book to the library.
  2. Update a Book:

    • In the main screen, click on the book you want to update.
    • Modify the book details in the update screen.
    • Click Update to update the book information.
  3. Delete a Book:

    • In the main screen, click on the book you want to delete.
    • Click Delete to delete the book information.
  4. Delete All books:

    • Tap on the "Delete" icon at top right of the menu to remove all book records.
    • Confirm the deletion in the popup dialog.
  5. Select Theme:

    • Click on the Theme on menu in the top.
    • Choose your preferred theme (Light, Dark, System Default).

Database Schema

The app uses an SQLite database with the following schema:

  • Table Name: books
  • Columns:
    • id (INTEGER, PRIMARY KEY, AUTOINCREMENT)
    • title (TEXT)
    • author (TEXT)
    • pages (INTEGER)

Contributing

Contributions are welcome! If you have any improvements or new features to add, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a pull request.

License

This project is licensed under the MIT License - see the https://en.wikipedia.org/wiki/MIT_License#:~:text=The%20MIT%20License%20is%20a,therefore%20has%20high%20license%20compatibility. for details.

Acknowledgements

  • Thanks to the open-source community for providing valuable resources and tools.
  • Inspired by various book management applications.

About

Book Library is an Android app for managing personal or public libraries. It stores book records (title, author, pages) offline using SQLite and features customizable themes (light, dark, system default) for an enhanced user experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages