मैं एंड्रॉइड के लिए नया हूं और यह मेरा पहला सवाल है।कार्डव्यू पर रंगीन सीमा कैसे जोड़ें?
मैं कार्डव्यू की शुरुआत में एक रंगीन लंबवत सीमा जोड़ने की कोशिश कर रहा हूं। मैं इसे एक्सएमएल पर कैसे प्राप्त कर सकता हूं? मैंने इसे खाली टेक्स्टव्यू के साथ जोड़ने की कोशिश की लेकिन यह पूरे कार्डव्यू को गड़बड़ कर रहा है। उदाहरण के लिए नीचे पोस्ट किया गया चित्र लिंक देखें।
activity_main.xml
<android.support.v7.widget.CardView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
card_view:contentPadding="16dp"
card_view:cardElevation="2dp"
card_view:cardCornerRadius="5dp">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
style="@style/Base.TextAppearance.AppCompat.Headline"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Title" />
<TextView
style="@style/Base.TextAppearance.AppCompat.Body1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Content here" />
</LinearLayout>
</android.support.v7.widget.CardView>
बहुत धन्यवाद
क्या आपको यहां कार्डव्यू का उपयोग करने की आवश्यकता है? सिर्फ एक विमान लाइनरलेआउट के बारे में क्या है और आपके रीसाइक्लिंग व्यू में एक आइटम डिस्क्रिप्शन जोड़ रहा है? –
मैं एंड्रॉइड पर एक नौसिखिया हूं और रीसाइक्लिंगव्यू मेरे इलाज कौशल सेट के लिए थोड़ा उन्नत है। तो, मैं यहां कार्डव्यू का उपयोग कर रहा हूं। –
ठीक है, मैं –