Add background to sensitive media button (#3939)
Using the same background and margin as the ALT button. Fixes #3772
This commit is contained in:
parent
41951c906c
commit
bc310ca3fb
|
@ -16,14 +16,15 @@
|
||||||
android:id="@+id/status_sensitive_media_button"
|
android:id="@+id/status_sensitive_media_button"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:alpha="0.7"
|
android:layout_margin="3dp"
|
||||||
|
android:background="@drawable/media_warning_bg"
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
android:padding="@dimen/status_sensitive_media_button_padding"
|
android:padding="@dimen/status_sensitive_media_button_padding"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:layout_constraintStart_toStartOf="@+id/status_media_preview_container"
|
app:layout_constraintStart_toStartOf="@+id/status_media_preview_container"
|
||||||
app:layout_constraintTop_toTopOf="@+id/status_media_preview_container"
|
app:layout_constraintTop_toTopOf="@+id/status_media_preview_container"
|
||||||
app:srcCompat="@drawable/ic_eye_24dp"
|
app:srcCompat="@drawable/ic_eye_24dp"
|
||||||
app:tint="@color/white" />
|
app:tint="?android:attr/textColorSecondary" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/status_sensitive_media_warning"
|
android:id="@+id/status_sensitive_media_warning"
|
||||||
|
|
|
@ -191,14 +191,15 @@
|
||||||
android:id="@+id/status_sensitive_media_button"
|
android:id="@+id/status_sensitive_media_button"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:alpha="0.7"
|
android:layout_margin="3dp"
|
||||||
|
android:background="@drawable/media_warning_bg"
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
android:padding="@dimen/status_sensitive_media_button_padding"
|
android:padding="@dimen/status_sensitive_media_button_padding"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:layout_constraintLeft_toLeftOf="@+id/status_media_preview_container"
|
app:layout_constraintLeft_toLeftOf="@+id/status_media_preview_container"
|
||||||
app:layout_constraintTop_toTopOf="@+id/status_media_preview_container"
|
app:layout_constraintTop_toTopOf="@+id/status_media_preview_container"
|
||||||
app:srcCompat="@drawable/ic_eye_24dp"
|
app:srcCompat="@drawable/ic_eye_24dp"
|
||||||
app:tint="@color/white"
|
app:tint="?android:attr/textColorSecondary"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -359,4 +360,4 @@
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/timestampInfo" />
|
app:layout_constraintTop_toBottomOf="@id/timestampInfo" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
Loading…
Reference in New Issue