diff options
Diffstat (limited to 'java/com/android/dialer/calldetails/res')
3 files changed, 42 insertions, 13 deletions
diff --git a/java/com/android/dialer/calldetails/res/layout/call_details_entry.xml b/java/com/android/dialer/calldetails/res/layout/call_details_entry.xml index 3d4750d09..1e989966a 100644 --- a/java/com/android/dialer/calldetails/res/layout/call_details_entry.xml +++ b/java/com/android/dialer/calldetails/res/layout/call_details_entry.xml @@ -30,60 +30,71 @@ <TextView android:id="@+id/call_type" + style="@style/PrimaryText" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="@dimen/call_entry_text_left_margin" android:layout_marginEnd="16dp" android:layout_toStartOf="@+id/call_duration" android:gravity="start" - android:maxLines="100" - style="@style/PrimaryText"/> + android:maxLines="100"/> <TextView android:id="@+id/call_time" + style="@style/SecondaryText" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/call_entry_text_left_margin" - android:layout_below="@+id/call_type" android:layout_marginBottom="@dimen/call_entry_bottom_padding" - style="@style/SecondaryText"/> + android:layout_marginStart="@dimen/call_entry_text_left_margin" + android:layout_below="@+id/call_type"/> <TextView android:id="@+id/call_duration" + style="@style/PrimaryText" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentEnd="true" android:layout_marginEnd="@dimen/call_entry_padding" - style="@style/PrimaryText"/> + android:layout_alignParentEnd="true"/> <include - layout="@layout/ec_data_container" android:id="@+id/ec_container" - android:layout_height="@dimen/ec_container_height" + layout="@layout/ec_data_container" android:layout_width="match_parent" + android:layout_height="@dimen/ec_container_height" android:layout_below="@+id/call_time" android:visibility="gone"/> <TextView android:id="@+id/post_call_note" + style="@style/SecondaryText" android:layout_width="match_parent" android:layout_height="@dimen/ec_container_height" android:layout_below="@+id/ec_container" android:paddingStart="@dimen/call_entry_text_left_margin" + android:background="?attr/selectableItemBackground" android:gravity="center_vertical" android:maxLines="2" - android:visibility="gone" - android:background="?attr/selectableItemBackground" - style="@style/SecondaryText"/> + android:visibility="gone"/> + <TextView + android:id="@+id/rtt_transcript" + style="@style/SecondaryText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/call_entry_bottom_padding" + android:layout_marginStart="@dimen/call_entry_text_left_margin" + android:layout_marginEnd="@dimen/call_entry_padding" + android:layout_below="@id/post_call_note" + android:maxLines="2" + android:visibility="gone"/> <View android:id="@+id/divider" android:layout_width="match_parent" android:layout_height="1dp" - android:layout_below="@id/post_call_note" android:layout_marginTop="@dimen/ec_divider_top_bottom_margin" android:layout_marginBottom="@dimen/ec_divider_top_bottom_margin" android:layout_marginStart="@dimen/call_entry_text_left_margin" + android:layout_below="@id/rtt_transcript" android:background="#12000000" android:visibility="gone"/> </RelativeLayout>
\ No newline at end of file diff --git a/java/com/android/dialer/calldetails/res/values/strings.xml b/java/com/android/dialer/calldetails/res/values/strings.xml index f81696034..c3fff20bc 100644 --- a/java/com/android/dialer/calldetails/res/values/strings.xml +++ b/java/com/android/dialer/calldetails/res/values/strings.xml @@ -55,4 +55,10 @@ <!-- A fallback string for the assisted dialing header incase parsing failes.. [CHAR LIMIT=NONE] --> <string name="assisted_dialing_country_code_entry_failure">Assisted dialing was used</string> + + <!-- String shown when RTT transcript is not available for any reason. [CHAR LIMIT=NONE] --> + <string name="rtt_transcript_not_available">Transcript available only for calls with messaging</string> + + <!-- String shown when RTT transcript is available. [CHAR LIMIT=NONE] --> + <string name="rtt_transcript_link">See transcript</string> </resources> diff --git a/java/com/android/dialer/calldetails/res/values/styles.xml b/java/com/android/dialer/calldetails/res/values/styles.xml index 1a2b52994..93567ef73 100644 --- a/java/com/android/dialer/calldetails/res/values/styles.xml +++ b/java/com/android/dialer/calldetails/res/values/styles.xml @@ -27,4 +27,16 @@ <item name="android:textColor">#8A000000</item> <item name="android:textSize">14sp</item> </style> + + <style name="RttTranscriptLink"> + <item name="android:fontFamily">sans-serif-medium</item> + <item name="android:textColor">@color/dialer_link_color</item> + <item name="android:textAllCaps">true</item> + <item name="textAllCaps">true</item> + </style> + <style name="RttTranscriptMessage" parent="SecondaryText"> + <item name="android:fontFamily">sans-serif</item> + <item name="android:textAllCaps">false</item> + <item name="textAllCaps">false</item> + </style> </resources>
\ No newline at end of file |