Android 文本视图在图像视图上滚动,如Pulse应用程序滚动
在我的应用程序中,我想像Pulse应用程序一样在图像视图上滚动文本,不需要在文本视图内滚动。请给出解决方案 !![在此处输入图像描述][2]Android 文本视图在图像视图上滚动,如Pulse应用程序滚动,android,Android,在我的应用程序中,我想像Pulse应用程序一样在图像视图上滚动文本,不需要在文本视图内滚动。请给出解决方案 !![在此处输入图像描述][2] 使用框架布局,并在其内部先放置imageview,然后放置textview,或者使用布局视图,并在其内部放置bachground和textview使用此选项可能会有所帮助: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="
使用框架布局,并在其内部先放置imageview,然后放置textview,或者使用布局视图,并在其内部放置bachground和textview使用此选项可能会有所帮助:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/ic_launcher"
android:orientation="vertical" >
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"
android:text="@string/hello_world" />
</LinearLayout>
</ScrollView>
</LinearLayout>
并使背景图像保持原样。您回答在imageview上滚动文本,但我像pulse app一样要求,即imageview位于版面的顶部(而不是版面的背景),而textview位于该imageview的下方,现在我想像上图一样在imageview上滚动文本视图。@Maheswaran看到我的答案的更改。imageview在版面的顶部(而不是版面的背景)而文本视图在该imageview的下面,现在我想像上图一样在imageview上滚动文本视图。看到我答案的更改。
android:layout_marginTop="100dp"