Android ListView Item Overlapping Effekt -


हैलो, मैं निम्नलिखित ListView Effekt बनाना चाहूंगा:

सूचीदृश्य में अधिकतम 5 पंक्तियाँ होनी चाहिए और प्रत्येक पंक्ति में एक अलग अल्फा मान होना चाहिए।

अब मुझे पिछले कार्य के लिए अतिव्यापी प्रभाव की आवश्यकता है।

मैंने अभी अल्फा प्रभाव के लिए निम्न कोड बनाया है

  यदि ((अनुसूची .getCurrentPosition () - 1) == स्थिति) {rowView.setAlpha (.5f); } If (schedule.getCurrentPosition () == स्थिति) {rowView.setBackgroundColor (context.getResources ()। GetColor (R.color.abc_search_url_text_holo)); rowView.setAlpha (1f); } अगर ((अनुसूची .getCurrentPosition () + 1) == स्थिति) {rowView.setAlpha (.5f); } अगर ((अनुसूची .getCurrentPosition () + 2) == स्थिति) {rowView.setAlpha (.25f); } यदि ((अनुसूची .getCurrentPosition () + 3) == स्थिति) {rowView.setAlpha (.15f); }  

अब मुझे पिछले कार्य के लिए अतिव्यापी प्रभाव की आवश्यकता है।


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -