You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
Many of these classes are only needed to be subclassed by androidx support library, which is used in many android apps
47 lines
1.1 KiB
Java
47 lines
1.1 KiB
Java
package android.widget;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
|
|
public class LinearLayout extends ViewGroup {
|
|
|
|
boolean orientation;
|
|
|
|
public LinearLayout(Context context, AttributeSet attrs) {
|
|
super(context, 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 {
|
|
public LayoutParams(int width, int height) {
|
|
super(width, height);
|
|
}
|
|
|
|
public LayoutParams(int width, int height, float weight) {
|
|
super(width, height, weight);
|
|
}
|
|
}
|
|
}
|