I am creating a multi-pane layout:
I have this layout file:
<fragment android:id="@+id/list"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:layout_marginTop="10dp"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
class="com.test.List"/>
<fragment android:id="@+id/detail"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="7"
class="com.test.Detail"/>
I want that right side (detail) panel to have an elevation, but only on the left side when it hits the list.
IE:
So that detail panel is not a cardview (from what I can tell).
In my detail layout:
<LinearLayout
android:orientation="vertical"
android:scrollbars="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:elevation="6dp"
android:padding="10dp">
<!-- Date -->
<TextView android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/date"
android:textStyle="bold"
android:textSize="17sp"
/>
<TextView android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="5dp"
android:textSize="17sp"
android:textIsSelectable="false"
/>
<!-- Reference Number -->
<TextView android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/description"
android:textStyle="bold"
android:paddingTop="10dp"
android:textSize="17sp"
/>
...
But I am not getting any elevation. I have tried elevation on the scrollview and its child linear layout with no luck. Although I am not sure this would accomplish the left side elevation anyways.
Any ideas on how to accomplish this?
Aucun commentaire:
Enregistrer un commentaire