So legen Sie den Knopf für die Schublade so ein, dass Sie die Hälfte wie im Bild gezeigt nach außen auswerfen:
Antworten:
0 für die Antwort № 1Sie müssen ein Overlay-Layout wie Relative Layout verwenden
<RelativeLayout>
<View
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_marginTop="48dp"(40 is height of view at top plus 8dp is half height of this own view)
android:marginLeft="8dp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:marginLeft="16dp">
<View
android:layout_width="wrap_content"
android:layout_height="40dp" />
<View
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</RelativeLayout>
0 für die Antwort № 2
Erstellen Sie zwei verschiedene horizontale Layouts und fügen Sie die Pfeilschaltfläche im ersten horizontalen Layout entsprechend der Position hinzu. Die restlichen Dinge fügen sich im zweiten horizontalen Layout hinzu.