I'm trying to add two divider via XML into the app. I have aligned the divider with some buttons.
I want to avoid to aglign the divider with the parent and then add margins to each side of the divider.
Is there a possibility to keep the divider aligned to the buttons and make the dividers slighlty longer (marked red) on both ends for each divider (vertical as well as horizontal)
is that possible?
https://i.stack.imgur.com/DNYrz.jpg
I've tried to add negative margins but that did not work (sounds probably super stupid).
<View
android:id="@+id/view"
android:layout_width="1dp"
android:layout_height="0dp"
android:layout_marginTop="8dp"
android:background="#000000"
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="@+id/button_onePointTeamb"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/textView_teamb" />
<View
android:id="@+id/view2"
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
android:background="#000000"
android:visibility="visible"
app:layout_constraintBottom_toTopOf="@+id/textView_scoreTeama"
app:layout_constraintEnd_toEndOf="@+id/button_threePointsTeamb"
app:layout_constraintStart_toStartOf="@+id/button_threePointsTeama"
app:layout_constraintTop_toBottomOf="@+id/textView_teama" />
Is it possible to do that?