summaryrefslogtreecommitdiff
path: root/java/com/android/newbubble/res/layout/bottom_action_base.xml
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/android/newbubble/res/layout/bottom_action_base.xml')
-rw-r--r--java/com/android/newbubble/res/layout/bottom_action_base.xml25
1 files changed, 23 insertions, 2 deletions
diff --git a/java/com/android/newbubble/res/layout/bottom_action_base.xml b/java/com/android/newbubble/res/layout/bottom_action_base.xml
index af7f7987f..8f7ba753e 100644
--- a/java/com/android/newbubble/res/layout/bottom_action_base.xml
+++ b/java/com/android/newbubble/res/layout/bottom_action_base.xml
@@ -17,20 +17,29 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="@dimen/bubble_bottom_action_view_height"
+ android:weightSum="2"
android:orientation="horizontal"
android:gravity="center"
android:background="@drawable/bottom_action_scrim">
+ <!-- Add space to make sure text is not off screen when scaled. (1 - 1/1.3) / 2 ~= 0.11 -->
+ <View
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="0.11"/>
+
<LinearLayout
android:id="@+id/bottom_action_dismiss_layout"
android:layout_width="0dp"
android:layout_height="match_parent"
- android:layout_weight="1"
+ android:layout_weight="0.78"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/bubble_bottom_action_text_offset"
+ android:maxLines="2"
+ android:ellipsize="end"
android:textColor="@color/bubble_button_color_white"
android:textSize="16sp"
android:fontFamily="roboto-medium"
@@ -41,16 +50,23 @@
android:elevation="2dp"/>
</LinearLayout>
+ <View
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="0.22"/>
+
<LinearLayout
android:id="@+id/bottom_action_end_call_layout"
android:layout_width="0dp"
android:layout_height="match_parent"
- android:layout_weight="1"
+ android:layout_weight="0.78"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/bubble_bottom_action_text_offset"
+ android:maxLines="2"
+ android:ellipsize="end"
android:textColor="@color/bubble_button_color_white"
android:textSize="16sp"
android:fontFamily="roboto-medium"
@@ -61,4 +77,9 @@
android:elevation="2dp"/>
</LinearLayout>
+ <View
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="0.11"/>
+
</LinearLayout> \ No newline at end of file