小编Shi*_*lee的帖子

android:contentDescription="@null" 和 tools:ignore="ContentDescription" 有什么区别?使用 android:importantForAccessibility="no"?

以这个 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"是否应该使用或正在使用所有三个属性/属性只是过度使用?

android attributes lint imageview android-layout

3
推荐指数
1
解决办法
1175
查看次数

libGDX 项目设置中的 Ios-moe 是什么?

我计划使用 libGDX 创建一款适用于 Android(也可能是 Ios)的游戏。在项目设置中,对于 Ios,系统会提示我两个选项:Ios 和 Ios-moe。Ios-moe是什么?Ios 和 Ios-moe 有什么区别?我应该同时使用两者还是只使用其中一种?

android ios libgdx

2
推荐指数
1
解决办法
706
查看次数

标签 统计

android ×2

android-layout ×1

attributes ×1

imageview ×1

ios ×1

libgdx ×1

lint ×1