Sue Chi

When there’s string like below in your Android project
<string name="string_with_ellipsis">Loading...</string>

There will be lint warning message like:
res/values/ooo.xml:234: Replace “…” with ellipsis character(…,&#8230;)?

As an Android developers, my first thought is
“OK, let’s replace that string with ellipsis character!”

But wait a minute…who else will need this file?
Oh, it’s the translate agency!!!
And do I really want to spend extra time to explain that the &#8230; is not some weird mistake, and it doesn’t need to be translated, just add it to the end of every other translated result?
No…I’m too lazy for that. :P

So another way is to ignore the TypographyEllipsis warning!

You can either add the below settings to lint.xml
<lint>
<issue id="TypographyEllipsis" severity="ignore" />
</lint>

or add below Option to your build.gradle
lintOptions {
disable 'TypographyEllipsis'
}

Both works like a charm to me. ;)

Reference:
https://googlesamples.github.io/android-custom-lint-rules/checks/TypographyEllipsis.md.html

--

--

Screenwriter:Ken Nolan & Eric Warren Singer

This is definitely a super impressive movie I highly recommend.
My two suggestions for this movie will be:
1. Don’t see it before sleeping. -> You might have a nightmare just like I did.
2. Prepare a box of tissue paper. -> You’re gonna need it so badly.

from https://zh.wikipedia.org/wiki/%E7%84%A1%E8%B7%AF%E5%8F%AF%E9%80%80

--

--

It can be miracles when you … have a DEMAND!

from https://reurl.cc/m93bEj

Today’s request is about performance issues, so I need to SPEED UP my search.

The below code snippet is what you saw all the time around your daily coding life.

But when it comes to the matter of PERFORMANCE, the usual search just can not meet the requirements.

Luckily, we have JAVA 8 now!!! So we can achieve parallel search with ease.

And wala~it works just like a charm!

Android API requirement:minSdkVersion 26

--

--

Sue Chi

Sue Chi

I think; therefore I am. Cogito, ergo sum. No basic, no magic. When you want something, all the universe conspires in helping you to achieve it.