diff options
| author | Romain Guy <romainguy@android.com> | 2010-01-08 15:05:33 -0800 |
|---|---|---|
| committer | Romain Guy <romainguy@android.com> | 2010-01-08 15:11:18 -0800 |
| commit | 74192eafec8408417114d77784cd35eda5df573c (patch) | |
| tree | fac15940efc0fdc38b8bdc44d4c3dc6efa474aab /apps/Development/src | |
| parent | b4e39aebf6b27aa0ed094a75bde8b2bacda28d98 (diff) | |
| download | android_development-74192eafec8408417114d77784cd35eda5df573c.tar.gz android_development-74192eafec8408417114d77784cd35eda5df573c.tar.bz2 android_development-74192eafec8408417114d77784cd35eda5df573c.zip | |
Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
Diffstat (limited to 'apps/Development/src')
| -rw-r--r-- | apps/Development/src/com/android/development/Details.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/Development/src/com/android/development/Details.java b/apps/Development/src/com/android/development/Details.java index 16722a3ab..e0da96148 100644 --- a/apps/Development/src/com/android/development/Details.java +++ b/apps/Development/src/com/android/development/Details.java @@ -27,7 +27,6 @@ import android.widget.ScrollView; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; -import android.view.View; import android.view.ViewGroup; import android.widget.TextView; @@ -75,8 +74,8 @@ public class Details extends Activity } mLinearLayout = new LinearLayout(this); mScrollView.addView(mLinearLayout, new ViewGroup.LayoutParams( - ViewGroup.LayoutParams.FILL_PARENT, - ViewGroup.LayoutParams.FILL_PARENT)); + ViewGroup.LayoutParams.MATCH_PARENT, + ViewGroup.LayoutParams.MATCH_PARENT)); mLinearLayout.setOrientation(LinearLayout.VERTICAL); // Here in onStart, we're given data. We use that because some @@ -109,7 +108,7 @@ public class Details extends Activity LinearLayout.LayoutParams lazy() { - return new LinearLayout.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, + return new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT, 0); } |
