summaryrefslogtreecommitdiff
path: root/AndroidNative
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@gmail.com>2017-05-04 02:52:41 (GMT)
committerE.Z. Hart <hartez@gmail.com>2017-05-04 02:52:41 (GMT)
commit40dff0a54cd718747f280b808dc08aa7efb83f4c (patch)
tree98350697838ef7eae86a130a6a5dc9a184aef11a /AndroidNative
parent20bfa5b5038ef3357f6048b1cb13105033650069 (diff)
downloadxamarin-forms-40dff0a54cd718747f280b808dc08aa7efb83f4c.zip
xamarin-forms-40dff0a54cd718747f280b808dc08aa7efb83f4c.tar.gz
xamarin-forms-40dff0a54cd718747f280b808dc08aa7efb83f4c.tar.bz2
Correct version of FormsViewGroup.java
Diffstat (limited to 'AndroidNative')
-rw-r--r--AndroidNative/FormsViewGroup/src/com/xamarin/forms/platform/android/FormsViewGroup.java106
1 files changed, 8 insertions, 98 deletions
diff --git a/AndroidNative/FormsViewGroup/src/com/xamarin/forms/platform/android/FormsViewGroup.java b/AndroidNative/FormsViewGroup/src/com/xamarin/forms/platform/android/FormsViewGroup.java
index 3abf452..6f7cd93 100644
--- a/AndroidNative/FormsViewGroup/src/com/xamarin/forms/platform/android/FormsViewGroup.java
+++ b/AndroidNative/FormsViewGroup/src/com/xamarin/forms/platform/android/FormsViewGroup.java
@@ -1,106 +1,18 @@
package com.xamarin.forms.platform.android;
import android.content.Context;
+import android.content.res.ColorStateList;
+import android.graphics.Color;
+import android.graphics.Typeface;
+import android.os.Build;
+import android.text.TextUtils;
import android.util.AttributeSet;
+import android.util.TypedValue;
import android.view.ViewGroup;
import android.view.*;
+import android.widget.TextView;
-
-public class FormsViewGroup extends ViewGroup {
-
- public FormsViewGroup(Context context) {
- super(context);
- // TODO Auto-generated constructor stub
- }
-
- public FormsViewGroup(Context context, AttributeSet attrs) {
- super(context, attrs);
- // TODO Auto-generated constructor stub
- }
-
- public FormsViewGroup(Context context, AttributeSet attrs, int defStyle) {
- super(context, attrs, defStyle);
- // TODO Auto-generated constructor stub
- }
-
- public void measureAndLayout (int widthMeasureSpec, int heightMeasureSpec, int l, int t, int r, int b)
- {
- measure (widthMeasureSpec, heightMeasureSpec);
- layout (l, t, r, b);
- }
-
- @Override
- protected void onLayout(boolean changed, int l, int t, int r, int b) {
- }
-
- boolean inputTransparent;
-
- protected void setInputTransparent (boolean value)
- {
- inputTransparent = value;
- }
-
- protected boolean getInputTransparent ()
- {
- return inputTransparent;
- }
-
- @Override
- public boolean onInterceptTouchEvent (MotionEvent ev)
- {
- if (inputTransparent)
- return false;
-
- return super.onInterceptTouchEvent(ev);
- }
-
- @Override
- public boolean onTouchEvent (MotionEvent ev)
- {
- if (inputTransparent)
- return false;
-
- return super.onTouchEvent(ev);
- }
-
- public void sendBatchUpdate (
- float pivotX,
- float pivotY,
- int visibility,
- boolean enabled,
- float opacity,
- float rotation,
- float rotationX,
- float rotationY,
- float scale,
- float translationX,
- float translationY){
- setPivotX (pivotX);
- setPivotY (pivotY);
-
- if (getVisibility () != visibility)
- setVisibility (visibility);
-
- if (isEnabled () != enabled)
- setEnabled (enabled);
-
- setAlpha (opacity);
- setRotation (rotation);
- setRotationX (rotationX);
- setRotationY (rotationY);
- setScaleX (scale);
- setScaleY (scale);
- setTranslationX (translationX);
- setTranslationY (translationY);
- }
-
- package com.xamarin.forms.platform.android;
-
-import android.content.Context;
-import android.util.AttributeSet;
-import android.view.ViewGroup;
-import android.view.*;
-
+import static android.R.attr.pivotX;
public class FormsViewGroup extends ViewGroup {
@@ -222,5 +134,3 @@ public class FormsViewGroup extends ViewGroup {
view.setTranslationY (translationY);
}
}
-
-}