mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Rename view ids
This commit is contained in:
parent
42b3ecc0b6
commit
1415504f84
@ -37,9 +37,9 @@ class VoiceBroadcastMetadataView @JvmOverloads constructor(
|
|||||||
)
|
)
|
||||||
|
|
||||||
var value: String
|
var value: String
|
||||||
get() = views.metadataValue.text.toString()
|
get() = views.metadataText.text.toString()
|
||||||
set(newValue) {
|
set(newValue) {
|
||||||
views.metadataValue.text = newValue
|
views.metadataText.text = newValue
|
||||||
}
|
}
|
||||||
|
|
||||||
init {
|
init {
|
||||||
@ -61,6 +61,6 @@ class VoiceBroadcastMetadataView @JvmOverloads constructor(
|
|||||||
|
|
||||||
private fun setValue(typedArray: TypedArray) {
|
private fun setValue(typedArray: TypedArray) {
|
||||||
val value = typedArray.getString(R.styleable.VoiceBroadcastMetadataView_metadataValue)
|
val value = typedArray.getString(R.styleable.VoiceBroadcastMetadataView_metadataValue)
|
||||||
views.metadataValue.text = value
|
views.metadataText.text = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,17 +8,16 @@
|
|||||||
tools:parentTag="android.widget.LinearLayout">
|
tools:parentTag="android.widget.LinearLayout">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
android:id="@+id/metadataIcon"
|
android:id="@+id/bufferingIcon"
|
||||||
android:layout_width="16dp"
|
android:layout_width="16dp"
|
||||||
android:layout_height="16dp"
|
android:layout_height="16dp"
|
||||||
android:layout_marginEnd="4dp"
|
android:layout_marginEnd="4dp"
|
||||||
android:contentDescription="@string/a11y_voice_broadcast_buffering"
|
|
||||||
android:indeterminate="true"
|
android:indeterminate="true"
|
||||||
android:indeterminateTint="?vctr_content_secondary"
|
android:indeterminateTint="?vctr_content_secondary"
|
||||||
tools:src="@drawable/ic_voice_broadcast" />
|
tools:src="@drawable/ic_voice_broadcast" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/metadata_value"
|
android:id="@+id/bufferingText"
|
||||||
style="@style/Widget.Vector.TextView.Caption"
|
style="@style/Widget.Vector.TextView.Caption"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
tools:src="@drawable/ic_voice_broadcast" />
|
tools:src="@drawable/ic_voice_broadcast" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/metadata_value"
|
android:id="@+id/metadataText"
|
||||||
style="@style/Widget.Vector.TextView.Caption"
|
style="@style/Widget.Vector.TextView.Caption"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
Loading…
Reference in New Issue
Block a user