diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:32:16 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:32:16 -0800 |
commit | 0c90888c75eed12f6e2e14a9044faf50bd4af8ed (patch) | |
tree | 266c059a147232a297b2d956e04397c0f6683bc4 /res/layout | |
parent | 8611831e36b71c844a14788998728f3cd625b833 (diff) | |
download | packages_apps_Browser-0c90888c75eed12f6e2e14a9044faf50bd4af8ed.zip packages_apps_Browser-0c90888c75eed12f6e2e14a9044faf50bd4af8ed.tar.gz packages_apps_Browser-0c90888c75eed12f6e2e14a9044faf50bd4af8ed.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'res/layout')
25 files changed, 1843 insertions, 0 deletions
diff --git a/res/layout/add_new_bookmark.xml b/res/layout/add_new_bookmark.xml new file mode 100644 index 0000000..bb56b93 --- /dev/null +++ b/res/layout/add_new_bookmark.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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="fill_parent" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight" + android:orientation="horizontal" + android:paddingRight="6dip" + android:paddingLeft="6dip" + android:paddingTop="5dip" + android:paddingBottom="5dip" + android:gravity="center_vertical" + > + <ImageView android:id="@+id/favicon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="5dip" + android:layout_marginRight="11dip" + android:focusable="false" + android:src="@*android:drawable/sym_action_add" + android:scaleType="fitCenter" + /> + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + > + <TextView android:id="@+id/title" + android:text="@string/add_new_bookmark" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textStyle="bold" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="2dip" + /> + <TextView android:id="@+id/url" + android:textAppearance="?android:attr/textAppearanceSmall" + android:maxLines="1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:ellipsize="end" + /> + </LinearLayout> +</LinearLayout> diff --git a/res/layout/browser_add_bookmark.xml b/res/layout/browser_add_bookmark.xml new file mode 100644 index 0000000..ca84f30 --- /dev/null +++ b/res/layout/browser_add_bookmark.xml @@ -0,0 +1,97 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2007 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="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + > + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:orientation="vertical" + android:paddingTop="5dip" + android:paddingBottom="13dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" > + + <TextView + android:id="@+id/titleText" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/name" + android:gravity="left" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <EditText + android:id="@+id/title" + android:layout_height="wrap_content" + android:layout_width="250dip" + android:gravity="fill_horizontal" + android:inputType="textCapSentences" + android:selectAllOnFocus="true" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + + + <TextView + android:id="@+id/addressText" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/location" + android:gravity="left" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <EditText + android:id="@+id/address" + android:layout_height="wrap_content" + android:layout_width="250dip" + android:hint="@string/http" + android:gravity="fill_horizontal" + android:inputType="textUri" + android:selectAllOnFocus="true" + android:textAppearance="?android:attr/textAppearanceMedium" /> + </LinearLayout> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="#c6c3c6" + android:minHeight="54dip" + android:orientation="horizontal" + android:paddingTop="4dip" + android:paddingLeft="2dip" + android:paddingRight="2dip" > + <Button android:id="@+id/OK" + android:text="@string/save" + android:layout_width="0dip" + android:layout_gravity="left" + android:layout_weight="1" + android:maxLines="2" + android:layout_height="wrap_content" /> + <Button android:id="@+id/cancel" + android:text="@string/do_not_save" + android:layout_width="0dip" + android:layout_gravity="right" + android:layout_weight="1" + android:maxLines="2" + android:layout_height="wrap_content" /> + </LinearLayout> + +</LinearLayout> + diff --git a/res/layout/browser_bookmarks_page.xml b/res/layout/browser_bookmarks_page.xml new file mode 100644 index 0000000..3fb0308 --- /dev/null +++ b/res/layout/browser_bookmarks_page.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2006 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:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > + <ListView android:id="@+id/list" + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="1" + /> +</LinearLayout> diff --git a/res/layout/browser_download_item.xml b/res/layout/browser_download_item.xml new file mode 100644 index 0000000..c26aab9 --- /dev/null +++ b/res/layout/browser_download_item.xml @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** assets/res/any/layout/browser_bookmark_item.xml +** +** Copyright 2006, 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. +*/ +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + + <ImageView android:id="@+id/download_icon" + android:layout_width="@android:dimen/app_icon_size" + android:layout_height="@android:dimen/app_icon_size" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:scaleType="fitCenter" + /> + + <TextView android:id="@+id/download_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:maxLines="1" + android:layout_alignParentTop="true" + android:layout_toRightOf="@id/download_icon" + android:textAppearance="?android:attr/textAppearanceMedium" + /> + <TextView android:id="@+id/domain" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toRightOf="@id/download_icon" + android:layout_below="@id/download_title" + android:maxLines="1" + android:textAppearance="?android:attr/textAppearanceSmall" + /> + + <TextView android:id="@+id/complete_date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:maxLines="1" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_below="@id/domain" + android:layout_alignParentRight="true" + android:visibility="gone" + /> + + <TextView android:id="@+id/complete_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/domain" + android:layout_toRightOf="@id/download_icon" + android:layout_toLeftOf="@id/complete_date" + android:textAppearance="?android:attr/textAppearanceSmall" + android:visibility="gone" + /> + + <ProgressBar android:id="@+id/download_progress" + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/download_icon" + android:layout_alignParentLeft="true" + android:layout_alignParentRight="true" + android:max="100" + /> + <TextView android:id="@+id/progress_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:maxLines="1" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_centerHorizontal="true" + android:layout_below="@id/download_progress" + /> +</RelativeLayout> + diff --git a/res/layout/browser_downloads_page.xml b/res/layout/browser_downloads_page.xml new file mode 100644 index 0000000..c83a727 --- /dev/null +++ b/res/layout/browser_downloads_page.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** assets/res/any/layout/browser_bookmarks_page.xml +** +** Copyright 2006, 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. +*/ +--> + +<ListView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/list" + android:layout_width="fill_parent" + android:layout_height="fill_parent"/> diff --git a/res/layout/browser_find.xml b/res/layout/browser_find.xml new file mode 100644 index 0000000..000799f --- /dev/null +++ b/res/layout/browser_find.xml @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2007 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:id="@+id/findControls" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingTop="5dip" + android:paddingLeft="4dip" + android:paddingRight="4dip" + android:paddingBottom="1dip" + android:background="@android:drawable/bottom_bar"> + <ImageButton + android:src="@drawable/ic_btn_find_prev" + android:id="@+id/previous" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + /> + + <ImageButton + android:src="@drawable/ic_btn_find_next" + android:id="@+id/next" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + /> + + <LinearLayout + android:layout_height="wrap_content" + android:layout_width="0dip" + android:layout_weight="1" + android:orientation="vertical" + android:layout_marginRight="6dip" + > + <EditText android:id="@+id/edit" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scrollHorizontally="true" + android:inputType="text" + android:hint="@string/find_dot" + /> + <LinearLayout android:id="@+id/matches_view" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:orientation="horizontal" + android:layout_gravity="right" + android:visibility="invisible" + > + <TextView android:id="@+id/matches" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="right" + android:text="@string/zero" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorSecondaryInverse" + /> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="3dip" + android:layout_gravity="right" + android:text="@string/matches_found" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorSecondaryInverse" + /> + </LinearLayout> + </LinearLayout> + <ImageButton android:id="@+id/done" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/ic_btn_close_panel" + /> +</LinearLayout> + diff --git a/res/layout/browser_subwindow.xml b/res/layout/browser_subwindow.xml new file mode 100644 index 0000000..5b00bf7 --- /dev/null +++ b/res/layout/browser_subwindow.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2007 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. +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/subwindow_container" + android:layout_width="fill_parent" + android:layout_height="fill_parent" > + <FrameLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:padding="10dip" > + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:background="@android:drawable/dialog_frame" > + <WebView android:id="@+id/webview" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1" /> + </LinearLayout> + </FrameLayout> + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:layout_gravity="right" + android:gravity="right" > + <ImageButton android:id="@+id/subwindow_close" + android:focusable="true" + android:padding="0dip" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@android:drawable/btn_default" + android:src="@android:drawable/ic_menu_close_clear_cancel" /> + </LinearLayout> +</RelativeLayout> diff --git a/res/layout/empty_history.xml b/res/layout/empty_history.xml new file mode 100644 index 0000000..cbaffd0 --- /dev/null +++ b/res/layout/empty_history.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:text="@string/empty_history" + android:background="@color/black" + android:textColor="@color/white" + android:gravity="center" + android:textStyle="bold" + /> diff --git a/res/layout/gears_dialog.xml b/res/layout/gears_dialog.xml new file mode 100644 index 0000000..57d4f0b --- /dev/null +++ b/res/layout/gears_dialog.xml @@ -0,0 +1,175 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright 2008, 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:drawingCacheQuality="auto" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="0dip"> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="10dip"> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <ImageView + android:id="@+id/icon" + android:paddingRight="10dip" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true"/> + + <TextView + android:id="@+id/dialog_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:gravity="center_vertical" + android:visibility="gone" + android:textSize="16dip" + android:textStyle="bold" + android:textColor="@color/white"/> + + <TextView + android:id="@+id/dialog_message" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:visibility="gone" + android:gravity="center_vertical" + android:textSize="20dip" + android:textColor="@color/white"/> + + </LinearLayout> + + </LinearLayout> + + </LinearLayout> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <ImageView android:id="@+id/titleDivider" + android:layout_width="fill_parent" + android:layout_height="1dip" + android:scaleType="fitXY" + android:gravity="fill_horizontal" + android:src="@drawable/dialog_divider_horizontal_light" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip"/> + + </LinearLayout> + + <LinearLayout + android:id="@+id/panel_content" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:padding="0dip" + android:layout_weight="1" /> + + <RelativeLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingLeft="10dip" + android:paddingRight="10dip" + android:paddingTop="0dip"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + + <TextView + android:id="@+id/selection" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textSize="13dip" + android:gravity="right" + android:visibility="gone" + android:textColor="@color/white"/> + + </LinearLayout> + + </RelativeLayout> + + <LinearLayout + android:layout_width="fill_parent" + android:background="@color/gray" + android:layout_height="wrap_content" + android:paddingTop="4dip" + android:paddingLeft="0dip" + android:paddingRight="0dip"> + + <LinearLayout android:id="@+id/leftSpacer" + android:layout_weight="0.25" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:visibility="gone"/> + + <Button + android:id="@+id/button_allow" + android:layout_width="96px" + android:layout_height="48px" + android:layout_gravity="left" + android:layout_weight="1" + android:maxLines="2" + android:textSize="13dip"/> + + <Button + android:id="@+id/button_alwaysdeny" + android:layout_width="96px" + android:layout_height="48px" + android:layout_gravity="left" + android:layout_weight="1" + android:maxLines="2" + android:textSize="13dip"/> + + <Button + android:id="@+id/button_deny" + android:layout_width="96px" + android:layout_height="48px" + android:layout_gravity="right" + android:layout_weight="1" + android:maxLines="2" + android:textSize="13dip"/> + + <LinearLayout android:id="@+id/rightSpacer" + android:layout_width="0dip" + android:layout_weight="0.25" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:visibility="gone" /> + + </LinearLayout> + +</LinearLayout> diff --git a/res/layout/gears_dialog_permission.xml b/res/layout/gears_dialog_permission.xml new file mode 100644 index 0000000..01914e2 --- /dev/null +++ b/res/layout/gears_dialog_permission.xml @@ -0,0 +1,111 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright 2008, 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. + */ +--> + +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingBottom="10dip"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="fill_parent" + android:paddingTop="10dip" + android:paddingLeft="10dip" + android:paddingRight="10dip" + android:layout_height="wrap_content"> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <ImageView + android:id="@+id/origin_icon" + android:padding="10dip" + android:layout_centerHorizontal="true" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:visibility="gone" + android:adjustViewBounds="true" + android:src="@drawable/gears"/> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:padding="4dip" + android:orientation="vertical"> + + <TextView + android:id="@+id/origin_title" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:visibility="gone" + android:textStyle="bold" + android:gravity="left" + android:textSize="16dip" + android:textColor="@color/white"/> + + <TextView + android:id="@+id/origin_subtitle" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:visibility="gone" + android:gravity="left" + android:textSize="13dip" + android:textColor="@color/white"/> + + <TextView + android:id="@+id/origin_message" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:visibility="gone" + android:paddingTop="10dip" + android:gravity="left" + android:textSize="13dip" + android:textColor="@color/white"/> + + </LinearLayout> + + </LinearLayout> + + <TextView + android:id="@+id/privacy_policy_label" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingTop="10dip" + android:gravity="center_horizontal" + android:textSize="13dip" + android:textStyle="italic" + android:textColor="@color/white" + android:visibility="gone" + android:text="@string/privacy_policy" /> + + <TextView + android:id="@+id/permission_dialog_message" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingLeft="4dip" + android:paddingTop="10dip" + android:gravity="left" + android:textSize="16dip" + android:textColor="@color/white"/> + + </LinearLayout> + +</ScrollView> diff --git a/res/layout/gears_dialog_settings.xml b/res/layout/gears_dialog_settings.xml new file mode 100644 index 0000000..a9026db --- /dev/null +++ b/res/layout/gears_dialog_settings.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright 2008, 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:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@color/gray" + android:padding="1px"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@color/white"> + + <ListView android:id="@+id/sites_list" + android:padding="4dip" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + style="@android:style/Widget.ListView.White" /> + + </LinearLayout> + + </LinearLayout> + + <TextView + android:id="@+id/gears_version" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingTop="10dip" + android:gravity="center_horizontal" + android:textSize="13dip" + android:textStyle="italic" + android:textColor="@color/black" /> + +</LinearLayout> diff --git a/res/layout/gears_dialog_settings_row.xml b/res/layout/gears_dialog_settings_row.xml new file mode 100644 index 0000000..11d757a --- /dev/null +++ b/res/layout/gears_dialog_settings_row.xml @@ -0,0 +1,127 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright 2008, 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:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textSize="13dip" + android:background="@color/white" + android:textColor="@color/black"> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:padding="4dip"> + + <TextView + android:id="@+id/origin_name" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:textColor="@color/black" + android:textStyle="bold"/> + + <Button + android:id="@+id/origin_remove" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + style="@style/gears_button" + android:text="@string/remove"/> + + </LinearLayout> + + <TableLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:stretchColumns="0" + android:shrinkColumns="0"> + + <TableRow + android:id="@+id/local_storage_choice" + android:visibility="gone"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:textColor="@color/black" + android:gravity="center_vertical" + android:text="@string/local_storage"/> + + <RadioGroup + android:orientation="horizontal" + android:layout_width="wrap_content" + android:layout_height="fill_parent"> + <RadioButton + android:id="@+id/local_storage_allowed" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="@color/black" + android:textSize="13dip" + android:text="@string/allowed"/> + + <RadioButton + android:id="@+id/local_storage_denied" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="@color/black" + android:textSize="13dip" + android:text="@string/denied"/> + </RadioGroup> + + </TableRow> + + <TableRow + android:id="@+id/location_data_choice" + android:visibility="gone"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:textColor="@color/black" + android:layout_gravity="center_vertical" + android:text="@string/location"/> + + <RadioGroup + android:orientation="horizontal" + android:layout_width="wrap_content" + android:layout_height="fill_parent"> + <RadioButton + android:id="@+id/location_data_allowed" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="@color/black" + android:textSize="13dip" + android:text="@string/allowed"/> + + <RadioButton + android:id="@+id/location_data_denied" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="@color/black" + android:textSize="13dip" + android:text="@string/denied"/> + </RadioGroup> + + </TableRow> + + </TableLayout> + +</LinearLayout> diff --git a/res/layout/gears_settings.xml b/res/layout/gears_settings.xml new file mode 100644 index 0000000..e3a4cbe --- /dev/null +++ b/res/layout/gears_settings.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright 2008, 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:drawingCacheQuality="auto" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="0dip"> + + <ListView android:id="@+id/sites_list" + android:padding="4dip" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <ImageView android:id="@+id/titleDivider" + android:layout_width="fill_parent" + android:layout_height="1dip" + android:scaleType="fitXY" + android:gravity="fill_horizontal" + android:src="@drawable/dialog_divider_horizontal_light" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip"/> + + </LinearLayout> + +</LinearLayout> diff --git a/res/layout/gears_settings_row.xml b/res/layout/gears_settings_row.xml new file mode 100644 index 0000000..6a1e851 --- /dev/null +++ b/res/layout/gears_settings_row.xml @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright 2008, 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. + */ +--> + +<com.android.internal.view.menu.ListMenuItemView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="?android:attr/listPreferredItemHeight"> + + <RelativeLayout + android:layout_width="0dip" + android:layout_weight="1" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginLeft="6dip" + android:layout_marginRight="6dip" + android:duplicateParentState="true"> + + <TextView + android:id="@+id/title" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:singleLine="true" + android:duplicateParentState="true" + android:ellipsize="start" + android:fadingEdge="none"/> + + <TextView + android:id="@+id/subtitle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/title" + android:layout_alignParentLeft="true" + android:textAppearance="?android:attr/textAppearanceSmall" + android:singleLine="false" + android:duplicateParentState="true"/> + + <TextView + android:id="@+id/info" + android:visibility="gone" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/subtitle" + android:textAppearance="?android:attr/textAppearanceMedium" + android:singleLine="true" + android:layout_centerHorizontal="true" + android:duplicateParentState="true" + android:ellipsize="marquee" + android:fadingEdge="horizontal"/> + + </RelativeLayout> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:paddingLeft="10dip" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <ImageView + android:id="@+id/icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:visibility="gone" + android:src="@drawable/ic_dialog_menu_generic" /> + + <CheckBox + android:id="@+id/checkbox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:drawablePadding="10dip" + android:focusable="false" + android:clickable="false" + android:duplicateParentState="true" + android:visibility="gone" + android:textSize="16dip"/> + + </LinearLayout> + +</com.android.internal.view.menu.ListMenuItemView> diff --git a/res/layout/history_header.xml b/res/layout/history_header.xml new file mode 100644 index 0000000..a390c37 --- /dev/null +++ b/res/layout/history_header.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 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. +--> + +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight" + android:textAppearance="?android:attr/textAppearanceMedium" + android:paddingLeft="35dip" + android:gravity="center_vertical" + />
\ No newline at end of file diff --git a/res/layout/history_item.xml b/res/layout/history_item.xml new file mode 100644 index 0000000..50903a4 --- /dev/null +++ b/res/layout/history_item.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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="fill_parent" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight" + android:orientation="horizontal" + android:paddingRight="6dip" + android:paddingLeft="6dip" + android:paddingTop="5dip" + android:paddingBottom="5dip" + android:gravity="center_vertical" + > + <ImageView android:id="@+id/favicon" + android:layout_width="20dip" + android:layout_height="20dip" + android:layout_marginLeft="5dip" + android:layout_marginRight="11dip" + android:padding="2dip" + android:background="@drawable/fav_icn_background" + android:src="@drawable/app_web_browser_sm" + /> + <LinearLayout android:layout_width="0dip" + android:layout_weight="1" + android:layout_height="wrap_content" + android:orientation="vertical" + > + <TextView android:id="@+id/title" + android:textAppearance="?android:attr/textAppearanceMedium" + android:maxLines="1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:ellipsize="end" + /> + <TextView android:id="@+id/url" + android:textAppearance="?android:attr/textAppearanceSmall" + android:maxLines="1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:ellipsize="end" + /> + </LinearLayout> + <CheckBox android:id="@+id/star" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:focusable="false" + android:button="@android:drawable/btn_star" + /> +</LinearLayout> diff --git a/res/layout/http_authentication.xml b/res/layout/http_authentication.xml new file mode 100644 index 0000000..01cd3af --- /dev/null +++ b/res/layout/http_authentication.xml @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical"> + + <TextView + android:id="@+id/username_view" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textSize="18sp" + android:textColor="@color/username_text" + android:text="@string/username" + android:gravity="left" + android:layout_marginTop="12dip" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" /> + + <EditText + android:id="@+id/username_edit" + android:textSize="18sp" + android:textColor="@color/username_edit" + android:scrollHorizontally="true" + android:inputType="text" + android:gravity="fill_horizontal" + android:layout_weight="1" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="12dip" /> + + <TextView + android:id="@+id/password_view" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textSize="18sp" + android:textColor="@color/password_text" + android:text="@string/password" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" /> + + <EditText + android:id="@+id/password_edit" + android:textSize="18sp" + android:textColor="@color/password_edit" + android:scrollHorizontally="true" + android:inputType="textPassword" + android:gravity="fill_horizontal" + android:layout_weight="1" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="12dip" /> +</TableLayout> diff --git a/res/layout/no_downloads.xml b/res/layout/no_downloads.xml new file mode 100644 index 0000000..1c1e1cd --- /dev/null +++ b/res/layout/no_downloads.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:text="@string/no_downloads" + android:background="@color/black" + android:textColor="@color/white" + android:gravity="center" + android:textStyle="bold" + /> diff --git a/res/layout/page_info.xml b/res/layout/page_info.xml new file mode 100644 index 0000000..ee45082 --- /dev/null +++ b/res/layout/page_info.xml @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<ScrollView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <!-- Title: --> + <TextView + android:id="@+id/title" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textStyle="bold" + android:textSize="14sp" + android:textColor="@color/white" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginTop="12dip" + android:layout_marginBottom="12dip" /> + + <!-- Address: --> + <TableLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:id="@+id/address_header" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/page_info_address" + android:textSize="14sp" + android:textColor="@color/white" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="10dip" /> + + <TextView + android:id="@+id/address" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textSize="14sp" + android:textColor="@color/white" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="12dip" /> + + </TableLayout> + + </LinearLayout> + +</ScrollView> diff --git a/res/layout/ssl_certificate.xml b/res/layout/ssl_certificate.xml new file mode 100644 index 0000000..9f9bbf1 --- /dev/null +++ b/res/layout/ssl_certificate.xml @@ -0,0 +1,280 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<ScrollView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <!-- Placeholder for the success message or one or more warnings --> + <LinearLayout + android:id="@+id/placeholder" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:layout_marginTop="12dip" + android:orientation="vertical" /> + + <!-- Dialog-title line separator --> + <ImageView + android:id="@+id/title_separator" + android:src="@android:drawable/divider_horizontal_dark" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY" + android:layout_weight="1" + android:gravity="fill_horizontal" + android:layout_marginRight="20dip" + android:layout_marginLeft="20dip" + android:layout_marginBottom="12dip" /> + + <TableLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <!-- Issued to: --> + <TextView + android:id="@+id/issued_to_header" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/issued_to" + android:textStyle="bold" + android:textSize="14sp" + android:textColor="@color/ssl_text_label" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="10dip" /> + + <!-- Common name: --> + <TextView + android:id="@+id/to_common_header" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/common_name" + android:textSize="14sp" + android:textColor="@color/ssl_text_label" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" /> + + <TextView + android:id="@+id/to_common" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textSize="14sp" + android:textColor="@color/ssl_text_value" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="10dip" /> + + <!-- Organization: --> + <TextView + android:id="@+id/to_org_header" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/org_name" + android:textSize="14sp" + android:textColor="@color/ssl_text_label" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" /> + + <TextView + android:id="@+id/to_org" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textSize="14sp" + android:textColor="@color/ssl_text_value" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="10dip" /> + + <!-- Organizational unit: --> + <TextView + android:id="@+id/to_org_unit_header" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/org_unit" + android:textSize="14sp" + android:textColor="@color/ssl_text_label" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" /> + + <TextView + android:id="@+id/to_org_unit" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textSize="14sp" + android:textColor="@color/ssl_text_value" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="12dip" /> + + <!-- Issued by: --> + <TextView + android:id="@+id/issued_to_header" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/issued_by" + android:textStyle="bold" + android:textSize="14sp" + android:textColor="@color/ssl_text_label" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="10dip" /> + + <!-- Common name: --> + <TextView + android:id="@+id/by_common_header" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/common_name" + android:textSize="14sp" + android:textColor="@color/ssl_text_label" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" /> + + <TextView + android:id="@+id/by_common" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textSize="14sp" + android:textColor="@color/ssl_text_value" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="10dip" /> + + <!-- Organization: --> + <TextView + android:id="@+id/by_org_header" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/org_name" + android:textSize="14sp" + android:textColor="@color/ssl_text_label" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" /> + + <TextView + android:id="@+id/by_org" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textSize="14sp" + android:textColor="@color/ssl_text_value" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="10dip" /> + + <!-- Organizational unit: --> + <TextView + android:id="@+id/by_org_unit_header" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/org_unit" + android:textSize="14sp" + android:textColor="@color/ssl_text_label" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" /> + + <TextView + android:id="@+id/by_org_unit" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textSize="14sp" + android:textColor="@color/ssl_text_value" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="12dip" /> + + <!-- Validity Dates: --> + <TextView + android:id="@+id/validity_header" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/validity_period" + android:textStyle="bold" + android:textSize="14sp" + android:textColor="@color/ssl_text_label" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="10dip" /> + + <!-- Issued On: --> + <TextView + android:id="@+id/issued_on_header" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/issued_on" + android:textSize="14sp" + android:textColor="@color/ssl_text_label" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" /> + + <TextView + android:id="@+id/issued_on" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textSize="14sp" + android:textColor="@color/ssl_text_value" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="10dip" /> + + <!-- Expires On: --> + <TextView + android:id="@+id/expires_on_header" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/expires_on" + android:textSize="14sp" + android:textColor="@color/ssl_text_label" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" /> + + <TextView + android:id="@+id/expires_on" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textSize="14sp" + android:textColor="@color/ssl_text_value" + android:gravity="left" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="12dip" /> + + </TableLayout> + + </LinearLayout> + +</ScrollView> diff --git a/res/layout/ssl_success.xml b/res/layout/ssl_success.xml new file mode 100644 index 0000000..dad654a --- /dev/null +++ b/res/layout/ssl_success.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <TableRow> + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:scaleType="center" + android:src="@drawable/ic_dialog_browser_security_good" + android:layout_marginLeft="20dip" + android:layout_marginBottom="12dip" /> + + <TextView + android:id="@+id/success" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:gravity="left" + android:layout_weight="1" + android:textSize="18sp" + android:textColor="@color/ssl_text_label" + android:layout_marginLeft="10dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="12dip" /> + </TableRow> + +</TableLayout> diff --git a/res/layout/ssl_warning.xml b/res/layout/ssl_warning.xml new file mode 100644 index 0000000..8bc406a --- /dev/null +++ b/res/layout/ssl_warning.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2007 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. +--> + +<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:shrinkColumns="1" + android:orientation="horizontal" > + + <TableRow> + <ImageView + android:scaleType="center" + android:src="@drawable/ic_dialog_browser_security_bad" + android:layout_marginLeft="20dip" + android:layout_marginBottom="12dip" /> + + <TextView + android:id="@+id/warning" + android:gravity="left" + android:layout_weight="1" + android:textSize="18sp" + android:textColor="@color/ssl_text_label" + android:layout_marginLeft="10dip" + android:layout_marginRight="20dip" + android:layout_marginBottom="12dip" /> + </TableRow> + +</TableLayout> diff --git a/res/layout/ssl_warnings.xml b/res/layout/ssl_warnings.xml new file mode 100644 index 0000000..5a02d97 --- /dev/null +++ b/res/layout/ssl_warnings.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<ScrollView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <!-- Warnings header --> + <TextView + android:id="@+id/warnings_header" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:textSize="18sp" + android:textColor="@color/ssl_text_label" + android:gravity="left" + android:text="@string/ssl_warnings_header" + android:layout_marginRight="20dip" + android:layout_marginLeft="20dip" + android:layout_marginTop="12dip" /> + + <!-- Placeholder for one or more warnings --> + <LinearLayout + android:id="@+id/placeholder" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:layout_marginTop="12dip" + android:orientation="vertical" /> + + </LinearLayout> + +</ScrollView> diff --git a/res/layout/tabitem.xml b/res/layout/tabitem.xml new file mode 100644 index 0000000..9c82972 --- /dev/null +++ b/res/layout/tabitem.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:orientation="vertical" + android:padding="4dip" + android:background="@color/white"> + + <com.android.browser.FakeWebView android:id="@+id/icon" + android:background="@color/black" + android:layout_width="fill_parent" + android:layout_height="fill_parent" /> + + <TextView android:id="@+id/label" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textColor="@color/white" + android:maxLines="1" + android:paddingTop="3dip" + android:paddingBottom="3dip" + android:paddingLeft="2dip" + android:paddingRight="2dip" + android:scrollHorizontally="true" + android:background="#CC000000"/> + + <ImageView android:id="@+id/close" + android:focusable="false" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom|right" + android:paddingTop="14dip" + android:paddingBottom="12dip" + android:paddingLeft="12dip" + android:paddingRight="12dip" + android:src="@android:drawable/btn_dialog" /> + +</FrameLayout> diff --git a/res/layout/tabs.xml b/res/layout/tabs.xml new file mode 100644 index 0000000..7cf5b5d --- /dev/null +++ b/res/layout/tabs.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 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. +--> + +<TabHost xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/tabhost" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + + <TabWidget android:id="@android:id/tabs" + android:layout_width="fill_parent" + android:layout_height="68dip" + android:paddingLeft="1dip" + android:paddingRight="1dip" + android:paddingTop="4dip" + /> + + <FrameLayout android:id="@android:id/tabcontent" + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="1" + /> + </LinearLayout> +</TabHost>
\ No newline at end of file |