android - A Tab Exception Message -


06-14 00: 21: 30.398: त्रुटि / एंड्रॉइड रेंटाइम (332): द्वारा कारण: java.lang.RuntimeException: आपका सामग्री में एक टैबहोस्ट होना चाहिए जिसका आईडी विशेषता 'android.r.id.tabhost' है

इसका क्या अर्थ है? मैंने पहले ही टैबॉस्ट के लिए आईडी दी है। और मैं आर.जावा में आईडी देख सकता हूं।

यहां .xml है:

  & lt; TabHost xmlns: एंड्रॉइड = "Http://schemas.android.com/apk/res/android" android: id = "@ + id / tabhost" एंड्रॉइड: layout_width = "fill_parent" एंड्रॉइड: layout_height = "fill_parent" & gt; & Lt; LinearLayout एंड्रॉइड: अभिविन्यास = "लंबवत" एंड्रॉइड: layout_width = "fill_parent" एंड्रॉइड: layout_height = "fill_parent" एंड्रॉइड: padding = "5dp" & gt; & Lt; TabWidget android: id = "@ + आईडी / टैब्स" एंड्रॉइड: layout_width = "fill_parent" एंड्रॉइड: layout_height = "wrap_content" / & gt; & Lt; FrameLayout एंड्रॉइड: id = "@ + id / tabcontent" एंड्रॉइड: layout_width = "fill_parent" एंड्रॉइड: layout_height = "fill_parent" एंड्रॉइड: padding = "5dp" / & gt; & Lt; / LinearLayout & gt; & Lt; / TabHost & gt;  

यदि आप TabActivity का उपयोग करने जा रहे हैं, तो आपको आवश्यकता है @android: id / tabhost का उपयोग करने के लिए android: id का मान अपने TabHost


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -