我正在制作一个应用程序,它有两个独立的登录名,您必须输入您的信息,具体取决于您按哪个按钮。这两个登录信息有不同的ID。对于其中一个登录它说:7th_email然后7th_Password,但对于另一个登录它说:8th_email然后8th_Password。 我看不到错误重复资源错误的来源。重复的资源错误
这是代码;
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.novaschool.novaschoolapp.Seventh_Grade_Login">
<!-- Login progress -->
<LinearLayout android:id="@+id/login_status"
android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center_horizontal"
android:orientation="vertical">
<ProgressBar style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"/>
<TextView
android:id="@+id/login_status_message"
android:textAppearance="?android:attr/textAppearanceMedium"
android:fontFamily="sans-serif-light"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:text="@string/login_progress_signing_in" />
</LinearLayout>
<!-- Login form -->
<ScrollView
android:id="@+id/login_form"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout style="@style/LoginFormContainer"
android:orientation="vertical">
<EditText
android:id="@+id/7th_email"
android:singleLine="true"
android:maxLines="1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:hint="@string/prompt_email"
android:text="Enter Your Email" />
<EditText
android:id="@+id/7th_password"
android:singleLine="true"
android:maxLines="1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_password"
android:inputType="textPassword"
android:imeActionLabel="@string/action_sign_in_short"
android:imeActionId="@+id/login"
android:imeOptions="actionUnspecified"
android:text="Enter your Password" />
<Button android:id="@+id/7th_sign_in_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Enter"
android:paddingLeft="32dp"
android:paddingRight="32dp"
android:layout_gravity="right" />
</LinearLayout>
</ScrollView>
请在这里粘贴你的代码 –
如果有的话,请发布代码和错误日志。 – Kedarnath
这是一半的代码,我认为错误是在下半年,请粘贴完整的.xml文件。 – Kedarnath