For emphasizing a snippet of text with a heavier font-weight.
The following snippet of text is rendered as bold text.
| import UIKit | |
| extension UIImage { | |
| // colorize image with given tint color | |
| // this is similar to Photoshop's "Color" layer blend mode | |
| // this is perfect for non-greyscale source images, and images that have both highlights and shadows that should be preserved | |
| // white will stay white and black will stay black as the lightness of the image is preserved | |
| func tint(tintColor: UIColor) -> UIImage { | |
| public class MainActivity extends Activity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.layoutfab); | |
| //Outline | |
| final int size = getResources().getDimensionPixelSize(R.dimen.fab_size); | |
| findViewById(R.id.fab).setOutlineProvider(new ViewOutlineProvider() { |