Adding stop button

This commit is contained in:
Maxime Naturel 2022-03-18 12:11:07 +01:00
parent 67297bbdef
commit 56bffb2657
2 changed files with 13 additions and 5 deletions

View File

@ -19,6 +19,7 @@ package im.vector.app.features.location.live
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.Button
import androidx.constraintlayout.widget.ConstraintLayout
import im.vector.app.databinding.ViewLocationLiveStatusBinding
@ -30,4 +31,7 @@ class LocationLiveStatusView @JvmOverloads constructor(
LayoutInflater.from(context),
this
)
val stopButton: Button
get() = binding.locationLiveStatusStop
}

View File

@ -39,11 +39,15 @@
<Button
android:id="@+id/locationLiveStatusStop"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="Widget.Vector.Button.Text.OnPrimary"
android:layout_width="60dp"
android:layout_height="0dp"
android:background="?selectableItemBackground"
android:gravity="center"
android:padding="0dp"
android:text="@string/location_share_live_stop"
android:visibility="gone"
android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="@id/locationLiveStatusContainer"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/locationLiveStatusTitle" />
app:layout_constraintTop_toTopOf="@id/locationLiveStatusContainer" />
</merge>