TextView中滚动的ImageView像脉冲应用滚动 [英] Textview scroll on Imageview like Pulse app scroll
本文介绍了TextView中滚动的ImageView像脉冲应用滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序,我想滚动像脉冲应用图像视图中的文本,无需滚动文本视图中。请给这个解决方案。
In my application I want to scroll the text on Image view like Pulse application,Need not scroll inside the text view. Please give the solution for this.
![请在此输入图片说明] [2]
![enter image description here][2]
推荐答案
使用,这可能是有帮助的:
Use this may be helpful :
<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>
您可以试试这个 添加保证金的TextView
You can try this Add margin to textview
android:layout_marginTop="100dp"
和制作背景图片,因为它是在这里。
And make background image as it is here.
这篇关于TextView中滚动的ImageView像脉冲应用滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文