title: edit text not showing in frame layout
body: <p>I am implementing google map API by creating the fragment on runtime in a frame layout, after that I added a button on top of map and it showed fine but when I added an edit text it is not showing , although I have declared and initialized it in my activity class.</p>
  <p>here is my xml code</p>
  <pre><code> &lt;FrameLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:orientation=&quot;vertical&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:id=&quot;@+id/map_placeholder&quot;&gt;
  
  
     
          &lt;EditText
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_marginTop=&quot;20dp&quot;
              android:id=&quot;@+id/search_text&quot;
              android:hint=&quot;Enter Location&quot;
              android:textColor=&quot;#000&quot;/&gt;
  
          &lt;Button
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:text=&quot;Search location&quot;
              android:id=&quot;@+id/btn_srch_1&quot;
              android:layout_marginTop=&quot;60dp&quot;/&gt;
  
          &lt;Button
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:id=&quot;@+id/btn_set_1&quot;
              android:layout_marginTop=&quot;500dp&quot;
              android:text=&quot;Set location&quot;/&gt;
      
  
   
          &lt;/FrameLayout&gt;
  
  
  </code></pre>
  <p>and here is my activity class code</p>
  <p>Mapactivity.cs</p>
  <pre><code>using Android.Gms.Maps;
  using Android.Gms.Maps.Model;
  using Android.OS;
  using Android.Support.V4.App;
  using Android.Widget;
  using System;
  using Xamarin.Essentials;
  
  namespace FinalProject_PU
  {
      [Activity(Label = &quot;MapActivity&quot;, MainLauncher = true)]
          
      public class MapActivity : Activity, IOnMapReadyCallback, ILocationSourceOnLocationChangedListener
      {
       
          private MapFragment map1;
          Button set_location, srch_button;
          EditText srch_text;
          private GoogleMap googleMap;
          LatLng Final_Position;
  
          protected override void OnCreate(Bundle savedInstanceState)
          {
  
              base.OnCreate(savedInstanceState);
  
              // Create your application here
  
              SetContentView(Resource.Layout.Locations);
              //initializing components
              set_location = FindViewById&lt;Button&gt;(Resource.Id.btn_set_1);
              srch_button = FindViewById&lt;Button&gt;(Resource.Id.btn_srch_1);
              srch_text = FindViewById&lt;EditText&gt;(Resource.Id.search_text);
  
              Xamarin.Essentials.Platform.Init(this, savedInstanceState);
              map1 = MapFragment.NewInstance();
              var ft = FragmentManager.BeginTransaction();
              ft.Add(Resource.Id.map_placeholder, map1).Commit();
              map1.GetMapAsync(this);
  
              //setting on click events
              set_location.Click += Set_location_Click;
              srch_button.Click += Srch_button_Click;
  
          }
  
          //search button
          private async void Srch_button_Click(object sender, EventArgs e)
          {
              Location loc = (Location)await Geocoding.GetLocationsAsync(srch_text.Text);
              LatLng latlng_src = new LatLng(loc.Latitude, loc.Longitude);
              MarkerOptions mo = new MarkerOptions();
              mo.SetPosition(latlng_src);
              mo.Draggable(true);
  
              googleMap.AddMarker(mo);
              CameraUpdate camup = CameraUpdateFactory.NewLatLngZoom(latlng_src, 17);
              googleMap.MoveCamera(camup);
          }
  
          private void Set_location_Click(object sender, EventArgs e)
          {
              try
              {
                  string pos = Final_Position.Latitude.ToString() + &quot;%%%&quot; + Final_Position.Longitude.ToString();
                  Toast.MakeText(this, pos, ToastLength.Long).Show();
              }
              catch (Exception)
              {
                  Android.App.AlertDialog.Builder dialog = new AlertDialog.Builder(this);
                  AlertDialog alert = dialog.Create();
                  alert.SetTitle(&quot;Select Location&quot;);
                  alert.SetMessage(&quot;Please select issue location by dragging pin on Issue Location&quot;);
                  alert.SetButton(&quot;OK&quot;, (c, ev) =&gt;
                  {
                      alert.Dismiss();
                  });
                  alert.Show();
              }
              
              
          }
  
          public async void OnMapReady(GoogleMap mapp)
          {
              googleMap=mapp;
              googleMap.MapType = GoogleMap.MapTypeHybrid;
  
              var location = await Geolocation.GetLocationAsync(new GeolocationRequest
              {
                  DesiredAccuracy = GeolocationAccuracy.Medium,
                  Timeout = TimeSpan.FromSeconds(10)
              });
  
              if (location != null)
              {
                  LatLng loc = new LatLng(location.Latitude, location.Longitude + 0.002);
                  LatLng loc1 = new LatLng(location.Latitude, location.Longitude);
  
                  CameraUpdate cam = CameraUpdateFactory.NewLatLngZoom(loc, 17);
                  MarkerOptions m = new MarkerOptions();
                  m.Draggable(true);
                  m.SetPosition(loc);
                  int id0 = (int)typeof(Resource.Drawable).GetField(&quot;locationpoint&quot;).GetValue(null);
                  BitmapDescriptor bmd0 = BitmapDescriptorFactory.FromResource(id0);
                  m.SetIcon(bmd0);
  
  
                  MarkerOptions mo2 = new MarkerOptions();
                  mo2.SetPosition(loc1);
                  int id = (int)typeof(Resource.Drawable).GetField(&quot;locationpin&quot;).GetValue(null);
                  BitmapDescriptor bmd = BitmapDescriptorFactory.FromResource(id);
                  mo2.SetIcon(bmd);
  
  
  
                  googleMap.MoveCamera(cam);
                  googleMap.AddMarker(m);
                  googleMap.AddMarker(mo2);
                  googleMap.MarkerDragEnd += GoogleMap_MarkerDragEnd;
                
              }
  
  
      }
  
          private void GoogleMap_MarkerDragEnd(object sender, GoogleMap.MarkerDragEndEventArgs e)
          {
              Final_Position= e.Marker.Position;
          }
  
          public void OnLocationChanged(Android.Locations.Location location)
          {
  
              LatLng newloc = new LatLng(location.Latitude, location.Longitude);
              MarkerOptions m = new MarkerOptions();
              m.SetPosition(newloc);
              int id0 = (int)typeof(Resource.Drawable).GetField(&quot;locationpoint&quot;).GetValue(null);
              BitmapDescriptor bmd0 = BitmapDescriptorFactory.FromResource(id0);
              m.SetIcon(bmd0);
              googleMap.AddMarker(m);
  
  
          }
      }
  }
  </code></pre>
  <p>I have tried wrapping all the components in a relative layout
  and then putting it in the framelayout but it didn't work.</p>