get screen width and heigh at fragement
===

if i ectends activity in my app i can use:

    DisplayMetrics displaymetrics = new DisplayMetrics();
    getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
    int height = displaymetrics.heightPixels;
    int wwidth = displaymetrics.widthPixels;

  or

   Display display = getWindowManager().getDefaultDisplay(); 
   stageWidth = display.getWidth();
    stageHeight = display.getHeigth();
  so i can use  get width and height,but at  present i extends fragement the above code not allow use,how to get the width