YourName is a Android library.
You can generate your own Chinese name with it.
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Then add the dependency:
dependencies {
compile 'com.github.nichbar:YourName:v1.0'
}
Use generateName()
YourName yourName = new YourName();
Toast.makeText(this, yourName.generateName(), Toast.LENGTH_SHORT).show();
Use generateName(int length)
YourName yourName = new YourName();
Toast.makeText(this, yourName.generateName(YourName.TWO_CHARACTER), Toast.LENGTH_SHORT).show();
Use generateFamily(int length)
YourName yourName = new YourName();
Toast.makeText(this, yourName.generateFamily(YourName.ONE_CHARACTER), Toast.LENGTH_SHORT).show();
Use generateGivenName()
, only one character will return. You may call twice to get two characters.
YourName yourName = new YourName();
Toast.makeText(this, yourName.generateGivenName(), Toast.LENGTH_SHORT).show();
- Generate names with FengShui option.