Giter VIP home page Giter VIP logo

megaminditbd / banglatextview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from noman404/banglatextview

0.0 2.0 0.0 218 KB

Convert certain types of text pattern to Bangla text, i.e. Number, Date, Ordinal Indicator, Month, Year and more. Originally created several years ago https://github.com/noman404/ToBangla in eclipse era

Home Page: https://github.com/noman404/BanglaTextView/wiki

License: MIT License

Java 100.00%

banglatextview's Introduction

Build Status

Preview

Sample

Dependencies

  • in your top level build.gradle file add the jitpack dependency

    maven { url 'https://jitpack.io' }

  • in application level build.gradle add the BanglaTextView dependency

    implementation 'com.github.noman404:BanglaTextView:1.0.2'

Usage

From .xml

<com.al.tobangla.views.BNTextView  
  android:layout_width="wrap_content"  
  android:layout_height="wrap_content"  
  android:text="21.00"  
  toBangla:processType="amount" />

From Java

BNTextView bnTextView = new BNTextView(this);  
bnTextView.setProcessType(ProcessType.AMOUNT);  
bnTextView.setText("21.00");

Supported Conversions

  • Date
  • Number
  • Amount
  • Time
  • Ordinal Indicator (Date, Number, Today)
  • Current Date, Time
Process Type Flag Output
Date DATE ২০১৮-০৫-০৭
Number NUMBER ৭৫
Time TIME ০৫:০৭
Amount AMOUNT ৳ ৫৭
Today TODAY রবিবার
Date Ordinal Indicator ORDINAL_INDICATOR_FOR_DATE ১৬ই ডিসেম্বর, ১৯৭১
Number Ordinal Indicator ORDINAL_INDICATOR_FOR_NUMERIC_ORDER ১৩ তম
Today Ordinal Indicator ORDINAL_INDICATOR_TODAY ০৭/০৫/২০১৮
Current Time TIME_NOW ১২:০৯:২৫

banglatextview's People

Contributors

noman404 avatar

Watchers

James Cloos avatar Md Salahuddin Khan 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.