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
api-impl: add TableLayout from AOSP
This commit is contained in:
@@ -360,12 +360,16 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
||||
|
||||
public LayoutParams(Context context, AttributeSet attrs) {
|
||||
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ViewGroup_Layout);
|
||||
width = a.getLayoutDimension(R.styleable.ViewGroup_Layout_layout_width, "layout_width");
|
||||
height = a.getLayoutDimension(R.styleable.ViewGroup_Layout_layout_height, "layout_height");
|
||||
setBaseAttributes(a, R.styleable.ViewGroup_Layout_layout_width, R.styleable.ViewGroup_Layout_layout_height);
|
||||
this.gravity = attrs.getAttributeIntValue("http://schemas.android.com/apk/res/android", "layout_gravity", -1);
|
||||
a.recycle();
|
||||
}
|
||||
|
||||
protected void setBaseAttributes(TypedArray a, int widthAttr, int heightAttr) {
|
||||
width = a.getLayoutDimension(widthAttr, "layout_width");
|
||||
height = a.getLayoutDimension(heightAttr, "layout_height");
|
||||
}
|
||||
|
||||
public void resolveLayoutDirection(int layoutDirection) {}
|
||||
|
||||
/**
|
||||
|
||||
781
src/api-impl/android/widget/TableLayout.java
Normal file
781
src/api-impl/android/widget/TableLayout.java
Normal file
File diff suppressed because it is too large
Load Diff
547
src/api-impl/android/widget/TableRow.java
Normal file
547
src/api-impl/android/widget/TableRow.java
Normal file
File diff suppressed because it is too large
Load Diff
@@ -441,6 +441,8 @@ hax_jar = jar('hax', [
|
||||
'android/widget/Spinner.java',
|
||||
'android/widget/SpinnerAdapter.java',
|
||||
'android/widget/Switch.java',
|
||||
'android/widget/TableLayout.java',
|
||||
'android/widget/TableRow.java',
|
||||
'android/widget/TextView.java',
|
||||
'android/widget/Toast.java',
|
||||
'android/widget/Toolbar.java',
|
||||
|
||||
Reference in New Issue
Block a user