aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-24 20:56:06 +0900
committerJean Chalard <jchalard@google.com>2013-04-26 20:51:42 +0900
commitfc26033c37ace38793390403df210c4563368273 (patch)
treeba6b6803b8fcb9952a95b60b8894357bb5f7b943 /java
parentab0c66b9d1f732a0dc372abd6d113d2cac33b8ac (diff)
downloadlatinime-fc26033c37ace38793390403df210c4563368273.tar.gz
latinime-fc26033c37ace38793390403df210c4563368273.tar.xz
latinime-fc26033c37ace38793390403df210c4563368273.zip
[PB11] Add a skeleton class for a self-updating progress bar
Bug: 7600384 Change-Id: I55b51152dd9968a359af091bf309f0d406f63ec4
Diffstat (limited to 'java')
-rw-r--r--java/res/layout/dictionary_line.xml2
-rw-r--r--java/src/com/android/inputmethod/dictionarypack/DictionaryDownloadProgressBar.java31
2 files changed, 32 insertions, 1 deletions
diff --git a/java/res/layout/dictionary_line.xml b/java/res/layout/dictionary_line.xml
index 7a06fb056..428a3a139 100644
--- a/java/res/layout/dictionary_line.xml
+++ b/java/res/layout/dictionary_line.xml
@@ -65,7 +65,7 @@
android:textColor="?android:attr/textColorSecondary"
android:maxLines="1" />
- <ProgressBar
+ <com.android.inputmethod.dictionarypack.DictionaryDownloadProgressBar
android:id="@+id/dictionary_line_progress_bar"
style="@android:style/Widget.Holo.ProgressBar.Horizontal"
android:layout_width="match_parent"
diff --git a/java/src/com/android/inputmethod/dictionarypack/DictionaryDownloadProgressBar.java b/java/src/com/android/inputmethod/dictionarypack/DictionaryDownloadProgressBar.java
new file mode 100644
index 000000000..39cfb60ff
--- /dev/null
+++ b/java/src/com/android/inputmethod/dictionarypack/DictionaryDownloadProgressBar.java
@@ -0,0 +1,31 @@
+/**
+ * Copyright (C) 2013 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.
+ */
+
+package com.android.inputmethod.dictionarypack;
+
+import android.content.Context;
+import android.util.AttributeSet;
+import android.widget.ProgressBar;
+
+public class DictionaryDownloadProgressBar extends ProgressBar {
+ public DictionaryDownloadProgressBar(final Context context) {
+ super(context);
+ }
+
+ public DictionaryDownloadProgressBar(final Context context, final AttributeSet attrs) {
+ super(context, attrs);
+ }
+}