Tecnologia do Blogger.
RSS

[androidbrasil-dev] Erro ao usar Maps com Fragment

Bom dia.


Galera tenho uma tela de detalhes (ViewPager + Fragment) onde exibo as informações de uma viagem, uma das informações é um mapa;

Já procurei muito uma solução mas até agora nenhuma funcionou para a minha situação.

Usando o mesmo código em uma Activity funciona bem mas quando tento usar mapa em um fragment tenho os seguintes erros.

android.view.InflateException: Binary XML file line #90: Error inflating class fragment

Caused by: java.lang.IllegalArgumentException: Binary XML file line #90: Duplicate id 0x7f0f0045, tag null, or parent id 0x0 with another fragment for com.google.android.gms.maps.SupportMapFragment

O meu xml estar assim..

            <fragment

                android:id="@+id/map"

                android:name="com.google.android.gms.maps.SupportMapFragment"

                android:layout_width="match_parent"

                android:layout_height="150dp" />


Alguém já passou por isso? O Erro acontece quando o vai inflating no onCreatView.

Obrigado.. 




--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário