2014-02-20 1 views
0

Xamarin Google Maps 응용 프로그램을 개발 중이며 TextView를 응용 프로그램의 상단과 가운데에 배치하려고합니다.Google지도 상단에 TextView 배치

나는 몇 가지 연구를 해본 결과 절대 레이아웃을 사용해서는 안된다는 것을 알았습니다.

어떻게하는 것이 가장 좋은 방법입니까? 레이아웃을 사용해야합니까? 이 작업이 내 Google지도 위에 쉽게 적용됩니까? 사전

답변

0

을 사용하여 상대 레이아웃

덕분에지도 뷰와 텍스트 뷰를 누른 상태에서 텍스트보기를 설정 android:layout_centerInParentandroid:layout_alignParentTop 속성 true에이은을 방해 할 수 있다는

... 
<RelativeLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"> 
    <FrameLayout 
     android:id="@+id/map" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" /> 
    <TextView 
     android:text="test" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_centerInParent="true" 
     android:layout_alignParentTop="true" /> 
</RelativeLayout/> 
... 

주 텍스트보기가 겹쳐서지도보기의 유용성.

관련 문제