xml - Margin does not work on android 2.3.5 device -


<पूर्व> & lt; linearLayout xmlns: android = "http://schemas.android.com/apk/res/android "xmlns: उपकरण =" http://schemas.android.com/tools "एंड्रॉयड: layout_width =" fill_parent "एंड्रॉयड: layout_height =" fill_parent "एंड्रॉयड: layout_marginBottom =" @ Dimen / activity_horizontal_margin "एंड्रॉयड: layout_marginLeft =" @ Dimen / activity_vertical_margin "एंड्रॉयड: layout_marginRight =" @ Dimen / activity_vertical_margin "एंड्रॉयड: layout_marginTop =" @ Dimen / activity_horizontal_margin "एंड्रॉयड: अभिविन्यास =" ऊर्ध्वाधर-। "उपकरण: संदर्भ =" MainActivity "& gt; & Lt; TextView android: layout_width = "wrap_content" एंड्रॉइड: layout_height = "wrap_content" android: text = "@ string / phone_number_" / & gt; & LT; EditText एंड्रॉयड: आईडी = "@ + id / numberText" एंड्रॉयड: layout_width = "fill_parent" एंड्रॉयड: layout_height = "wrap_content" एंड्रॉयड: inputType = "number" / & gt; & Lt; TextView एंड्रॉइड: लेआउट_विड्थ = "लपेटो-सामग्री" एंड्रॉइड: layout_height = "wrap_content" android: text = "@ string / message_" / & gt; & Lt; EditText android: id = "@ + आईडी / संदेश पाठ" एंड्रॉइड: layout_width = "fill_parent" एंड्रॉइड: layout_height = "wrap_content" एंड्रॉइड: inputType = "text" / & gt; & Lt; TextView एंड्रॉइड: layout_width = "fill_parent" एंड्रॉइड: layout_height = "wrap_content" android: text = "@ string / troll_sequence_" / & gt; & LT; EditText एंड्रॉयड: आईडी = "@ + id / sqence" एंड्रॉयड: layout_width = "fill_parent" एंड्रॉयड: layout_height = "wrap_content" एंड्रॉयड: inputType = "number" एंड्रॉयड: पाठ = "@ स्ट्रिंग / _15" / & gt; & LT; बटन एंड्रॉयड: आईडी = "@ + id / trollBtn" एंड्रॉयड: layout_width = "fill_parent" एंड्रॉयड: layout_height = "55dp" एंड्रॉयड: layout_gravity = "केन्द्र" एंड्रॉयड: layout_marginTop = "10dp" एंड्रॉयड: पाठ = "@ स्ट्रिंग / प्रारंभ_ट्रॉलिंग "/ & gt; & LT; बटन एंड्रॉयड: आईडी = "@ + id / स्टॉप" एंड्रॉयड: layout_width = "fill_parent" एंड्रॉयड: layout_height = "55dp" एंड्रॉयड: layout_gravity = "केन्द्र" एंड्रॉयड: layout_marginTop = "10dp" एंड्रॉयड: पाठ = "@ स्ट्रिंग / स्टॉप_ट्रॉलिंग "/ & gt;

यह मेरा एक्सएमएल लेआउट कोड है और मैं रैखिक लेआउट के लिए डिफॉल्ट मार्जिन @ डीमेन से सेट करता हूं और यह 16dp है लेकिन जब मैं एचटीसी वाइल्डफ़ायर एस चलाता हूं तो एंड्रॉइड 2.3.5 चलाते हैं। यह काम नहीं कर रहा है और स्क्रीन पर मेरी ऑब्जेक्ट को बाएं और टॉप से ​​कोई मार्जिन नहीं है। कोई मेरी मदद कर सकता है?

पैरेंट लेआउट जैसे विचारों के लिए इस मार्जिन को दें

  android: layout_width = "fill_parent" एंड्रॉइड: एंड्रॉइड: layout_marginLeft = "@ dimen / activity_vertical_margin" एंड्रॉइड: layout_marginRight = "@ dimen / activity_vertical_margin" एंड्रॉइड: layout_marginTop = "लेआउट_मार्गिन" = "@ dimen / activity_horizontal_margin" एंड्रॉइड: layout_height = "wrap_content" android: text = "wrap_content" @ डेमन / गतिविधि_होइसोंटॉल_मार्गिन "/ & gt;    

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -