android - How to highlight a TextView or LinearLayout when click it? -


मेरे पास एक LinearLayout है जिसमें तीन टेक्स्ट व्यूएं हैं जब TextView पर उपयोगकर्ता क्लिक करता है तो मैं एक TextView या संपूर्ण लेआउट को हाइलाइट करना चाहता हूं। क्या यह ऐसा करने का कोई तरीका है?

धन्यवाद।

मैं 2 supperpose लेआउट

<पूर्व> & lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" एंड्रॉइड: layout_width = "match_parent" एंड्रॉइड: layout_height = "match_parent" एंड्रॉइड : पृष्ठभूमि = "@ रंग / सफेद" & gt; & Lt; LinearLayout Android: आईडी = "@ + आईडी / रूट" एंड्रॉइड: layout_width = "match_parent" एंड्रॉइड: layout_height = "match_parent" एंड्रॉइड: पृष्ठभूमि = "? एंड्रॉइड: एटीआर / चयन करने योग्य आईटम बैकग्राउंड" एंड्रॉइड: क्लिक करने योग्य = "सच" & gt; ... & lt; / LinearLayout & gt; & Lt; / LinearLayout & gt; findViewById (R.id.root) .setOnClickListener (...);

Comments

Popular posts from this blog

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

Best practice for URL redirection in ASP.NET web application -