समाधान खोजने के बाद, मुझे अपनी समस्या का समाधान करने के लिए कोई भी नहीं मिला।ऊंचाई एक लाइनरलाइट पर काम नहीं कर रहा
मेरे पास कुछ ऊंचाई है जो मेरे ऐप के एक बड़े हिस्से पर एक छाया उत्पन्न करती है।
लेकिन किसी विशेष स्थान पर, मैं इसे काम करने में सक्षम नहीं हूं।
उपकरण पट्टी के नीचे सफेद क्षेत्र एक Fragment
जो एक LinearLayout
लेआउट प्रदर्शित करता है (यह है जहाँ मैं नीचे चित्र पर एक तीर डाल है):
<LinearLayout
android:id="@+id/panelAddress"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/button_flat_white"
android:elevation="10dp"
android:orientation="vertical"
android:padding="20dp"
>
//some content
</LinearLayout>
फ्रैगमेंट के माता-पिता:
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawerLayout"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include
android:id="@+id/custom_toolbar"
layout="@layout/toolbar"/>
<RelativeLayout
android:id="@+id/mapLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<fragment
android:id="@+id/map"
class="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<FrameLayout
android:id="@+id/fragment_container_top"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
/>
<FrameLayout
android:id="@+id/fragment_container_bottom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"/>
</RelativeLayout>
</LinearLayout>
</android.support.v4.widget.DrawerLayout>
क्या आपको पता है कि मुझे अपनी ऊंचाई क्यों नहीं मिली है?
लाइनरलेआउट लाल की पृष्ठभूमि रंग, बस यह पता लगाने के लिए कि वास्तव में यह क्षेत्र क्या है। यह पूरे टुकड़े में फैला हो सकता है। – CurlyCorvus
@CurlyCorvus, यह सही जगह लेता है .. –
क्या आपने एंड्रॉइड की कोशिश की: outlineProvider = "cls" आपके टुकड़े में? –