Google Play 发布前报告 - 资源名称

2024-01-22

我应该如何提供 EditText 的 id 来填充 Google Play 上的预发布报告(应用程序的 Beta/Alpha 版本)的凭据? 我试过@+id/editTextLogin, editTextLogin, R.id.editTextLogin并且总是得到描述“错误的资源名称”。

那里的资源名称的正确架构是什么?


正如信息图标所示:

应用程序中应输入给定用户名的文本字段的 Android 资源名称。

AND Android 资源文档 https://developer.android.com/guide/topics/resources/accessing-resources.html says:

<resource name>是不带扩展名的资源文件名或安卓:名称属性value在 XML 元素中(对于简单值)。

所以在你的情况下editTextLogin会去那个领域。


我想分享我的案例,因为它与正常登录有很大不同:

它与谷歌登录非常相似。我首先要求输入用户名,并在验证后,在下一个片段中,我将显示他/她的姓名和名称并要求输入密码。

对于上面的场景,我使用了两个片段。在用户名片段中我保留了一个EditText带有资源名称username接下来Button带有资源名称login在其他片段(密码片段)中我使用了EditText带有资源名称password又一个Button带有资源名称login.

And this is how I provided my credentials: Pre-launch credential screenshot

Example Username field:

<android.support.v7.widget.AppCompatEditText
    android:id="@+id/username"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

Example Password field:

<android.support.v7.widget.AppCompatEditText
    android:id="@+id/password"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:inputType="textPassword" />

Example Login button:

<android.support.v7.widget.AppCompatButton
    android:id="@+id/login"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_margin="8dp" />

EDIT

新的 Google Play 商店控制台参考

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Google Play 发布前报告 - 资源名称 的相关文章

随机推荐