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;
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) {
tabView.setText(text);
mTabLayout.addView(tabView, new LinearLayout.LayoutParams(0,
- FILL_PARENT, 1));
+ LayoutParams.MATCH_PARENT, 1));
}
@Override
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