如何在android libraries places小部件的片段中添加按钮和文本视图

如何在android libraries places小部件的片段中添加按钮和文本视图,android,google-maps,android-layout,android-fragments,Android,Google Maps,Android Layout,Android Fragments,我正在尝试实现下面的图像,我如何在片段android.libraries.places.widget中实现我尝试使用相对布局,但它没有显示在places widget中,有人可以建议一些好的源代码来实现它,或者是否有任何其他布局可以用于实现它 我尝试的Xml: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/androi

我正在尝试实现下面的图像,我如何在片段android.libraries.places.widget中实现我尝试使用相对布局,但它没有显示在places widget中,有人可以建议一些好的源代码来实现它,或者是否有任何其他布局可以用于实现它

我尝试的Xml:

  <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Maps.MapsAddress" >


<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_marginTop="10dp"
android:id="@+id/autocomplete_fragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:name="com.google.android.libraries.places.
widget.AutocompleteSup   portFragment"/>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Chetpet Chennai"
android:textSize="14sp"
android:id="@+id/toolbar_address">
</TextView>

</FrameLayout>


根布局使用:相对

搜索栏布局可以使用searchview或浮动searchview(外部库)

设备位置可以使用相对布局,以便将图标放置在父设备的开头,等等

保存的地址可以使用表布局

将id指定给不同的布局,以便可以将布局堆叠在根相对布局的内部