step.xml enthalten:Wie Layout am unteren Rand eines anderen Layout
<?xml version="1.0" encoding="utf-8"?>
<com.stepstone.stepper.StepperLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/stepperLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:ms_stepperType="dots" />
activity_main.xml:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/ScrollView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="3dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="3dp">
<android.support.design.widget.TextInputLayout
android:id="@+id/input_layout_name"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/firstname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="11"
android:maxLines="1"
android:hint="First name"
android:textColor="#000000"
android:maxLength="15"
android:tag="@+id/first_name"
android:textCursorDrawable="@null" />
</android.support.design.widget.TextInputLayout>
</RelativeLayout>
<include
android:id="@+id/bottom_Menu"
android:layout_alignParentBottom="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
layout="@layout/step"/>
</ScrollView>
Dies ist das Design von step.xml
Dies ist das Design von activity_main. Dabei habe ich die step.xml enthalten
Ich brauche die Ausgabe wie folgt.
Wenn ich versuche step.xml
in activity_main
aufzunehmen, erhalte ich die Ausnahme „Scroll-Ansicht kann nur eine untergeordnete Ansicht hosten.“ Bitte hilf mir.
Sie können nicht so tun. Lesen Sie die grundlegende Dokumentation über die XML-Codierung. –
am wichtigsten Tag hat nur ein Kind-Tag –
dann wie kann ich die step.xml zu activity_main hinzufügen? Gibt es eine Lösung? @RakeshPolo @J Ramesh – sagar