2022-10-02 23:06:56 +02:00
|
|
|
package android.widget;
|
|
|
|
|
|
|
|
|
|
import android.content.Context;
|
2023-06-22 11:45:46 +02:00
|
|
|
import android.util.AttributeSet;
|
2022-10-02 23:06:56 +02:00
|
|
|
import android.view.View;
|
2023-06-22 11:45:46 +02:00
|
|
|
import android.view.ViewGroup;
|
2022-10-02 23:06:56 +02:00
|
|
|
import android.view.ViewGroup.LayoutParams;
|
|
|
|
|
|
|
|
|
|
public class RelativeLayout extends ViewGroup {
|
|
|
|
|
|
|
|
|
|
boolean orientation;
|
|
|
|
|
|
2023-07-14 18:02:04 +02:00
|
|
|
public RelativeLayout(Context context, AttributeSet attrs) {
|
|
|
|
|
super(context, attrs);
|
2022-10-02 23:06:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public RelativeLayout(Context context) {
|
|
|
|
|
super(context);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2023-08-17 12:59:37 +02:00
|
|
|
protected native long native_constructor(Context context, AttributeSet attrs);
|
|
|
|
|
@Override
|
|
|
|
|
protected native void native_addView(long widget, long child, int index, ViewGroup.LayoutParams params);
|
|
|
|
|
@Override
|
|
|
|
|
protected native void native_removeView(long widget, long child);
|
2022-10-02 23:06:56 +02:00
|
|
|
|
|
|
|
|
public static class LayoutParams extends ViewGroup.LayoutParams {
|
2023-06-22 11:45:46 +02:00
|
|
|
public LayoutParams(int width, int height) {
|
2022-10-02 23:06:56 +02:00
|
|
|
super(width, height);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public LayoutParams(int width, int height, float weight) {
|
|
|
|
|
super(width, height, weight);
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-18 11:03:43 +02:00
|
|
|
public LayoutParams(ViewGroup.MarginLayoutParams source) {
|
|
|
|
|
super(source.width, source.height, source.weight);
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-02 23:06:56 +02:00
|
|
|
public void addRule(int verb) {}
|
|
|
|
|
public void addRule(int verb, int anchor) {}
|
|
|
|
|
}
|
|
|
|
|
}
|