Coder Social home page Coder Social logo

pinyu's Introduction

Pinyu

This app currently functions like a pocket dictionary. It contains a little over 50 Chinese words spanning different categories.

Pinyu is my first attempt to try and utilize less-naive design practices. I attempt to follow the MVP pattern here for my vocab review screens. I'm also utilizing inheritence and some static variables and methods to help with organization and navigation.

How it works

Pinyu gets its words from an SQLite database that contains the english word, pinyin, chinese character, category of a word, as well as corresponding sound and image resource IDs. The database can be found in assets/words.db.

The Content Provider (WordProvider.java) is defined in AndroidManifest.xml file. This Provider is accessed by the Content Loader in the Vocab Activity parent class. The Loader uses a URI to access the Provider and query different categories to display for each activity, depending on which category the user selected. This data is loaded into a custom adapter that defines the display formatting for the words and the sound play buttons.

Possible improvements

Improvements to this app would include using Fragments over Activities for the vocabulary review screens, as well as potentially using a Navigation Architecture Component to handle different fragment navigations.

Acknowledgements

A big thanks to Yu Qi for recording the sound clips in Mandarin, as well as Roundicons and Freepik from www.flaticons.com for all of the icons.

pinyu's People

Contributors

ashfordhill 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.