android.support.wearable.activity
Class InsetActivity

java.lang.Object
  extended by Activity
      extended by android.support.wearable.activity.InsetActivity

public abstract class InsetActivity
extends Activity

Base class for wearable display shape aware activities


Constructor Summary
InsetActivity()
           
 
Method Summary
 Rect getSystemInsets()
          Get the system insets
 boolean isRound()
          Get the shape of the screen
protected  void onCreate(Bundle state)
           
abstract  void onReadyForContent()
          Use this callback to set the content view
 void setContentView(int layoutResID)
           
 void setContentView(View view)
           
 void setContentView(View view, LayoutParams params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsetActivity

public InsetActivity()
Method Detail

onCreate

protected void onCreate(Bundle state)

isRound

public boolean isRound()
Get the shape of the screen

Returns:
true if round

getSystemInsets

public Rect getSystemInsets()
Get the system insets


onReadyForContent

public abstract void onReadyForContent()
Use this callback to set the content view


setContentView

public void setContentView(int layoutResID)

setContentView

public void setContentView(View view)

setContentView

public void setContentView(View view,
                           LayoutParams params)