Add START_OF to LayoutCompat.RelativeLayout
This commit is contained in:
parent
66563d30d9
commit
0fba2c255e
@ -14,9 +14,11 @@ public abstract class LayoutCompat extends Compatibility {
|
|||||||
|
|
||||||
private static final LayoutCompat impl = LayoutCompat.create();
|
private static final LayoutCompat impl = LayoutCompat.create();
|
||||||
|
|
||||||
|
protected abstract int relativeLayoutStartOf();
|
||||||
protected abstract int relativeLayoutEndOf();
|
protected abstract int relativeLayoutEndOf();
|
||||||
|
|
||||||
public static class RelativeLayout {
|
public static class RelativeLayout {
|
||||||
|
public static final int START_OF = impl.relativeLayoutStartOf();
|
||||||
public static final int END_OF = impl.relativeLayoutEndOf();
|
public static final int END_OF = impl.relativeLayoutEndOf();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,6 +26,11 @@ public abstract class LayoutCompat extends Compatibility {
|
|||||||
|
|
||||||
class OldLayoutCompatImpl extends LayoutCompat {
|
class OldLayoutCompatImpl extends LayoutCompat {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int relativeLayoutStartOf() {
|
||||||
|
return android.widget.RelativeLayout.LEFT_OF;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int relativeLayoutEndOf() {
|
protected int relativeLayoutEndOf() {
|
||||||
return android.widget.RelativeLayout.RIGHT_OF;
|
return android.widget.RelativeLayout.RIGHT_OF;
|
||||||
@ -33,6 +40,11 @@ class OldLayoutCompatImpl extends LayoutCompat {
|
|||||||
@TargetApi(17)
|
@TargetApi(17)
|
||||||
class JellyBeanMr1LayoutCompatImpl extends LayoutCompat {
|
class JellyBeanMr1LayoutCompatImpl extends LayoutCompat {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int relativeLayoutStartOf() {
|
||||||
|
return android.widget.RelativeLayout.START_OF;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int relativeLayoutEndOf() {
|
protected int relativeLayoutEndOf() {
|
||||||
return android.widget.RelativeLayout.END_OF;
|
return android.widget.RelativeLayout.END_OF;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user