Thursday 15 March 2012

android - How to scroll a textview on imageview like google play -



android - How to scroll a textview on imageview like google play -

i'm trying create newsfeed has textview on bottom , imageview on top. text should scrolled on imageview google play when scroll descriptions of app on banner.

i have found 2 topics here inquire question unfortunately without right reply textview scroll on imageview pulse app scroll

textview scrolling behind imageview

thanks helps.

<framelayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/framelayout1" android:layout_width="match_parent" android:layout_height="match_parent" > <imageview android:id="@+id/imageview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/ic_launcher" /> <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" android:padding_top="200dp" > <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> </framelayout>

set padding_top of linearlayout height of imageview(do in java or set random number have done). hope work.

android

No comments:

Post a Comment