title: Error inflating class com.lamudi.phonefield.PhoneInputLayout in popupwindow
body: <p>In my android app, I used  compile ('com.lamudi.phonefield:phone-field:0.1.3@aar') library it will perfectly worked on activity layout. Problem is that it will not open in popup window i got error regarding xml layout. </p>
  
  <p><a href="https://i.stack.imgur.com/xNStr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xNStr.png" alt="enter image description here"></a></p>
  
  <p>XML layout</p>
  
  <pre><code>        &lt;com.lamudi.phonefield.PhoneInputLayout
          android:id="@+id/phone_input_layout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" /&gt;
  </code></pre>
  
  <p>Java source code</p>
  
  <pre><code>public class PopupActivity extends Activity {
  
  private Context mContext;
  private Activity mActivity;
  private android.widget.PopupWindow mPopupWindow;
  private LinearLayout mBirthdetail;
  
  @RequiresApi(api = Build.VERSION_CODES.N)
  @Override
  protected void onCreate(@Nullable Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_popup);
  
      mContext = getApplicationContext();
  
      // Get the activity
      mActivity = PopupActivity.this;
  
      LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(LAYOUT_INFLATER_SERVICE);
  
      // Inflate the custom layout/view
      View customView = inflater.inflate(R.layout.raw_birthdate, null);
  
      mBirthdetail = (LinearLayout) findViewById(R.id.birth_detail);
  
      mPopupWindow = new android.widget.PopupWindow(
              customView,
              ViewGroup.LayoutParams.WRAP_CONTENT,
              ViewGroup.LayoutParams.WRAP_CONTENT
      );
      // mPopupWindow.setContentView(findViewById(R.id.demo));
  
      mPopupWindow.setAnimationStyle(R.style.PopupAnimation);
  
  
      if (Build.VERSION.SDK_INT &gt;= 21) {
          mPopupWindow.setElevation(5.0f);
      }
  
      mPopupWindow.setFocusable(true);
      mPopupWindow.update();
      mPopupWindow.setOutsideTouchable(false);
  
      final PhoneInputLayout phoneInputLayout = (PhoneInputLayout) customView.findViewById(R.id.phone_input_layout);
  
      phoneInputLayout.setHint(R.string.phone_hint);
  
      phoneInputLayout.setDefaultCountry("DE");
  
      String phoneNumber = phoneInputLayout.getPhoneNumber();
  
  
      new Handler().postDelayed(new Runnable() {
  
          public void run() {
              mPopupWindow.showAtLocation(mBirthdetail, Gravity.CENTER, 0, 0);
          }
  
      }, 100L);
  }
  
  @Override
  protected void onStop() {
      super.onStop();
      mPopupWindow.dismiss();
  }
  </code></pre>
  
  <p>}</p>