gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-02 18:57:18 25 4
gpt4 key购买 nike

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

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

最佳答案

如信息图标所示:

The Android resource name of the text field within your app where the given username should be entered.

Android Resources documentations说:

<resource name> is either the resource filename without the extension or the android:name attribute value in the XML element (for simple values).

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


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

它与 Google 登录非常相似。我首先询问用户名,在验证它之后,在下一个 fragment 中我显示他/她的姓名和名称并询问密码。

对于上述场景,我使用了两个 fragment 。在用户名 fragment 中,我保留了一个 EditText资源名称 username下一个Button资源名称 login在其他 fragment (密码 fragment )中,我使用了 EditText资源名称 password又一个Button资源名称 login .

这就是我提供凭据的方式: Pre-launch credential screenshot

示例 用户名 字段:

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

示例密码字段:

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

登录按钮示例:

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

编辑

新版 Google Play 商店控制台引用

enter image description here

关于android - Google Play 预发布报告 - 资源名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44209416/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com