more fill_parent -> match_parent
authorkenstir <kenstir@gmail.com>
Tue, 10 Dec 2013 01:56:54 +0000 (20:56 -0500)
committerkenstir <kenstir@gmail.com>
Tue, 10 Dec 2013 01:56:54 +0000 (20:56 -0500)
Open-ILS/src/Android/core/src/org/evergreen/android/utils/ui/TabPageIndicator.java
Open-ILS/src/Android/core/src/org/evergreen/android/utils/ui/TestFragment.java

index 75c5874..2f39281 100644 (file)
@@ -20,8 +20,7 @@
 
 package org.evergreen.android.utils.ui;
 
-import static android.view.ViewGroup.LayoutParams.FILL_PARENT;
-import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
+import static android.view.ViewGroup.LayoutParams;
 
 import org.evergreen.android.R;
 
@@ -90,8 +89,7 @@ public class TabPageIndicator extends HorizontalScrollView implements
         setHorizontalScrollBarEnabled(false);
 
         mTabLayout = new LinearLayout(getContext());
-        addView(mTabLayout, new ViewGroup.LayoutParams(WRAP_CONTENT,
-                FILL_PARENT));
+        addView(mTabLayout, new ViewGroup.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT));
     }
 
     public void setOnTabReselectedListener(OnTabReselectedListener listener) {
@@ -167,7 +165,7 @@ public class TabPageIndicator extends HorizontalScrollView implements
         tabView.setText(text);
 
         mTabLayout.addView(tabView, new LinearLayout.LayoutParams(0,
-                FILL_PARENT, 1));
+                LayoutParams.MATCH_PARENT, 1));
     }
 
     @Override
index d8f6af0..b29c288 100644 (file)
@@ -67,8 +67,8 @@ public final class TestFragment extends Fragment {
         text.setPadding(20, 20, 20, 20);\r
 \r
         LinearLayout layout = new LinearLayout(getActivity());\r
-        layout.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\r
-                LayoutParams.FILL_PARENT));\r
+        layout.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,\r
+                LayoutParams.MATCH_PARENT));\r
         layout.setGravity(Gravity.CENTER);\r
         layout.addView(text);\r
 \r