Skip to content

Commit

Permalink
Merge pull request #4731 from vector-im/feature/bma/center
Browse files Browse the repository at this point in the history
Call banner: center text vertically
  • Loading branch information
bmarty authored Dec 16, 2021
2 parents 9adc946 + 818a889 commit addeec0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions changelog.d/4710.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Call banner: center text vertically
15 changes: 5 additions & 10 deletions vector/src/main/res/layout/view_current_calls.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?colorPrimary"
android:foreground="?attr/selectableItemBackground"
tools:background="?colorPrimary"
tools:parentTag="android.widget.FrameLayout">

<TextView
android:id="@+id/currentCallsInfo"
style="@style/Widget.Vector.TextView.Body"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawablePadding="10dp"
android:layout_gravity="center"
android:gravity="center"
android:paddingStart="16dp"
android:paddingTop="12dp"
android:paddingEnd="16dp"
android:paddingBottom="12dp"
android:text="@string/call_only_active"
android:textColor="?colorOnPrimary" />
android:textColor="?colorOnPrimary"
tools:text="@string/call_only_active" />

</merge>

0 comments on commit addeec0

Please sign in to comment.