I am trying my best increasing border width of characters on textview but i haven't founded anything like following. As you can see, outlined borders are black in order to constrast with backgrounds. So, how can i do something like that? I mean, i would like to do this with .xml or .java
Outlined black
You can download the font type and add it to the items you need
Select File / New Folder / Assets Folder
Right click on assets and create a folder called fonts
Put your font file in assets > fonts
Use this
TextView myTextView = (TextView) findViewById(R.id.textView);
Typeface typeface = Typeface.createFromAsset(getAssets(), "fonts/yourfont.ttf");
myTextView.setTypeface(typeface);
You can set shadow for your textview using attributes below.
android:shadowColor="@color/black"
android:shadowDx="1"
android:shadowDy="1"
android:shadowRadius="2"
For more information link
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.