पैडिंग मुद्दा?टेक्स्ट व्यू टॉप पैडिंग इश्यू?
अद्यतन मुद्दे का नमूना: -
अद्यतन (क्यों शब्द के ऊपर एक अंतर "देर" है) 2 दूसरों इसी तरह के मुद्दों यहां सूचना दी : - http://code.google.com/p/android/issues/detail?id=22493
तो ऐसा लगता है कि एक बार टेक्स्टव्यू आकार में कम नहीं होता है बड़ा हो गया है इसके लिए कामकाज के लिए कोई विचार? ऊंचाई को सेट करने से स्पष्ट रूप से पाठ को फसल का कारण बनता है क्योंकि यह कम होना चाहिए।
<?xml version="1.0" encoding="utf-8" ?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="1dp"
android:orientation="vertical"
android:background="@color/Green">
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/datetext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/DateCode"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="40sp"
android:textStyle="bold"
android:background="@color/Red" />
</LinearLayout>
और यह एक कैलेंडर के रूप में एक इस GridView में डाला जा रहा है: - -:
मैं इस प्रकार एक लेआउट है
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:numColumns="7"
android:verticalSpacing="2dp"
android:horizontalSpacing="2dp"
android:stretchMode="columnWidth"
android:gravity="center"
/>
gridview को भरने के लिए इस्तेमाल किया एडाप्टर आइटम उपलब्ध स्थान की चौड़ाई तक टेक्स्ट फिट करने के लिए @ + id/DateCode के टेक्स्ट आकार को बदलता है। फिर यह टेक्स्टव्यू को अमान्य करता है और फिर से लेआउट को मजबूर करता है (मुझे पता है कि यह टेक्स्टव्यू के निचले हिस्से के रूप में काम करता है आकार के पाठ के नीचे आता है)।
DateCode भीतर पाठ के शीर्ष पर कम से कम आधे रास्ते शुरू करने के लिए नीचे TextView (जो एक लाल बॉक्स के रूप में स्पष्ट है। मुझे समझ नहीं आता क्यों क्षेत्र में पाठ फिट करने के लिए सिकुड़ नहीं है लगता है।
मुझे लगता है कि यह एक पैडिंग मुद्दा है या कुछ मुझे समझ में नहीं आता है, लेकिन यह फ़ॉन्ट पैडिंग प्रतीत नहीं होता है कि यह कितना बड़ा है।
कोई विचार क्यों टेक्स्टव्यू टेक्स्ट को अब तक नीचे रख रहा है, और नहीं इसे बहुत छोटी जगह में लपेटना?
- एंथनी
मैं समझ नहीं सकता .... अगर आप आवेदन के स्क्रीनशॉट प्रदान करते हैं –
मैंने प्रश्न के लिए एक नमूना चित्र अपलोड किया है, तो आप कर सकते हैं ऊपर "देर" देखें, एक अंतर है जिसे मैं समझा नहीं सकता। –
@arunsoorya क्षमा करें मैं आपको अपनी आखिरी टिप्पणी में टैग करना भूल गया ... –