Code example for ViewGroup

Methods: getContext

     * @return The tab indicator View. 
    public static View createTabIndicatorView(ViewGroup parent, ContactsSource source) {
        Drawable icon = null;
        if (source != null) {
            icon = source.getDisplayIcon(parent.getContext());
        return createTabIndicatorView(parent, null, icon);
     * Kick off an intent to initiate a call. 
     * @param phoneNumber must not be null. 
     * @throws NullPointerException when the given argument is null. 
    public static void initiateCall(Context context, CharSequence phoneNumber) {
        Intent intent = new Intent(Intent.ACTION_CALL_PRIVILEGED,
                Uri.fromParts("tel", phoneNumber.toString(), null));
Experience pair programming with AI  Get Codota for Java