diff options
author | wangqi <wangqi@google.com> | 2018-05-21 12:29:32 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-05-21 13:18:02 -0700 |
commit | 71a22dc081e458706f07beb1684087dc4a6aedf5 (patch) | |
tree | d43592dc0b93433f7b7aa8c82888c9ad69ed8d40 /java/com/android/dialer/calllog/ui/res/layout/new_call_log_promotion_card.xml | |
parent | 929539eb864822d669265b142bdcc49b6cf8ea6b (diff) |
Add promotion module.
Refactor Duo disclosure card to general promotion card.
Bug: 78905507
Test: unit tests
PiperOrigin-RevId: 197436677
Change-Id: I511c39308cadfb96ee4519b71ca29b75d0e6750b
Diffstat (limited to 'java/com/android/dialer/calllog/ui/res/layout/new_call_log_promotion_card.xml')
-rw-r--r-- | java/com/android/dialer/calllog/ui/res/layout/new_call_log_promotion_card.xml | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/java/com/android/dialer/calllog/ui/res/layout/new_call_log_promotion_card.xml b/java/com/android/dialer/calllog/ui/res/layout/new_call_log_promotion_card.xml new file mode 100644 index 000000000..0e6d551fb --- /dev/null +++ b/java/com/android/dialer/calllog/ui/res/layout/new_call_log_promotion_card.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2018 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License + --> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="?android:attr/colorBackground" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="16dp" + android:paddingStart="16dp" + android:paddingEnd="24dp" + android:clipChildren="false" + android:clipToPadding="false" + android:orientation="horizontal"> + + <ImageView + android:id="@+id/new_call_log_promotion_card_icon" + android:layout_width="40dp" + android:layout_height="40dp" + android:layout_marginEnd="16dp" + android:importantForAccessibility="no"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dp" + android:orientation="vertical"> + + <TextView + android:id="@+id/new_call_log_promotion_card_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="12dp" + android:fontFamily="sans-serif-medium" + android:textColor="@color/primary_material_dark" + android:textSize="@dimen/call_log_primary_text_size"/> + <TextView + android:id="@+id/new_call_log_promotion_card_details" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="16dp" + android:lineSpacingExtra="8dp" + android:textColor="@color/primary_material_dark" + android:textSize="14sp"/> + <Button + android:id="@+id/new_call_log_promotion_card_ok" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="6dp" + android:layout_marginBottom="2dp" + android:layout_gravity="end" + android:paddingLeft="14dp" + android:paddingRight="14dp" + android:text="@string/ok_got_it" + android:textSize="14sp"/> + </LinearLayout> + </LinearLayout> + + <!-- The boundary line at the bottom --> + <View + android:layout_width="match_parent" + android:layout_height="1dp" + android:layout_marginTop="8dp" + android:background="#DBDBDB"/> +</LinearLayout> |