Replace the deprecated FILL_PARENT by MATCH_PARENT
This commit is contained in:
parent
bbca04c79b
commit
a03053e80a
@ -114,7 +114,7 @@ public class CanUpdateAppsFragment extends AppListFragment {
|
|||||||
ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
|
ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
root.addView(pframe, new FrameLayout.LayoutParams(
|
root.addView(pframe, new FrameLayout.LayoutParams(
|
||||||
ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));
|
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
@ -125,7 +125,7 @@ public class CanUpdateAppsFragment extends AppListFragment {
|
|||||||
tv.setId(INTERNAL_EMPTY_ID);
|
tv.setId(INTERNAL_EMPTY_ID);
|
||||||
tv.setGravity(Gravity.CENTER);
|
tv.setGravity(Gravity.CENTER);
|
||||||
lframe.addView(tv, new FrameLayout.LayoutParams(
|
lframe.addView(tv, new FrameLayout.LayoutParams(
|
||||||
ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));
|
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
|
||||||
|
|
||||||
// Added update all button
|
// Added update all button
|
||||||
LinearLayout linearLayout = new LinearLayout(context);
|
LinearLayout linearLayout = new LinearLayout(context);
|
||||||
@ -138,24 +138,24 @@ public class CanUpdateAppsFragment extends AppListFragment {
|
|||||||
getResources().getDrawable(R.drawable.ic_menu_refresh), null, null, null);
|
getResources().getDrawable(R.drawable.ic_menu_refresh), null, null, null);
|
||||||
|
|
||||||
linearLayout.addView(mUpdateAllButton, new FrameLayout.LayoutParams(
|
linearLayout.addView(mUpdateAllButton, new FrameLayout.LayoutParams(
|
||||||
ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
|
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
ListView lv = new ListView(getActivity());
|
ListView lv = new ListView(getActivity());
|
||||||
lv.setId(android.R.id.list);
|
lv.setId(android.R.id.list);
|
||||||
lv.setDrawSelectorOnTop(false);
|
lv.setDrawSelectorOnTop(false);
|
||||||
linearLayout.addView(lv, new FrameLayout.LayoutParams(
|
linearLayout.addView(lv, new FrameLayout.LayoutParams(
|
||||||
ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));
|
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
|
||||||
|
|
||||||
lframe.addView(linearLayout, new FrameLayout.LayoutParams(
|
lframe.addView(linearLayout, new FrameLayout.LayoutParams(
|
||||||
ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));
|
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
|
||||||
|
|
||||||
root.addView(lframe, new FrameLayout.LayoutParams(
|
root.addView(lframe, new FrameLayout.LayoutParams(
|
||||||
ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));
|
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
root.setLayoutParams(new FrameLayout.LayoutParams(
|
root.setLayoutParams(new FrameLayout.LayoutParams(
|
||||||
ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));
|
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
|
||||||
|
|
||||||
return root;
|
return root;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user