1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
8 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
9 android:layout_width="wrap_content"
10 android:layout_height="wrap_content">
12 <!-- Lint flags this as a false positive overlap. -->
13 <!--suppress RelativeOverlap -->
14 <RelativeLayout android:id="@+id/password_generation_suggestion"
15 android:layout_width="wrap_content"
16 android:layout_height="wrap_content">
18 <ImageView android:id="@+id/password_generation_icon"
19 android:layout_width="wrap_content"
20 android:layout_height="wrap_content"
21 android:layout_marginTop="13dp"
22 android:layout_marginBottom="13dp"
23 android:layout_marginStart="@dimen/password_generation_horizontal_margin"
24 android:layout_marginEnd="@dimen/password_generation_horizontal_margin"
25 android:src="@drawable/infobar_savepassword"
26 android:contentDescription="@null" />
28 <TextView android:id="@+id/password_generation_title"
29 android:layout_toEndOf="@id/password_generation_icon"
30 android:layout_width="wrap_content"
31 android:layout_height="wrap_content"
32 android:paddingTop="@dimen/password_generation_text_vertical_margin"
33 android:paddingEnd="@dimen/password_generation_horizontal_margin"
34 android:singleLine="true"
35 android:textStyle="bold"
36 android:textColor="@color/default_text_color"
37 android:textSize="@dimen/password_generation_text_size"
38 android:includeFontPadding="false"/>
40 <TextView android:id="@+id/password_generation_password"
41 android:layout_toEndOf="@id/password_generation_icon"
42 android:layout_below="@id/password_generation_title"
43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
45 android:paddingBottom="@dimen/password_generation_text_vertical_margin"
46 android:paddingEnd="@dimen/password_generation_horizontal_margin"
47 android:singleLine="true"
48 android:textColor="@color/default_text_color"
49 android:textSize="@dimen/password_generation_text_size"
50 android:includeFontPadding="false"/>
54 <View android:id="@+id/password_generation_divider"
55 android:layout_below="@id/password_generation_suggestion"
56 android:layout_width="wrap_content"
57 android:layout_height="@dimen/password_generation_divider_height"
58 android:background="@color/password_generation_divider_color"/>