public final class

ResourcesCompat.ThemeCompat

extends java.lang.Object

 java.lang.Object

↳androidx.core.content.res.ResourcesCompat.ThemeCompat

Overview

Provides backward-compatible implementations for new APIs.

Summary

Methods
public static voidrebase(Theme theme)

Rebases the theme against the parent Resource object's current configuration by re-applying the styles passed to .

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public static void rebase(Theme theme)

Rebases the theme against the parent Resource object's current configuration by re-applying the styles passed to .

Compatibility behavior:

  • API 29 and above, this method matches platform behavior.
  • API 23 through 28, this method attempts to match platform behavior by calling into hidden platform APIs, but is not guaranteed to succeed.
  • API 22 and earlier, this method does nothing.

Parameters:

theme: the theme to rebase