• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<!-- A layout to select a certificate, akin to a file selector on web pages. -->
18<!-- Extends LinearLayout -->
19<com.android.email.view.CertificateSelector
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:layout_margin="8dip"
24    android:gravity="center_vertical" >
25
26    <Button
27        android:id="@+id/select_button"
28        style="@style/accountSetupButton"
29        android:layout_width="wrap_content"
30        android:layout_height="wrap_content"
31        android:layout_alignParentRight="true"
32        android:text="@string/account_setup_exchange_use_certificate" />
33
34    <TextView
35        android:id="@+id/title"
36        android:layout_width="wrap_content"
37        android:layout_height="wrap_content"
38        android:layout_alignParentTop="true"
39        android:layout_alignParentLeft="true"
40        android:layout_toLeftOf="@+id/select_button"
41        android:textStyle="bold"
42        android:text="@string/account_setup_exchange_certificate_title" />
43
44    <TextView
45        android:id="@+id/certificate_alias"
46        android:layout_width="wrap_content"
47        android:layout_height="wrap_content"
48        android:layout_marginLeft="16dip"
49        android:layout_below="@+id/title"
50        android:layout_alignParentLeft="true"
51        android:layout_toLeftOf="@+id/select_button"
52        android:textColor="@color/text_secondary_color"
53        android:singleLine="true"
54        android:ellipsize="end"
55        android:text="@string/account_setup_exchange_no_certificate" />
56
57</com.android.email.view.CertificateSelector>
58