summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-12-12 22:23:01 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-12 22:23:01 +0000
commit3d4e131577ac5b28ab50b8617fed712dc95f956b (patch)
tree7c590ea0648593d146373351032b1dc437aa1706 /InCallUI
parent3666716a73f5bdd97d22e7e5190d4c050cd87cbd (diff)
parentae355d452329e30217ee2e5284194340478c7271 (diff)
am b40745a5: am 1edf3821: Merge "Support RTL in InCall call card." into lmp-mr1-dev
* commit 'b40745a542998bd6e729c41c2dd056ba22317427': Support RTL in InCall call card.
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/res/layout/primary_call_info.xml10
-rw-r--r--InCallUI/src/com/android/incallui/CallCardFragment.java2
2 files changed, 9 insertions, 3 deletions
diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml
index 1f3b9549b..71369d479 100644
--- a/InCallUI/res/layout/primary_call_info.xml
+++ b/InCallUI/res/layout/primary_call_info.xml
@@ -64,6 +64,7 @@
<TextView android:id="@+id/callStateLabel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:textAlignment="viewStart"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@color/incall_accent_color"
android:textSize="@dimen/call_status_text_size"
@@ -71,6 +72,7 @@
android:singleLine="true"
android:gravity="start"
android:ellipsize="end" />
+
</LinearLayout>
<!-- Name (or the phone number, if we don't have a name to display). -->
@@ -80,6 +82,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="-5dp"
android:fontFamily="sans-serif-light"
+ android:textAlignment="viewStart"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="@dimen/call_name_text_size"
android:singleLine="true"
@@ -95,9 +98,8 @@
<!-- Label (like "Mobile" or "Work", if present) and phone number, side by side -->
<LinearLayout android:id="@+id/labelAndNumber"
- android:layout_width="0dp"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_weight="1"
android:orientation="horizontal">
<TextView android:id="@+id/label"
@@ -122,9 +124,11 @@
<!-- Elapsed time indication for a call in progress. -->
<TextView android:id="@+id/elapsedTime"
- android:layout_width="wrap_content"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
+ android:layout_weight="1"
android:layout_centerVertical="true"
+ android:textAlignment="viewEnd"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/incall_call_banner_subtext_color"
android:textSize="@dimen/call_label_text_size"
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java
index 6ecf62e99..9d11b4cfc 100644
--- a/InCallUI/src/com/android/incallui/CallCardFragment.java
+++ b/InCallUI/src/com/android/incallui/CallCardFragment.java
@@ -425,8 +425,10 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
if (TextUtils.isEmpty(number) && TextUtils.isEmpty(label)) {
mCallNumberAndLabel.setVisibility(View.GONE);
+ mElapsedTime.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START);
} else {
mCallNumberAndLabel.setVisibility(View.VISIBLE);
+ mElapsedTime.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_END);
}
setPrimaryPhoneNumber(number);