0

developerWorks의 developersWalkthrough 예제를 developer.xamarin.com에서 사용하고 있습니다. 두 가지 텍스트 도구로 이미지보기와 두 번째 레이아웃을 추가 한 후에 모두 작동합니다. 내가 루트 선형 레이아웃의 방향 값을 변경하면 두 개의 텍스트 위젯 두 번째 선형 레이아웃 디자이너 여기한 요소의 속성을 변경하면 다른 요소가 나타나지 않습니다.

에서 사라은 첨부

<xml version="1.0" encoding="utf-8"?> 
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
     android:orientation="vertical" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent"> 
     <ImageView 
      android:src="@android:drawable/ic_menu_gallery" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/imageView1" /> 
     <LinearLayout 
      android:orientation="vertical" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:id="@+id/linearLayout1"> 
      <TextView 
       android:text="Large Text" 
       android:textAppearance="?android:attr/textAppearanceLarge" 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:id="@+id/textView1" /> 
      <TextView 
       android:text="Small Text" 
       android:textAppearance="?android:attr/textAppearanceSmall" 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:id="@+id/textView2" /> 
      </LinearLayout> 
     </LinearLayout> 

는 이전과의 스크린 샷을 쫓고 소스 코드를입니다 디자이너가 가로 LinearLayout 방향을 바꿀 때

답변

0

ImageViewLinearLayout의 너비는 match_parent입니다. 즉, 전체 화면을 채울 것입니다. 요소가 사라지지 않고 화면 밖으로 밀려나고 있습니다. 그들은 ImageView 옆에 위치합니다. 너비를 줄이면 볼 수 있습니다.

+0

그 트릭을했습니다. 감사합니다 DeeV. 분명히 할 일이 많이있다. – user182162