2017-02-24 23 views
0

Android搭載端末の上半分の画面でのみ地図を表示するにはどうすればよいですか?私はフラグメントを追加しますが、フルスクリーンを表示します。私はこれまでこれをしてきました。小さいAndroid画面サイズで地図を表示するにはどうすればよいですか?

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:id="@+id/activity_custom_map" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:orientation="vertical" 
    android:paddingBottom="@dimen/activity_vertical_margin" 
    android:paddingLeft="@dimen/activity_horizontal_margin" 
    android:paddingRight="@dimen/activity_horizontal_margin" 
    android:paddingTop="@dimen/activity_vertical_margin" 
    tools:context="br.com.medicomap.MapContainerActivity"> 


    <LinearLayout 
     android:orientation="vertical" 
     android:layout_width="match_parent" 
     android:layout_height="235dp" 
     android:id="@+id/containerInfo"></LinearLayout> 

    <FrameLayout 
    android:id="@+id/containerMap" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"/> 

</LinearLayout>[ 
+0

を設定しませんpercentrelativelayout使用することができますが、マーカーのクラスタリングです。ここの文書を読んでください。 https://developers.google.com/maps/documentation/android-api/utility/marker-clustering –

+0

各場所の地図は1つである必要があります。これは、例えばレストランを表示しているアプリ、住所、食べ物の種類、居場所を示す地図などのアプリに似ています。 –

+0

あなたは達成したいことを共有していますか? –

答えて

0

端末でGoogleマップアプリを使用する場合は、外部リンクを使用して、ユーザーを特定の場所のGoogleマップアプリにリダイレクトすることができます。 Latitude11.4866901で、Longitude99.1050785あるこの

https://www.google.com/maps/?q=11.4866901,99.1050785

を使用してください。

+0

本当に私が欲しいものではありません。私は本当にそれが場所のアドレスと情報と一緒にアプリで開く必要があります。 –

関連する問題