코드 조각 :tools : ignore = "UselessParent"는 Android XML 레이아웃 파일의 의미는 무엇입니까?
<LinearLayout
android:id="@+id/fullscreen_content_controls"
style="?buttonBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:background="@color/black_overlay"
android:orientation="horizontal"
tools:ignore="UselessParent" >
<Button
android:id="@+id/dummy_button"
style="?buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/dummy_button" />
</LinearLayout>
나는 tools:ignore="UselessParent"
수단 확실하지 않다. 보푸라기가 Button이 LinearLayout
으로 채워진 것을 발견하면 LinearLayout
이 제거되고 Button이 부모로 이동하여 뷰 계층 구조를 효율적으로 만들 수 있다는 의미입니까? 고마워요! 귀하의 경우에는
[참조 링크] (http://tools.android.com/tech-docs/tools-attributes)를 참조하십시오. 내 대답이 도움이 될 경우 대답을 수락하십시오. –