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

Mic*_*ert 8 android google-play

我应该如何提供EditText的ID来填充Google Play上的发布前报告的凭据(应用的Beta/Alpha版本)?我试过 @+id/editTextLogin,editTextLogin,R.id.editTextLogin,一定可以得到说明"错误的资源名称".

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

Omk*_*kar 4

正如信息图标所示:

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

Android 资源文档说:

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

因此,就您而言,editTextLogin将进入该领域。


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

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

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

这就是我提供凭据的方式: 预启动凭据屏幕截图

用户名字段示例:

<android.support.v7.widget.AppCompatEditText
    android:id="@+id/username"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />
Run Code Online (Sandbox Code Playgroud)

密码字段示例:

<android.support.v7.widget.AppCompatEditText
    android:id="@+id/password"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:inputType="textPassword" />
Run Code Online (Sandbox Code Playgroud)

登录按钮示例:

<android.support.v7.widget.AppCompatButton
    android:id="@+id/login"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_margin="8dp" />
Run Code Online (Sandbox Code Playgroud)

编辑

新的 Google Play 商店控制台参考

在此输入图像描述