Java Code Examples for android.widget.FrameLayout#setRight()

The following examples show how to use android.widget.FrameLayout#setRight() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VisibilityEventsIncrementalMountDisabledTest.java    From litho with Apache License 2.0 6 votes vote down vote up
@Before
public void setup() {
  configWithExtensions = ComponentsConfiguration.useExtensionsWithMountDelegate;
  configVisExtension = ComponentsConfiguration.useVisibilityExtension;
  ComponentsConfiguration.useExtensionsWithMountDelegate = false;
  ComponentsConfiguration.useVisibilityExtension = false;
  mContext = new ComponentContext(RuntimeEnvironment.application);

  mLithoView = new LithoView(mContext);
  mParent = new FrameLayout(mContext.getAndroidContext());
  mParent.setLeft(0);
  mParent.setTop(0);
  mParent.setRight(10);
  mParent.setBottom(10);
  mParent.addView(mLithoView);
}
 
Example 2
Source File: VisibilityEventsTest.java    From litho with Apache License 2.0 6 votes vote down vote up
@Before
public void setup() {
  configVisExtension = ComponentsConfiguration.useVisibilityExtension;
  configIncMountExtension = ComponentsConfiguration.useIncrementalMountExtension;

  ComponentsConfiguration.useVisibilityExtension = mUseVisibilityExtensionInMountState;
  ComponentsConfiguration.useIncrementalMountExtension =
      mUseIncrementalMountExtensionInMountState;

  mContext = mLithoViewRule.getContext();
  mLithoView = new LithoView(mContext, mUseMountDelegateTarget, mDelegateToRenderCore);
  mLithoViewRule.useLithoView(mLithoView);

  mParent = new FrameLayout(mContext.getAndroidContext());
  mParent.setLeft(0);
  mParent.setTop(0);
  mParent.setRight(10);
  mParent.setBottom(10);
  mParent.addView(mLithoView);
}
 
Example 3
Source File: IncrementalModuleTest.java    From litho with Apache License 2.0 6 votes vote down vote up
@Before
public void setup() {
  mContext = new ComponentContext(getApplicationContext());
  mLithoView = new LithoView(mContext);
  mParent = new FrameLayout(mContext.getAndroidContext());
  mParent.setLeft(0);
  mParent.setTop(0);
  mParent.setRight(10);
  mParent.setBottom(10);
  mParent.addView(mLithoView);

  ComponentTestHelper.mountComponent(
      mContext, mLithoView, Column.create(mContext).build(), 100, 100);

  mIncrementalModule = new IncrementalModuleWrapper();
}
 
Example 4
Source File: IncrementalVisibilityEventsTest.java    From litho with Apache License 2.0 5 votes vote down vote up
@Before
public void setup() {
  ComponentsConfiguration.incrementalVisibilityHandling = true;
  mContext = new ComponentContext(getApplicationContext());

  mLithoView = new LithoView(mContext);
  mParent = new FrameLayout(mContext.getAndroidContext());
  mParent.setLeft(0);
  mParent.setTop(0);
  mParent.setRight(10);
  mParent.setBottom(10);
  mParent.addView(mLithoView);
}
 
Example 5
Source File: VisibilityEventsWithVisibilityExtensionTest.java    From litho with Apache License 2.0 5 votes vote down vote up
@Before
public void setup() {
  configVisExtension = ComponentsConfiguration.useVisibilityExtension;
  ComponentsConfiguration.useVisibilityExtension = mUseVisibilityExtensionInMountState;
  mContext = mLithoViewRule.getContext();
  mLithoView = new LithoView(mContext, mUseMountDelegateTarget, false);
  mLithoViewRule.useLithoView(mLithoView);

  mParent = new FrameLayout(mContext.getAndroidContext());
  mParent.setLeft(0);
  mParent.setTop(0);
  mParent.setRight(10);
  mParent.setBottom(10);
  mParent.addView(mLithoView);
}