Home | History | Annotate | Download | only in widget

Lines Matching defs:Direction

29  * {@link #setDirection(Direction)}. The factor is specified in {@link #setRatio(float)}.
30 * <p>For {@link Direction#heightToWidth}: width := height * factor</p>
31 * <p>For {@link Direction#widthToHeight}: height := width * factor</p>
37 public enum Direction {
43 private Direction(String xmlName) {
48 * Parses the given direction string and returns the Direction instance. This
51 public static Direction parse(String value) {
53 return Direction.widthToHeight;
55 return Direction.heightToWidth;
57 throw new IllegalStateException("direction must be either " +
63 private Direction mDirection;
83 mDirection = Direction.parse(a.getString(R.styleable.ProportionalLayout_direction));
104 if (mDirection == Direction.heightToWidth) {
131 public Direction getDirection() {
135 public void setDirection(Direction direction) {
136 mDirection = direction;