Пример #1
0
  /**
   * Specifies the component's vertical height, measured in pixels.
   *
   * @param height in pixels
   */
  @Override
  @SimpleProperty(userVisible = true)
  public void Height(int height) {
    super.Height(height);

    // Forces a layout of the ResizableVideoView
    videoView.changeVideoSize(videoView.forcedWidth, height);
  }
Пример #2
0
 @Override
 @SimpleProperty()
 public void Height(int height) {
   if (height == LENGTH_PREFERRED) {
     height = LENGTH_FILL_PARENT;
   }
   super.Height(height);
 }
 /**
  * Sets the height of the listView on the screen
  *
  * @param height for height length
  */
 @Override
 @SimpleProperty(
     description = "Determines the height of the list on the view.",
     category = PropertyCategory.APPEARANCE)
 public void Height(int height) {
   if (height == LENGTH_PREFERRED) {
     height = LENGTH_FILL_PARENT;
   }
   super.Height(height);
 }