├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── styles.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── strings.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ ├── menu_main.xml │ │ │ │ └── menu_embed.xml │ │ │ └── layout │ │ │ │ ├── activity_embed.xml │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── mm │ │ │ └── technomation │ │ │ └── mmtextsample │ │ │ ├── EmbedActivity.java │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── mm │ │ └── technomation │ │ └── mmtextsample │ │ └── ApplicationTest.java ├── build.gradle ├── proguard-rules.pro └── app.iml ├── mmtext ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── colors.xml │ │ │ ├── drawable │ │ │ │ └── toast_frame_background.xml │ │ │ └── layout │ │ │ │ └── transient_notification.xml │ │ ├── assets │ │ │ └── mymm.ttf │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── mm │ │ │ └── technomation │ │ │ └── mmtext │ │ │ ├── TextHelper.java │ │ │ ├── MMTextView.java │ │ │ ├── MMButtonView.java │ │ │ ├── MMRadioButton.java │ │ │ ├── MMTextTypefaceSpan.java │ │ │ ├── MMToast.java │ │ │ ├── MMEditText.java │ │ │ ├── MyanmarZawgyiConverter.java │ │ │ ├── Rabbit.java │ │ │ ├── MyBreak.java │ │ │ └── mmtext.java │ └── androidTest │ │ └── java │ │ └── mm │ │ └── technomation │ │ └── mmtext │ │ └── ApplicationTest.java ├── mmtext-master-mmtext.iml ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── local.properties ├── gradle.properties ├── mmtext-master.iml ├── gradlew.bat ├── README.md ├── gradlew └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /mmtext/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':mmtext' 2 | -------------------------------------------------------------------------------- /mmtext/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | mmtext 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htoomyintnaung/mmtext/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /mmtext/src/main/assets/mymm.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htoomyintnaung/mmtext/HEAD/mmtext/src/main/assets/mymm.ttf -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htoomyintnaung/mmtext/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htoomyintnaung/mmtext/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htoomyintnaung/mmtext/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htoomyintnaung/mmtext/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mmtext/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 24dp 4 | 12dp 5 | -------------------------------------------------------------------------------- /mmtext/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | @android:color/background_light 4 | #5c5e5c 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Sep 28 00:05:37 MMT 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip 7 | -------------------------------------------------------------------------------- /mmtext/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /mmtext/src/main/res/drawable/toast_frame_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | mmtextSample 3 | MainActivity 4 | 5 | Hello world! 6 | Settings 7 | အက်ရှင်ဘားတွင်ပါ အန်ဘက်လုပ်နိုင် 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /mmtext/src/androidTest/java/mm/technomation/mmtext/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package mm.technomation.mmtext; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/androidTest/java/mm/technomation/mmtextsample/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package mm.technomation.mmtextsample; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /mmtext/mmtext-master-mmtext.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /local.properties: -------------------------------------------------------------------------------- 1 | ## This file is automatically generated by Android Studio. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | # 7 | # Location of the SDK. This is only used by Gradle. 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | #Fri Jan 26 19:30:00 MMT 2018 11 | ndk.dir=/Users/vox/Library/Android/sdk/ndk-bundle 12 | sdk.dir=/Users/vox/Library/Android/sdk 13 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_embed.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | 14 | 15 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "mm.technomation.mmtextsample" 9 | minSdkVersion 8 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | compile 'com.android.support:appcompat-v7:23.0.1' 25 | compile project(':mmtext') 26 | } 27 | -------------------------------------------------------------------------------- /mmtext/src/main/java/mm/technomation/mmtext/TextHelper.java: -------------------------------------------------------------------------------- 1 | package mm.technomation.mmtext; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.widget.TextView; 6 | 7 | /** 8 | * Created by myatminsoe on 9/27/15. 9 | */ 10 | public class TextHelper { 11 | 12 | private static Typeface typeface = null; 13 | 14 | public static void setTypeface(Context context, TextView textview) { 15 | if (TextHelper.typeface == null) { 16 | TextHelper.typeface = Typeface.createFromAsset(context.getAssets(), "mymm.ttf"); 17 | } 18 | textview.setText(mmtext.processText(textview.getText().toString(), mmtext.TEXT_UNICODE, true, true)); 19 | textview.setTypeface(typeface); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/myatminsoe/Library/Android/android-sdk-macosx/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /mmtext/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/myatminsoe/Library/Android/android-sdk-macosx/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /mmtext/src/main/res/layout/transient_notification.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 18 | 19 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /mmtext-master.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /mmtext/src/main/java/mm/technomation/mmtext/MMTextView.java: -------------------------------------------------------------------------------- 1 | package mm.technomation.mmtext; 2 | 3 | import android.content.Context; 4 | import android.graphics.Canvas; 5 | import android.util.AttributeSet; 6 | import android.widget.TextView; 7 | 8 | /** 9 | * Created by myatminsoe on 9/27/15. 10 | */ 11 | public class MMTextView extends TextView { 12 | public MMTextView(Context context) { 13 | super(context); 14 | TextHelper.setTypeface(context, this); 15 | } 16 | 17 | public MMTextView(Context context, AttributeSet attrs) { 18 | super(context, attrs); 19 | TextHelper.setTypeface(context, this); 20 | } 21 | 22 | public MMTextView(Context context, AttributeSet attrs, int defStyle) { 23 | super(context, attrs, defStyle); 24 | TextHelper.setTypeface(context, this); 25 | } 26 | 27 | public void setMyanmarText(String st) { 28 | setText(mmtext.processText(st, mmtext.TEXT_UNICODE, true, true)); 29 | } 30 | 31 | public CharSequence getMyanmarText() { 32 | return mmtext.getMMText(this); 33 | } 34 | 35 | protected void onDraw(Canvas canvas) { 36 | super.onDraw(canvas); 37 | } 38 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_embed.xml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 16 | 17 |