android – TextView没有显示在Google地图的顶部

android – TextView没有显示在Google地图的顶部,第1张

概述TextView is not displaying on the top of the screen 这是我的代码 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="ht
TextVIEw is not displaying on the top of the screen

这是我的代码

<?xml version="1.0" enCoding="utf-8"?>    <relativeLayout xmlns:androID="http://schemas.androID.com/apk/res/androID"        xmlns:tools="http://schemas.androID.com/tools"        androID:layout_wIDth="fill_parent"        androID:layout_height="fill_parent"        tools:context=".MainActivity" >        <TextVIEw            androID:ID="@+ID/distance"            androID:layout_wIDth="wrap_content"            androID:layout_height="wrap_content"            androID:layout_alignParenttop="true" />        <RadioGroup            androID:ID="@+ID/rg_modes"            androID:layout_wIDth="wrap_content"            androID:layout_height="wrap_content"            androID:layout_alignParentBottom="true"            androID:orIEntation="horizontal" >            <Radiobutton                androID:ID="@+ID/rb_driving"                androID:layout_wIDth="wrap_content"                androID:layout_height="wrap_content"                androID:checked="true"                androID:text="@string/str_rb_driving" />            <Radiobutton                androID:ID="@+ID/rb_walking"                androID:layout_wIDth="wrap_content"                androID:layout_height="wrap_content"                androID:text="@string/str_rb_walking" />            <Radiobutton                androID:ID="@+ID/tv_distance_time"                androID:layout_wIDth="wrap_content"                androID:layout_height="wrap_content"                androID:text="distance" />        </RadioGroup>        <fragment            androID:ID="@+ID/map"            androID:name="com.Google.androID.gms.maps.SupportMapFragment"            androID:layout_wIDth="wrap_content"            androID:layout_height="match_parent"            androID:layout_above="@ID/rg_modes" />    </relativeLayout>
解决方法 添加androID:layout_below =“@ ID / distance”作为属性Fragment xml如下…

<fragment    androID:ID="@+ID/map"    androID:name="com.Google.androID.gms.maps.SupportMapFragment"    androID:layout_wIDth="wrap_content"    androID:layout_height="match_parent"    androID:layout_above="@ID/rg_modes"    androID:layout_below="@+ID/distance" />
总结

以上是内存溢出为你收集整理的android – TextView没有显示在Google地图顶部全部内容,希望文章能够帮你解决android – TextView没有显示在Google地图的顶部所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1127573.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存