Skip to content

Instantly share code, notes, and snippets.

(I forked this and made a slight modification from the original to clarify a part that had me confused)

There's a workaround that might be useful for some people - use the Shadowsocks app for Android TV. Because that app only accepts a JSON configuration file, you need to convert the Outline key to JSON.

  1. Take the following JSON file template:
    {
        "server":"YOUR-SERVER-IP",
        "server_port":12345,

"local_port":1080,

import android.widget.TextView
/**
* sets an alpha on the lines after the Nth line, this could be useful for when animating a TextView to get smnaller and have less lines
* alpha: the desired alpha
* onLinesAfter: all lines after this line will have the color set on them (1 based index, i.e first line is 1 not 0)
* forceColor: by default will use the color already set on the TextView, but you can over ride the color if needed
* return: the spannable used, in case you need to remove it later
*/
@SiavashB
SiavashB / Keybase.md
Created May 10, 2019 22:58
Keybase proof

Keybase proof

I hereby claim:

  • I am siavashb on github.
  • I am sbonakdar (https://keybase.io/sbonakdar) on keybase.
  • I have a public key ASDSXpTojTSIdTjoq5a0kx3OLt9wO2lQverlA46GmXTdPAo

To claim this, I am signing this object: