साथ बटन मैं निम्नलिखित लेआउटएंड्रॉयड बाएं और दाएं मार्जिन
<?xml version="1.0" encoding="utf-8"?>
<Button
android:id="@+id/sign_in"
style="@style/ButtonText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/custom_button_green"
android:text="@string/signin_via_email"
android:textSize="15sp"
android:typeface="sans" />
अब बटन मुझे नहीं वास्तव में पूरी चौड़ाई फिट करने के लिए चाहते हैं न कि मैं एक मार्जिन चाहते हैं बाईं ओर से 10 डीपी और दाईं ओर से 10 डीपी। मैंने पैडिंग और लेआउट_मार्गिन लिफ्ट और सही विशेषताओं को सेट किया है लेकिन वे काम नहीं करते हैं। कोई मदद ?
सधन्यवाद
आप अपने ButtonText शैली कोड पोस्ट कर सकते हैं? –
'एंड्रॉइड: layout_width =" wrap_content "' और इसके अनुसार मार्जिन निर्दिष्ट करें। – neevek