Android 앱에서 자습서를 만들고 일부 UI 요소 위에 일부 풍선을 넣으려고합니다. 내 UI는 LinearLayouts
에 있습니다.LinearLayout 내부의 요소 위에 이미지를 오버랩하는 방법
LinearLayout
의 특정 위치 (즉, id = "@ id/email"인 텍스트 필드 옆)에 플로팅 이미지를 삽입하려면 어떻게해야합니까?
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10dp" >
<TextView android:id="@+id/email"
style="@style/LoginBarText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="3.0dp"
android:text="Email:" />
</LinearLayout>
나는 요소를 중첩 할 수있는 유일한 레이아웃이 RelativeLayout의이지만 다른 레이아웃 내부 요소를 이상 작동하지 않는 것을 알고있다.
감사
LinearLayout을 RelativeLayout으로 변경하면 제대로 작동합니다. – bhups
화면을 백분율로 채우려면 체중 속성이 필요하므로 변경할 수 없습니다. Weight가 RelativeLayouts에서 작동하지 않습니다. – Matroska