Newer
Older
NemophilaClient / app / src / main / res / layout / activity_main.xml
r-nishimura on 20 Jun 2023 2 KB バグ修正
<?xml version="1.0" encoding="utf-8"?>

<FrameLayout 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_width="match_parent"
    android:layout_height="match_parent">

    <fragment
        android:id="@+id/map"
        android:name="com.google.android.gms.maps.SupportMapFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context=".MainActivity" />

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

<!--    現在地ボタン クリックで画面中央を現在地に移動-->
        <ImageButton
            android:id="@+id/currentButton"
            android:layout_width="50dp"
            android:layout_height="50dp"
            map:srcCompat="@drawable/ic_current_location"
            android:layout_alignParentBottom="true"
            android:layout_alignParentRight="true"
            android:layout_marginBottom="30dp"
            android:layout_marginRight="20dp"
            />

        <ImageButton
            android:id="@+id/myPageButton"
            android:layout_width="50dp"
            android:layout_height="50dp"
            android:layout_alignParentTop="true"
            android:layout_alignParentRight="true"
            android:layout_marginTop="20dp"
            android:layout_marginRight="20dp"
            map:srcCompat="@android:drawable/ic_menu_info_details" />


    </RelativeLayout>




<!--    <TextView-->
<!--        android:id="@+id/text_view1"-->
<!--        android:layout_width="match_parent"-->
<!--        android:layout_height="wrap_content"-->
<!--        android:text="hello"/>-->

<!--    <TextView-->
<!--        android:id="@+id/text_view2"-->
<!--        android:layout_width="match_parent"-->
<!--        android:layout_height="wrap_content"-->
<!--        android:layout_gravity="center_vertical"-->
<!--        android:text="hello"/>-->

</FrameLayout>