以这个 android 布局 XML 片段为例:
<ImageView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_weight="1"
android:padding="10dp"
app:srcCompat="@drawable/bitcoin"
android:contentDescription="@null"
android:importantForAccessibility="no"
tools:ignore="ContentDescription" />
Run Code Online (Sandbox Code Playgroud)
是有什么区别android:contentDescription="@null"
和tools:ignore="ContentDescription"?
我知道它们都用于表示某个非文本元素没有任何意义,仅用于装饰。使用一个比另一个有优势吗,我应该同时使用两个,是偏好还是一个被认为比另一个更好和更新?
另外,我android:importantForAccessibility="no"
是否应该使用或正在使用所有三个属性/属性只是过度使用?
我计划使用 libGDX 创建一款适用于 Android(也可能是 Ios)的游戏。在项目设置中,对于 Ios,系统会提示我两个选项:Ios 和 Ios-moe。Ios-moe是什么?Ios 和 Ios-moe 有什么区别?我应该同时使用两者还是只使用其中一种?