The Converter App is an Android application built using Java in Android Studio. This app offers a range of conversion tools, including unit conversion, currency conversion, BMI calculation, love calculation, CGPA/SGPA calculation, temperature conversion, and time conversion. It’s designed with a user-friendly interface and follows Material Design principles.
- Unit Conversion: Convert between various units (e.g., length, weight, volume).
- Currency Conversion: Convert currencies with real-time exchange rates.
- BMI Calculator: Calculate Body Mass Index based on height and weight.
- Love Calculator: Simple fun feature to calculate compatibility.
- CGPA and SGPA Calculator: Calculate CGPA, SGPA, and percentage.
- Temperature Converter: Convert between Celsius, Fahrenheit, and Kelvin.
- Time Conversion: Convert between different time units (seconds, minutes, hours).
This project uses several libraries to enhance the UI and functionality:
- CardView: Used for presenting content with cards.
implementation 'androidx.cardview:cardview:1.0.0'
- RecyclerView: Used for displaying lists and grids of data.
implementation 'androidx.recyclerview:recyclerview:1.2.1'
- Material Design Components: Provides modern UI components based on Material Design.
implementation 'com.google.android.material:material:1.5.0'
Prerequisites
- Android Studio: Download and install Android Studio.
- Java SDK: Ensure you have Java SDK installed (Android Studio manages this automatically for most users).
Installation
- Clone the Repository:
git clone https://github.com/dilip12git/converter_android_app.git cd converter_android_app
- Open in Android Studio:
- Open Android Studio and select Open an Existing Project.
- Navigate to the cloned directory and open it.
- Sync Project with Gradle Files:
- Android Studio should automatically prompt you to sync Gradle files.
- Run the App:
- Connect an Android device or use an emulator.
- Click on the "Run" button in Android Studio.
The app uses a RecyclerView to display lists of options for each converter type. Here's an example of setting up a RecyclerView adapter in Java:
recyclerView = findViewById(R.id.recycler_view); // Initialize RecyclerView
recyclerView.setLayoutManager(new GridLayoutManager(this,2));
recyclerView.setAdapter(adapter);