Google Play发布前报告-资源名称 [英] Google Play pre-launch reports - resource name

查看:149
本文介绍了Google Play发布前报告-资源名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应如何提供EditText的ID来填充Google Play(该应用的Beta/Alpha版)发布前报告的凭据? 我试过了 @+id/editTextLogineditTextLoginR.id.editTextLogin,并始终获得描述错误的资源名称".

How I should provide id of EditText for filling credentials for pre-launch reports on Google Play (Beta/Alpha versions of the app)? I tried @+id/editTextLogin, editTextLogin, R.id.editTextLogin and always get description "wrong resource name".

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

What is correct schema for resource name there?

推荐答案

如信息图标所示:

应用内文本字段的Android资源名称,应在其中输入给定的用户名.

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

AND Android资源文档说:

<resource name>是没有扩展名的资源文件名,或者是XML元素中的 android:name 属性 value (用于简单值).

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

因此,在您的情况下,editTextLogin将进入该字段.

So in your case editTextLogin will go in that field.

我想分享一下我的案例,因为它与正常登录完全不同:

I would like to share my case as it is quite different than normal sign-in:

这与Google登录非常相似.我首先要输入用户名,然后对其进行验证,在下一个片段中,我将显示他/她的名称和名称并要求输入密码.

It is quite similar to Google sign-in. I am asking for username first and after validating it, on next fragment I am showing his/her name and designation and asking for password.

对于上述情况,我使用了两个片段.在用户名"片段中,我保留了一个资源名称为usernameEditText和下一个Button与资源名称为login的资源,在其他片段(密码片段)中,我使用了具有资源名称passwordEditText和另一个Button >,资源名称为login.

For above scenario I used two fragments. In Username fragment I kept one EditText with resource name username and next Button with resource name login and in other fragment (Password fragment) I used EditText with resource name password and again one Button with resource name login.

这是我提供凭据的方式:

And this is how I provided my credentials:

用户名字段示例:

<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商店控制台

Reference of new Google Play Store console

这篇关于Google Play发布前报告-资源名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆