com.samsung.android.sdk.look.cocktailbar

Class SlookCocktailSubWindow

  • java.lang.Object
    • com.samsung.android.sdk.look.cocktailbar.SlookCocktailSubWindow


  • public final class SlookCocktailSubWindow
    extends java.lang.Object
    This class is SlookCocktailSubWindow. This class is needed for cocktailbar in SDK.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static android.view.Window getSubWindow(android.app.Activity activity)
      get the subWindow of activity.
      static void setSubContentView(android.app.Activity activity, int layoutResID)
      Set the subWindow of activity content from a layout resource.
      static void setSubContentView(android.app.Activity activity, android.view.View view)
      Set the subWindow of activity content to an explicit view.
    • Constructor Detail

      • SlookCocktailSubWindow

        public SlookCocktailSubWindow()
    • Method Detail

      • setSubContentView

        public static void setSubContentView(android.app.Activity activity,
                                             int layoutResID)
        Set the subWindow of activity content from a layout resource.
        Parameters:
        activity - Can be used to install into the content.
        layoutResID - Resource ID to be inflated.
        Throws:
        Java.lang.IllegalArgumentException - - Thrown if activity is null or invalid.
        Since:
        1.1.0
      • setSubContentView

        public static void setSubContentView(android.app.Activity activity,
                                             android.view.View view)
        Set the subWindow of activity content to an explicit view.
        Parameters:
        activity - Can be used to install into the content.
        view - The desired content to display.
        Throws:
        Java.lang.IllegalArgumentException - - Thrown if activity is null or invalid.
        Since:
        1.1.0
      • getSubWindow

        public static android.view.Window getSubWindow(android.app.Activity activity)
        get the subWindow of activity.
        Parameters:
        activity - Can be used to install into the content.
        Returns:
        Window The current sub window, or null if the activity is not visual.
        Throws:
        Java.lang.IllegalArgumentException - - Thrown if activity is null or invalid.
        Since:
        1.1.0