Simple translator using Android Studio/Kotlin.
The following required functionality is completed:
- User can choose a source language and new language to translate to. User can then input any text, which is translated in real time.
- Fragment/MainActivity use ML Kit to translate and use View Binding/a Shared View Model.
- UI is dynamic and user can interact with it.
- Runs without crashing
The following extensions are implemented:
User can choose to automatically identify the input language.
Here's a walkthrough of implemented user stories:
GIF created with LiceCap.
The shared view model gave me a lot of trouble because I missed that lecture. Watching the lecture back and looking at the documentation helped in learning how it works. Also, the language detection was strange to download, but the documentation helped with that, too.
Copyright [2023] [Pete Sullivan]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.