aboutsummaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2013-03-16 18:14:21 +0100
committerJorge Ruesga <jorge@ruesga.com>2013-03-16 18:20:12 +0100
commit4477f9674d7fea30864230ff5e56550af3d94086 (patch)
treedcc6a0d3cbd395d235d86301e0ad8d9cb2ecbd11 /res/layout
parentf2381585edb66e9511e8ed7cad6fb423ee290ab2 (diff)
downloadandroid_packages_apps_CMFileManager-4477f9674d7fea30864230ff5e56550af3d94086.tar.gz
android_packages_apps_CMFileManager-4477f9674d7fea30864230ff5e56550af3d94086.tar.bz2
android_packages_apps_CMFileManager-4477f9674d7fea30864230ff5e56550af3d94086.zip
CMFM: CYAN-285 - Add ability to calculate file checksums
Added support for compute MD5 and SHA1 file checksums Patchset 2: Remove trailing whitespaces Change-Id: I46cbd0d451eea76e259bdddc485774bbfd34cdc0 JIRA: https://jira.cyanogenmod.org/browse/CYAN-285 Bugfix: CYAN-285 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/compute_checksum_dialog.xml132
1 files changed, 132 insertions, 0 deletions
diff --git a/res/layout/compute_checksum_dialog.xml b/res/layout/compute_checksum_dialog.xml
new file mode 100644
index 00000000..c737b07b
--- /dev/null
+++ b/res/layout/compute_checksum_dialog.xml
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 The CyanogenMod 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="match_parent"
+ android:layout_margin="@dimen/extra_large_margin"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/checksum_filename_label"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/extra_large_margin"
+ android:layout_marginRight="@dimen/extra_large_margin"
+ android:layout_marginTop="@dimen/extra_large_margin"
+ android:gravity="left|center_vertical"
+ android:text="@string/compute_checksum_filename_label"
+ android:textAppearance="@style/primary_text_appearance" />
+
+ <TextView
+ android:id="@+id/checksum_filename"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/extra_large_margin"
+ android:layout_marginRight="@dimen/extra_large_margin"
+ android:gravity="left|center_vertical"
+ android:textAppearance="@style/secondary_text_appearance" />
+
+ <TextView
+ android:id="@+id/checksum_md5_label"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/extra_large_margin"
+ android:layout_marginRight="@dimen/extra_large_margin"
+ android:layout_marginTop="@dimen/extra_large_margin"
+ android:gravity="left|center_vertical"
+ android:text="@string/compute_checksum_md5_label"
+ android:textAppearance="@style/primary_text_appearance" />
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/extra_large_margin"
+ android:layout_marginRight="@dimen/extra_large_margin">
+
+ <com.cyanogenmod.filemanager.ui.widgets.ButtonItem
+ android:id="@+id/bt_md5_clipboard"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentRight="true"
+ android:contentDescription="@string/copy_text_cd" />
+
+ <EditText
+ android:id="@+id/checksum_md5"
+ android:layout_width="match_parent"
+ android:layout_height="64dp"
+ android:singleLine="false"
+ android:gravity="top|left"
+ android:cursorVisible="true"
+ android:background="@color/console_bg"
+ android:imeOptions="actionNone|flagNoFullscreen"
+ android:inputType="textMultiLine|textImeMultiLine"
+ android:focusable="false"
+ android:layout_toLeftOf="@id/bt_md5_clipboard"
+ android:layout_alignTop="@id/bt_md5_clipboard"
+ android:layout_alignBottom="@id/bt_md5_clipboard"
+ android:layout_marginRight="@dimen/default_margin"
+ android:text="@string/compute_checksum_computing_checksum_msg"
+ android:textAppearance="@style/console_text_appearance" />
+ </RelativeLayout>
+
+ <TextView
+ android:id="@+id/checksum_sha1_label"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/extra_large_margin"
+ android:layout_marginRight="@dimen/extra_large_margin"
+ android:layout_marginTop="@dimen/extra_large_margin"
+ android:gravity="left|center_vertical"
+ android:text="@string/compute_checksum_sha1_label"
+ android:textAppearance="@style/primary_text_appearance" />
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/extra_large_margin"
+ android:layout_marginRight="@dimen/extra_large_margin"
+ android:layout_marginBottom="@dimen/extra_large_margin">
+
+ <com.cyanogenmod.filemanager.ui.widgets.ButtonItem
+ android:id="@+id/bt_sha1_clipboard"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentRight="true"
+ android:contentDescription="@string/copy_text_cd" />
+
+ <EditText
+ android:id="@+id/checksum_sha1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:singleLine="false"
+ android:gravity="top|left"
+ android:cursorVisible="true"
+ android:background="@color/console_bg"
+ android:imeOptions="actionNone|flagNoFullscreen"
+ android:inputType="textMultiLine|textImeMultiLine"
+ android:focusable="false"
+ android:layout_toLeftOf="@id/bt_sha1_clipboard"
+ android:layout_alignTop="@id/bt_sha1_clipboard"
+ android:layout_alignBottom="@id/bt_sha1_clipboard"
+ android:layout_marginRight="@dimen/default_margin"
+ android:text="@string/compute_checksum_computing_checksum_msg"
+ android:textAppearance="@style/console_text_appearance" />
+ </RelativeLayout>
+
+</LinearLayout>