diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2015-07-29 15:08:17 -0700 |
---|---|---|
committer | Deepanshu Gupta <deepanshu@google.com> | 2015-07-29 15:34:47 -0700 |
commit | 9bf4b6f8c0a0d28402894b7a9660e8aced47545b (patch) | |
tree | 0d1adb8ecea962352c80f2e94c7c98c47a21b8ba | |
parent | 78aa664b027dbcebb0d0dc1dca9f3a8172d9a78c (diff) | |
download | frameworks_base-9bf4b6f8c0a0d28402894b7a9660e8aced47545b.zip frameworks_base-9bf4b6f8c0a0d28402894b7a9660e8aced47545b.tar.gz frameworks_base-9bf4b6f8c0a0d28402894b7a9660e8aced47545b.tar.bz2 |
Add MockView constructor used by LayoutInflater.
Change-Id: I0aede28866c1b87fb66c8a416c5026a9b2cb04fe
-rw-r--r-- | tools/layoutlib/bridge/src/com/android/layoutlib/bridge/MockView.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/MockView.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/MockView.java index 4a9f718..44a9aad 100644 --- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/MockView.java +++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/MockView.java @@ -30,6 +30,10 @@ import android.widget.TextView; */ public class MockView extends TextView { + public MockView(Context context, AttributeSet attrs) { + this(context, attrs, 0); + } + public MockView(Context context, AttributeSet attrs, int defStyle) { this(context, attrs, defStyle, 0); } |