Joe*_*rie 7 layout android scrollview android-layout
我是Android的新手,我正在开发一款应用程序,但我有一个错误让我发疯.问题是它不会完全滚动,它会在屏幕上留下一个按钮,因此无法看到它.
这是xml代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#d3d3d3"
android:orientation="vertical">
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
>
<LinearLayout
android:orientation="vertical"
android:background="@drawable/bg_sugerir"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:id="@+id/linearLayout"
>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView"
android:src="@drawable/pd"
android:layout_marginBottom="15dp"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/editText"
android:layout_marginBottom="15dp"
android:hint="Nombre" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="phone"
android:ems="10"
android:id="@+id/editText2"
android:layout_marginBottom="15dp"
android:hint="Teléfono" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/editText4"
android:layout_marginBottom="15dp"
android:hint="Provincia" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/editText3"
android:layout_marginBottom="15dp"
android:hint="Descripción" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Enviar"
android:id="@+id/button" />
</LinearLayout>
</ScrollView>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
它显示以下内容,但如图所示,按钮不存在: notScrolling
希望有人能帮助我,谢谢
| 归档时间: |
|
| 查看次数: |
4201 次 |
| 最近记录: |