7
मैं स्क्रोल करने योग्य छवि पिकर बना रहा हूं, लेकिन कुछ जानकारी है जो मैं प्रत्येक छवि के लिए स्क्रॉलिंग करते समय दिखाना चाहता हूं, मेरा सवाल यह है कि गैलरी पर एक घटना है जो मुझे सूचित करती है कि छवि केंद्रित है? स्क्रॉल करते समय यह घटना होनी चाहिए।गैलरी घटना "जब छवि केंद्रित"
<Gallery android:id="@+id/coverflow"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_centerInParent="true" />
<TextView android:id="@+id/author" android:layout_width="match_parent"
android:layout_height="wrap_content" android:text="Titulo livro"
android:layout_above="@id/coverflow" android:gravity="center" />
<ImageView android:id="@+id/div" android:layout_width="match_parent"
android:layout_height="wrap_content" android:src="@drawable/library_div"
android:layout_above="@id/author" />
<TextView android:id="@+id/title" android:layout_width="match_parent"
android:layout_height="wrap_content" android:text="Author"
android:layout_above="@id/div" android:gravity="center" />
</RelativeLayout>
मैं जब स्क्रॉल होता है और एक नया iten बीच एक, लेखक और शीर्षक TextViews अपडेट कर दिया है चाहता हूँ:
मेरे लेआउट है।
किसी भी सुझाव दिए गए?
यह अच्छा है। धन्यवाद! –
धन्यवाद @ मार्सोस धन्यवाद! बहुत ज्यादा –