Java 如何在我的应用程序顶部添加一个不移动的视图?
我正在尝试创建一个应用程序,该应用程序的顶部包含一个视图,其中包含一个图像和一些文本,下面还有一个列表视图,您可以向上或向下滚动。创建此布局的最佳方法是什么Java 如何在我的应用程序顶部添加一个不移动的视图?,java,android,Java,Android,我正在尝试创建一个应用程序,该应用程序的顶部包含一个视图,其中包含一个图像和一些文本,下面还有一个列表视图,您可以向上或向下滚动。创建此布局的最佳方法是什么 这不是最简单的解决办法。是从我的代码中复制粘贴的 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_
这不是最简单的解决办法。是从我的代码中复制粘贴的
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:ignore="ContentDescription" >
<ImageView
android:layout_width="match_parent"
tools:ignore="ContentDescription" />
<ListView
android:id="@+id/listviewschedule"
style="@style/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="-21dp"
android:layout_marginBottom="-10dp"
android:fadingEdge="none"
android:fastScrollEnabled="false"
android:smoothScrollbar="true"
android:showDividers="none"/>
</LinearLayout>
在滚动视图中放入你想滚动的部分你试过什么了吗?这并不难找到,只是阅读。做这件事的方法总是不止一种,包括一些争议。因此,对于StackOverflow来说,这不是一个好问题,请参阅