Question: so I have a variable called multiplier that contains a certain value depending on what the user registered with. What I am trying to write here is

If multiplier is equal to "sedentary" then give it the value of `$sedmultiplier`

If multiplier is equal to "lightly" then give it the value of `$lightmultiplier`

Im stuck on this, can't seem to figure out how this would be written.

```
  switch ($multiplier==) {
      case "sedentary":
         $multiplier=$sedmultiplier;
         break;
     case "lightly":
         $multiplier=$lightmultiplier;
          break;
      case "moderately":
         $multiplier=$modmultiplier;
         break;
      case "very":
         $multiplier=$verymultiplier;
         break;
      case "extremely":
         $multiplier=$extrememultiplier;
         break;
      default:
          multiplier==0;
  }

```

Answer: 
The option to preview all screen sizes is not available in Android Studio 2.2 Beta 2. However, you can resize the preview screen to see how your layout would look on different screen sizes, as shown in the attached gif.

[![Android Studio 2.2 Beta 3 Preview Screen resize example ](https://i.stack.imgur.com/um1y0.gif)](https://i.stack.imgur.com/um1y0.gif)
The Previews are back!

Try this:

1. open your layout xml
2. open the new tab **Layout Validation**

If you can't find the tab, try double-shift and search for "Layout Validation".

[![enter image description here](https://i.stack.imgur.com/2s6yk.gif)](https://i.stack.imgur.com/2s6yk.gif)

([source](https://developer.android.com/studio/debug/layout-inspector#layout-validation))