2016-08-18 2 views
0

위치 기반 알림을 설정하는 안드로이드 응용 프로그램이 있습니다. 알람을 추가하면 다음과 같이 표시됩니다.어떤 요소를 사용했는지 알 수 없습니까? ...?

enter image description here

내가 모두 작은지도와 텍스트를 표시하는 데 사용되는 구성 요소를 이해할 수 없습니다. 또한 작은지도에는지도에서 선택한 위치가 있습니다. 비슷한 응용 프로그램을 개발 중이며이 유형의 디스플레이 기능을 사용하고 싶습니다.

+0

해당 애플리케이션의 소스 코드를 가지고 있습니까? –

+0

대답은 물론 아니오입니다. –

+0

작은지도는 RelativeLayout 또는 다른 레이아웃 아래에 보관 된 MapView입니다. – Chandrakanth

답변

-1

저에게 라이트 모드 Google지도처럼 보입니다.

이 비디오는 인터넷에서 가장 잘 설명되는 것으로, 내가 생각하는 사용 사례를 다룹니다. https://youtu.be/N0N1Xkc_1pU

현재 다른 유사한 질문에 대한 내 대답을 확인할 수 있습니다 : https://stackoverflow.com/a/39462819/3456841가 여기에 주제에 구글 개발자 페이지의

https://developers.google.com/maps/documentation/android-api/lite

또한 여기에 라이트 맵을 사용하는 데모 활동에 대한 링크입니다 목록 https://github.com/googlemaps/android-samples/blob/master/ApiDemos/app/src/main/java/com/example/mapdemo/LiteListDemoActivity.java

아마도 목록 항목 레이아웃 파일은

과 비슷할 것입니다.
<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:orientation="vertical" 
android:layout_width="match_parent" 
android:layout_height="match_parent"> 

<LinearLayout 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:orientation="vertical" 
    android:layout_toLeftOf="@+id/map"> 
    <TextView 
     android:id="@+id/title" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" /> 
    <TextView 
     android:id="@+id/location" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" /> 
    <TextView 
     android:id="@+id/created_at" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" /> 
</LinearLayout> 

<fragment 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:map="http://schemas.android.com/apk/res-auto" 
    android:name="com.google.android.gms.maps.MapFragment" 
    android:id="@+id/map" 
    android:layout_width="80dp" 
    android:layout_height="80dp" 
    android:layout_alignParentRight="true" 
    map:cameraZoom="13" 
    map:mapType="normal" 
    map:liteMode="true"/> 

</RelativeLayout> 

지도 단편 선언에서지도 : liteMode = "true"에 유의하십시오.