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 LinearLayout extends ViewGroup {
|
|
|
|
|
|
|
|
|
|
boolean orientation;
|
|
|
|
|
|
|
|
|
|
public LinearLayout(AttributeSet attrs) {
|
|
|
|
|
super(attrs);
|
|
|
|
|
|
|
|
|
|
native_constructor(attrs);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public LinearLayout(Context context) {
|
|
|
|
|
super(context);
|
|
|
|
|
|
|
|
|
|
native_constructor(context);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private native void native_constructor(AttributeSet attrs);
|
|
|
|
|
private native void native_constructor(Context context);
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public native void addView(View child, int index, ViewGroup.LayoutParams params);
|
|
|
|
|
@Override
|
|
|
|
|
public native void removeView(View view);
|
|
|
|
|
@Override
|
|
|
|
|
public native void removeAllViews();
|
|
|
|
|
|
|
|
|
|
public native void setOrientation(int orientation);
|
|
|
|
|
public void setWeightSum(float weightSum) {}
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|