GithubHelp home page GithubHelp logo

aerdei313 / zcyitranslation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zaoyii/zcyitranslation

0.0 0.0 0.0 184 KB

一款英汉互译App,使用网易的翻译接口。MVVM+Room。本地数据库存储用户信息。

Java 100.00%

zcyitranslation's Introduction

ZcyiTranslation

一款英汉互译App。

开发环境

开发软件采用Android Studio版本2020.3.1 Patch 2

image

开发语言采用JAVA,软件相应依赖如下:

image

Room:https://developer.android.google.cn/jetpack/androidx/releases/room?hl=en

Navigation: https://developer.android.google.cn/guide/navigation?hl=en

Retrofit: https://square.github.io/retrofit/

Viewmodel: https://developer.android.google.cn/topic/libraries/architecture/viewmodel

翻译api采用有道: https://ai.youdao.com/ JAVA生成API工具类示例:

image image

设计思路 软件采用MVVM架构. 用户登录后记录用户信息到SQLite,登录后进入主页.用户输入要翻译的内容后拼接字符串URL生成API通过retrofit发送请求后收到返回Json字符串,分析Json内容并把内容渲染到对应的文本控件和RecyclerView控件上,并把数据存储到对应的ViewModel类中,这样切换页面数据也不会丢失.添加生词功能采用room来存储到本地的SQLite数据库中.

应用截图

登录:

image

注册:

image

翻译:

image

生词表:

image

英译汉效果:

image

汉译英效果:

image

生词列表:

image

生词相应详情:

image

zcyitranslation's People

Contributors

zaoyii avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.