AI2 Component  (Version nb184)
IceCreamSandwichUtil.java
Go to the documentation of this file.
1 // -*- mode: java; c-basic-offset: 2; -*-
2 // Copyright 2018 MIT, All rights reserved
3 // Released under the Apache License, Version 2.0
4 // http://www.apache.org/licenses/LICENSE-2.0
5 
6 package com.google.appinventor.components.runtime.util;
7 
8 import android.os.Build.VERSION;
9 import android.os.Build.VERSION_CODES;
10 import android.widget.TextView;
11 
17 public final class IceCreamSandwichUtil {
18 
19  private IceCreamSandwichUtil() {
20  }
21 
27  public static void setAllCaps(TextView view, boolean allCaps) {
28  if (VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH) {
29  view.setAllCaps(allCaps);
30  }
31  }
32 }
com.google.appinventor.components.runtime.util.IceCreamSandwichUtil.setAllCaps
static void setAllCaps(TextView view, boolean allCaps)
Definition: IceCreamSandwichUtil.java:27
com.google.appinventor.components.runtime.util.IceCreamSandwichUtil
Definition: IceCreamSandwichUtil.java:17