Merge lp:~trb143/openlp/Android_Search into lp:openlp/android2

Proposed by Tim Bentley
Status: Merged
Merged at revision: 33
Proposed branch: lp:~trb143/openlp/Android_Search
Merge into: lp:openlp/android2
Diff against target: 1034 lines (+841/-15)
15 files modified
app/app.iml (+208/-10)
app/src/main/java/org/openlp/android2/OpenLP.java (+19/-0)
app/src/main/java/org/openlp/android2/common/NavigationOptions.java (+1/-0)
app/src/main/java/org/openlp/android2/common/OpenLPDialog.java (+2/-1)
app/src/main/java/org/openlp/android2/common/OpenLPHttpClient.java (+1/-1)
app/src/main/java/org/openlp/android2/dialogs/SearchSelectionDialog.java (+135/-0)
app/src/main/java/org/openlp/android2/fragments/NavigationDrawerFragment.java (+5/-1)
app/src/main/java/org/openlp/android2/fragments/SearchFragment.java (+283/-0)
app/src/main/res/layout/fragment_search.xml (+90/-0)
app/src/main/res/layout/search_action_dialog.xml (+40/-0)
app/src/main/res/layout/search_result.xml (+11/-0)
app/src/main/res/layout/search_result_row.xml (+18/-0)
app/src/main/res/layout/spinner_dropdown_item.xml (+11/-0)
app/src/main/res/layout/spinner_list_item.xml (+11/-0)
app/src/main/res/values/strings.xml (+6/-2)
To merge this branch: bzr merge lp:~trb143/openlp/Android_Search
Reviewer Review Type Date Requested Status
Raoul Snyman Approve
Review via email: mp+282125@code.launchpad.net

This proposal supersedes a proposal from 2016-01-10.

Description of the change

Lets get search out the door then start to polish the UI,

To post a comment you must log in.
Revision history for this message
Raoul Snyman (raoul-snyman) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'app/app.iml'
--- app/app.iml 2015-11-15 10:17:08 +0000
+++ app/app.iml 2016-01-10 19:34:28 +0000
@@ -1,5 +1,5 @@
1<?xml version="1.0" encoding="UTF-8"?>1<?xml version="1.0" encoding="UTF-8"?>
2<module external.linked.project.id=":app" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="OpenLP2" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">2<module external.linked.project.id=":app" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="OpenLP2_search" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
3 <component name="FacetManager">3 <component name="FacetManager">
4 <facet type="android-gradle" name="Android-Gradle">4 <facet type="android-gradle" name="Android-Gradle">
5 <configuration>5 <configuration>
@@ -65,27 +65,20 @@
65 <sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />65 <sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
66 <sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />66 <sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
67 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />67 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
68 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
69 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />68 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
70 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/coverage-instrumented-classes" />
71 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />69 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
72 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />70 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
73 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
74 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.1/jars" />71 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.1/jars" />
75 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/design/22.2.1/jars" />72 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/design/22.2.1/jars" />
76 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/22.2.1/jars" />73 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/22.2.1/jars" />
77 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />74 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
78 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
79 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />
80 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/libs" />
81 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
82 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />75 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
83 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/ndk" />
84 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />76 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />
85 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/proguard" />
86 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />77 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
78 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/resources" />
87 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />79 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
88 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />80 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
81 <excludeFolder url="file://$MODULE_DIR$/build/intermediates/tmp" />
89 <excludeFolder url="file://$MODULE_DIR$/build/outputs" />82 <excludeFolder url="file://$MODULE_DIR$/build/outputs" />
90 <excludeFolder url="file://$MODULE_DIR$/build/tmp" />83 <excludeFolder url="file://$MODULE_DIR$/build/tmp" />
91 </content>84 </content>
@@ -97,4 +90,209 @@
97 <orderEntry type="library" exported="" name="design-22.2.1" level="project" />90 <orderEntry type="library" exported="" name="design-22.2.1" level="project" />
98 <orderEntry type="library" exported="" name="appcompat-v7-22.2.1" level="project" />91 <orderEntry type="library" exported="" name="appcompat-v7-22.2.1" level="project" />
99 </component>92 </component>
93 <component name="org.twodividedbyzero.idea.findbugs">
94 <option name="_basePreferences">
95 <map>
96 <entry key="property.analysisEffortLevel" value="default" />
97 <entry key="property.analyzeAfterAutoMake" value="false" />
98 <entry key="property.analyzeAfterCompile" value="false" />
99 <entry key="property.annotationGutterIconEnabled" value="true" />
100 <entry key="property.annotationSuppressWarningsClass" value="edu.umd.cs.findbugs.annotations.SuppressFBWarnings" />
101 <entry key="property.annotationTextRangeMarkupEnabled" value="true" />
102 <entry key="property.exportAsHtml" value="true" />
103 <entry key="property.exportAsXml" value="true" />
104 <entry key="property.exportBaseDir" value="" />
105 <entry key="property.exportCreateArchiveDir" value="false" />
106 <entry key="property.exportOpenBrowser" value="true" />
107 <entry key="property.minPriorityToReport" value="Medium" />
108 <entry key="property.runAnalysisInBackground" value="false" />
109 <entry key="property.showHiddenDetectors" value="false" />
110 <entry key="property.toolWindowToFront" value="true" />
111 </map>
112 </option>
113 <option name="_detectors">
114 <map>
115 <entry key="AppendingToAnObjectOutputStream" value="true" />
116 <entry key="AtomicityProblem" value="true" />
117 <entry key="BadAppletConstructor" value="false" />
118 <entry key="BadResultSetAccess" value="true" />
119 <entry key="BadSyntaxForRegularExpression" value="true" />
120 <entry key="BadUseOfReturnValue" value="true" />
121 <entry key="BadlyOverriddenAdapter" value="true" />
122 <entry key="BooleanReturnNull" value="true" />
123 <entry key="BuildInterproceduralCallGraph" value="false" />
124 <entry key="BuildObligationPolicyDatabase" value="true" />
125 <entry key="BuildStringPassthruGraph" value="true" />
126 <entry key="CallToUnsupportedMethod" value="false" />
127 <entry key="CalledMethods" value="true" />
128 <entry key="CheckCalls" value="false" />
129 <entry key="CheckExpectedWarnings" value="false" />
130 <entry key="CheckImmutableAnnotation" value="true" />
131 <entry key="CheckRelaxingNullnessAnnotation" value="true" />
132 <entry key="CheckTypeQualifiers" value="true" />
133 <entry key="CloneIdiom" value="true" />
134 <entry key="ComparatorIdiom" value="true" />
135 <entry key="ConfusedInheritance" value="true" />
136 <entry key="ConfusionBetweenInheritedAndOuterMethod" value="true" />
137 <entry key="CovariantArrayAssignment" value="false" />
138 <entry key="CrossSiteScripting" value="true" />
139 <entry key="DefaultEncodingDetector" value="true" />
140 <entry key="DoInsideDoPrivileged" value="true" />
141 <entry key="DontCatchIllegalMonitorStateException" value="true" />
142 <entry key="DontIgnoreResultOfPutIfAbsent" value="true" />
143 <entry key="DontUseEnum" value="true" />
144 <entry key="DroppedException" value="true" />
145 <entry key="DumbMethodInvocations" value="true" />
146 <entry key="DumbMethods" value="true" />
147 <entry key="DuplicateBranches" value="true" />
148 <entry key="EmptyZipFileEntry" value="false" />
149 <entry key="EqualsOperandShouldHaveClassCompatibleWithThis" value="true" />
150 <entry key="ExplicitSerialization" value="true" />
151 <entry key="FieldItemSummary" value="true" />
152 <entry key="FinalizerNullsFields" value="true" />
153 <entry key="FindBadCast2" value="true" />
154 <entry key="FindBadForLoop" value="true" />
155 <entry key="FindBugsSummaryStats" value="true" />
156 <entry key="FindCircularDependencies" value="false" />
157 <entry key="FindComparatorProblems" value="true" />
158 <entry key="FindDeadLocalStores" value="true" />
159 <entry key="FindDoubleCheck" value="true" />
160 <entry key="FindEmptySynchronizedBlock" value="true" />
161 <entry key="FindFieldSelfAssignment" value="true" />
162 <entry key="FindFinalizeInvocations" value="true" />
163 <entry key="FindFloatEquality" value="true" />
164 <entry key="FindFloatMath" value="false" />
165 <entry key="FindHEmismatch" value="true" />
166 <entry key="FindInconsistentSync2" value="true" />
167 <entry key="FindJSR166LockMonitorenter" value="true" />
168 <entry key="FindLocalSelfAssignment2" value="true" />
169 <entry key="FindMaskedFields" value="true" />
170 <entry key="FindMismatchedWaitOrNotify" value="true" />
171 <entry key="FindNakedNotify" value="true" />
172 <entry key="FindNoSideEffectMethods" value="true" />
173 <entry key="FindNonSerializableStoreIntoSession" value="false" />
174 <entry key="FindNonSerializableValuePassedToWriteObject" value="false" />
175 <entry key="FindNonShortCircuit" value="true" />
176 <entry key="FindNullDeref" value="true" />
177 <entry key="FindNullDerefsInvolvingNonShortCircuitEvaluation" value="true" />
178 <entry key="FindOpenStream" value="true" />
179 <entry key="FindPuzzlers" value="true" />
180 <entry key="FindRefComparison" value="true" />
181 <entry key="FindReturnRef" value="true" />
182 <entry key="FindRoughConstants" value="true" />
183 <entry key="FindRunInvocations" value="true" />
184 <entry key="FindSelfComparison" value="true" />
185 <entry key="FindSelfComparison2" value="true" />
186 <entry key="FindSleepWithLockHeld" value="true" />
187 <entry key="FindSpinLoop" value="true" />
188 <entry key="FindSqlInjection" value="true" />
189 <entry key="FindTwoLockWait" value="true" />
190 <entry key="FindUncalledPrivateMethods" value="true" />
191 <entry key="FindUnconditionalWait" value="true" />
192 <entry key="FindUninitializedGet" value="true" />
193 <entry key="FindUnrelatedTypesInGenericContainer" value="true" />
194 <entry key="FindUnreleasedLock" value="true" />
195 <entry key="FindUnsatisfiedObligation" value="true" />
196 <entry key="FindUnsyncGet" value="true" />
197 <entry key="FindUseOfNonSerializableValue" value="true" />
198 <entry key="FindUselessControlFlow" value="true" />
199 <entry key="FindUselessObjects" value="true" />
200 <entry key="FormatStringChecker" value="true" />
201 <entry key="FunctionsThatMightBeMistakenForProcedures" value="true" />
202 <entry key="HugeSharedStringConstants" value="true" />
203 <entry key="IDivResultCastToDouble" value="true" />
204 <entry key="IncompatMask" value="true" />
205 <entry key="InconsistentAnnotations" value="true" />
206 <entry key="InefficientIndexOf" value="false" />
207 <entry key="InefficientInitializationInsideLoop" value="false" />
208 <entry key="InefficientMemberAccess" value="false" />
209 <entry key="InefficientToArray" value="false" />
210 <entry key="InfiniteLoop" value="true" />
211 <entry key="InfiniteRecursiveLoop" value="true" />
212 <entry key="InheritanceUnsafeGetResource" value="true" />
213 <entry key="InitializationChain" value="true" />
214 <entry key="InitializeNonnullFieldsInConstructor" value="true" />
215 <entry key="InstantiateStaticClass" value="true" />
216 <entry key="IntCast2LongAsInstant" value="true" />
217 <entry key="InvalidJUnitTest" value="true" />
218 <entry key="IteratorIdioms" value="true" />
219 <entry key="LazyInit" value="true" />
220 <entry key="LoadOfKnownNullValue" value="true" />
221 <entry key="LostLoggerDueToWeakReference" value="true" />
222 <entry key="MethodReturnCheck" value="true" />
223 <entry key="Methods" value="true" />
224 <entry key="MultithreadedInstanceAccess" value="true" />
225 <entry key="MutableEnum" value="true" />
226 <entry key="MutableLock" value="true" />
227 <entry key="MutableStaticFields" value="true" />
228 <entry key="Naming" value="true" />
229 <entry key="Noise" value="false" />
230 <entry key="NoiseNullDeref" value="false" />
231 <entry key="NoteAnnotationRetention" value="true" />
232 <entry key="NoteCheckReturnValueAnnotations" value="true" />
233 <entry key="NoteDirectlyRelevantTypeQualifiers" value="true" />
234 <entry key="NoteJCIPAnnotation" value="true" />
235 <entry key="NoteNonNullAnnotations" value="false" />
236 <entry key="NoteNonnullReturnValues" value="false" />
237 <entry key="NoteSuppressedWarnings" value="true" />
238 <entry key="NoteUnconditionalParamDerefs" value="true" />
239 <entry key="NumberConstructor" value="true" />
240 <entry key="OptionalReturnNull" value="true" />
241 <entry key="OverridingEqualsNotSymmetrical" value="true" />
242 <entry key="PreferZeroLengthArrays" value="true" />
243 <entry key="PublicSemaphores" value="false" />
244 <entry key="QuestionableBooleanAssignment" value="true" />
245 <entry key="ReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass" value="true" />
246 <entry key="ReadReturnShouldBeChecked" value="true" />
247 <entry key="RedundantConditions" value="true" />
248 <entry key="RedundantInterfaces" value="true" />
249 <entry key="ReflectiveClasses" value="true" />
250 <entry key="RepeatedConditionals" value="true" />
251 <entry key="ResolveAllReferences" value="false" />
252 <entry key="RuntimeExceptionCapture" value="true" />
253 <entry key="SerializableIdiom" value="true" />
254 <entry key="StartInConstructor" value="true" />
255 <entry key="StaticCalendarDetector" value="true" />
256 <entry key="StringConcatenation" value="true" />
257 <entry key="SuperfluousInstanceOf" value="true" />
258 <entry key="SuspiciousThreadInterrupted" value="true" />
259 <entry key="SwitchFallthrough" value="true" />
260 <entry key="SynchronizationOnSharedBuiltinConstant" value="true" />
261 <entry key="SynchronizeAndNullCheckField" value="true" />
262 <entry key="SynchronizeOnClassLiteralNotGetClass" value="true" />
263 <entry key="SynchronizingOnContentsOfFieldToProtectField" value="true" />
264 <entry key="TestASM" value="false" />
265 <entry key="TestDataflowAnalysis" value="false" />
266 <entry key="TestingGround" value="false" />
267 <entry key="TestingGround2" value="false" />
268 <entry key="TrainFieldStoreTypes" value="true" />
269 <entry key="TrainLongInstantfParams" value="true" />
270 <entry key="TrainNonNullAnnotations" value="true" />
271 <entry key="TrainUnconditionalDerefParams" value="true" />
272 <entry key="URLProblems" value="true" />
273 <entry key="UncallableMethodOfAnonymousClass" value="true" />
274 <entry key="UnnecessaryMath" value="true" />
275 <entry key="UnreadFields" value="true" />
276 <entry key="UselessSubclassMethod" value="false" />
277 <entry key="VarArgsProblems" value="true" />
278 <entry key="VolatileUsage" value="true" />
279 <entry key="WaitInLoop" value="true" />
280 <entry key="WrongMapIterator" value="true" />
281 <entry key="XMLFactoryBypass" value="true" />
282 </map>
283 </option>
284 <option name="_reportCategories">
285 <map>
286 <entry key="BAD_PRACTICE" value="true" />
287 <entry key="CORRECTNESS" value="true" />
288 <entry key="EXPERIMENTAL" value="true" />
289 <entry key="I18N" value="true" />
290 <entry key="MALICIOUS_CODE" value="true" />
291 <entry key="MT_CORRECTNESS" value="true" />
292 <entry key="PERFORMANCE" value="true" />
293 <entry key="SECURITY" value="true" />
294 <entry key="STYLE" value="true" />
295 </map>
296 </option>
297 </component>
100</module>298</module>
101\ No newline at end of file299\ No newline at end of file
102300
=== modified file 'app/src/main/java/org/openlp/android2/OpenLP.java'
--- app/src/main/java/org/openlp/android2/OpenLP.java 2015-10-06 22:40:40 +0000
+++ app/src/main/java/org/openlp/android2/OpenLP.java 2016-01-10 19:34:28 +0000
@@ -42,6 +42,7 @@
42import org.openlp.android2.fragments.LiveListFragment;42import org.openlp.android2.fragments.LiveListFragment;
43import org.openlp.android2.fragments.LiveWebFragment;43import org.openlp.android2.fragments.LiveWebFragment;
44import org.openlp.android2.fragments.NavigationDrawerFragment;44import org.openlp.android2.fragments.NavigationDrawerFragment;
45import org.openlp.android2.fragments.SearchFragment;
45import org.openlp.android2.fragments.ServiceListFragment;46import org.openlp.android2.fragments.ServiceListFragment;
46import org.openlp.android2.fragments.StageWebFragment;47import org.openlp.android2.fragments.StageWebFragment;
4748
@@ -163,6 +164,24 @@
163 toggerContainer(R.id.next_button, View.GONE);164 toggerContainer(R.id.next_button, View.GONE);
164 toggerContainer(R.id.prev_button, View.GONE);165 toggerContainer(R.id.prev_button, View.GONE);
165 break;166 break;
167 case NavigationOptions.Search:
168 singleTab();
169 fragmentManager.beginTransaction()
170 .replace(R.id.container, SearchFragment.newInstance())
171 .commit();
172 mTitle = getString(R.string.action_search);
173 toggerContainer(R.id.next_button, View.GONE);
174 toggerContainer(R.id.prev_button, View.GONE);
175 break;
176 default:
177 singleTab();
178 fragmentManager.beginTransaction()
179 .replace(R.id.container, HomeFragment.newInstance())
180 .commit();
181 mTitle = getString(R.string.home);
182 toggerContainer(R.id.next_button, View.GONE);
183 toggerContainer(R.id.prev_button, View.GONE);
184 break;
166 }185 }
167 }186 }
168187
169188
=== modified file 'app/src/main/java/org/openlp/android2/common/NavigationOptions.java'
--- app/src/main/java/org/openlp/android2/common/NavigationOptions.java 2015-01-19 21:09:12 +0000
+++ app/src/main/java/org/openlp/android2/common/NavigationOptions.java 2016-01-10 19:34:28 +0000
@@ -24,4 +24,5 @@
24 public final static int LiveList = 2;24 public final static int LiveList = 2;
25 public final static int StageView = 3;25 public final static int StageView = 3;
26 public final static int LiveView = 4;26 public final static int LiveView = 4;
27 public final static int Search = 5;
27}28}
2829
=== modified file 'app/src/main/java/org/openlp/android2/common/OpenLPDialog.java'
--- app/src/main/java/org/openlp/android2/common/OpenLPDialog.java 2015-01-19 21:09:12 +0000
+++ app/src/main/java/org/openlp/android2/common/OpenLPDialog.java 2016-01-10 19:34:28 +0000
@@ -45,7 +45,8 @@
45 protected void triggerTextRequest(String url) {45 protected void triggerTextRequest(String url) {
46 calledURL = url;46 calledURL = url;
47 Log.d(LOG_TAG, "Trigger Request for url " + url);47 Log.d(LOG_TAG, "Trigger Request for url " + url);
48 String callurl = String.format("%s%s", httpClient.getAbsoluteUrl(client), url );48 String callurl = String.format("%s%s", httpClient.getAbsoluteUrl(client), url);
49
49 client.get(callurl, null, new TextHttpResponseHandler() {50 client.get(callurl, null, new TextHttpResponseHandler() {
50 @Override51 @Override
51 public void onSuccess(int statusCode, Header[] headers, String responseString) {52 public void onSuccess(int statusCode, Header[] headers, String responseString) {
5253
=== modified file 'app/src/main/java/org/openlp/android2/common/OpenLPHttpClient.java'
--- app/src/main/java/org/openlp/android2/common/OpenLPHttpClient.java 2015-10-04 21:02:13 +0000
+++ app/src/main/java/org/openlp/android2/common/OpenLPHttpClient.java 2016-01-10 19:34:28 +0000
@@ -76,7 +76,7 @@
76 client.setSSLSocketFactory(sf);76 client.setSSLSocketFactory(sf);
77 }77 }
78 catch (Exception e){78 catch (Exception e){
79 //79 Log.d(LOG_TAG, "Unable to support SSL");
80 }80 }
81 }81 }
82 return urlBase;82 return urlBase;
8383
=== added file 'app/src/main/java/org/openlp/android2/dialogs/SearchSelectionDialog.java'
--- app/src/main/java/org/openlp/android2/dialogs/SearchSelectionDialog.java 1970-01-01 00:00:00 +0000
+++ app/src/main/java/org/openlp/android2/dialogs/SearchSelectionDialog.java 2016-01-10 19:34:28 +0000
@@ -0,0 +1,135 @@
1/******************************************************************************
2 * OpenLP - Open Source Lyrics Projection *
3 * --------------------------------------------------------------------------- *
4 * Copyright (c) 2011-2015 OpenLP Android Developers *
5 * --------------------------------------------------------------------------- *
6 * This program is free software; you can redistribute it and/or modify it *
7 * under the terms of the GNU General Public License as published by the Free *
8 * Software Foundation; version 2 of the License. *
9 * *
10 * This program is distributed in the hope that it will be useful, but WITHOUT *
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
13 * more details. *
14 * *
15 * You should have received a copy of the GNU General Public License along *
16 * with this program; if not, write to the Free Software Foundation, Inc., 59 *
17 * Temple Place, Suite 330, Boston, MA 02111-1307 USA *
18 *******************************************************************************/
19package org.openlp.android2.dialogs;
20
21import android.app.AlertDialog;
22import android.app.Dialog;
23import android.content.DialogInterface;
24import android.os.Bundle;
25import android.util.Log;
26import android.view.LayoutInflater;
27import android.view.View;
28import android.widget.Button;
29import android.widget.RadioButton;
30import android.widget.Toast;
31import org.openlp.android2.R;
32import org.openlp.android2.api.Api;
33import org.openlp.android2.common.JsonHelpers;
34import org.openlp.android2.common.OpenLPDialog;
35import org.openlp.android2.common.OpenLPHttpClient;
36
37public class SearchSelectionDialog extends OpenLPDialog {
38 private final String LOG_TAG = SearchSelectionDialog.class.getName();
39 public AlertDialog dialog;
40 private String key;
41 private String plugin;
42 private String text;
43 private RadioButton sendLive;
44 private RadioButton addToService;
45
46 /**
47 * The system calls this only when creating the layout in a dialog.
48 */
49 @Override
50 public Dialog onCreateDialog(Bundle savedInstanceState) {
51 // The only reason you might override this method when using onCreateView() is
52 // to modify any dialog characteristics. For example, the dialog includes a
53 // title by default, but your custom layout might not need it. So here you can
54 // remove the dialog title, but you must call the superclass to get the Dialog.
55
56 key = getArguments().getString("key");
57 plugin = getArguments().getString("plugin");
58 text = getArguments().getString("text");
59
60 context = getActivity();
61 httpClient = new OpenLPHttpClient(context);
62
63 AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
64 // Get the layout inflater
65 LayoutInflater inflater = getActivity().getLayoutInflater();
66
67 // Inflate and set the layout for the dialog
68 // Pass null as the parent view because its going in the dialog layout
69 View view = inflater.inflate(R.layout.search_action_dialog, null);
70 builder.setView(view);
71
72 sendLive = (RadioButton) view.findViewById(R.id.buttonLive);
73 sendLive.setOnClickListener(new View.OnClickListener() {
74 @Override
75 public void onClick(View v) {
76 createLive();
77 SearchSelectionDialog.this.getDialog().cancel();
78 }
79 });
80
81 addToService = (RadioButton) view.findViewById(R.id.buttonService);
82 addToService.setOnClickListener(new View.OnClickListener() {
83 @Override
84 public void onClick(View v) {
85 createService();
86 SearchSelectionDialog.this.getDialog().cancel();
87 }
88 });
89
90 builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
91 public void onClick(DialogInterface dialog, int id) {
92 SearchSelectionDialog.this.getDialog().cancel();
93 }
94 });
95 dialog = builder.create();
96 dialog.setOnShowListener(new DialogInterface.OnShowListener() {
97 @Override
98 public void onShow(DialogInterface dialogI) {
99 Button btnNegative = dialog.getButton(Dialog.BUTTON_NEGATIVE);
100 btnNegative.setTextSize(20);
101 }
102 });
103 return dialog;
104 }
105
106 @Override
107 public void onResume() {
108 super.onResume();
109 Log.d(LOG_TAG, "Resuming...");
110 }
111
112 public void createLive() {
113 try {
114 String request = JsonHelpers.createRequestJSON("id", key);
115 String url = String.format(Api.SEARCH_PLUGIN_LIVE, plugin.toLowerCase());
116 triggerTextRequest(String.format("%s%s", url, request));
117 Log.d(LOG_TAG, String.format("Setting list data. apiBase(%s), text(%s)", Api.SEARCH_PLUGIN_LIVE, text));
118 } catch (JsonHelpers.JSONHandlerException e) {
119 e.printStackTrace();
120 Toast.makeText(context, "Request Failed", Toast.LENGTH_SHORT).show();
121 }
122 }
123
124 public void createService() {
125 try {
126 String request = JsonHelpers.createRequestJSON("id", key);
127 String url = String.format(Api.SEARCH_PLUGIN_ADD, plugin.toLowerCase());
128 triggerTextRequest(String.format("%s%s", url, request));
129 Log.d(LOG_TAG, String.format("Setting list data. apiBase(%s), text(%s)", Api.SEARCH_PLUGIN_ADD, text));
130 } catch (JsonHelpers.JSONHandlerException e) {
131 e.printStackTrace();
132 Toast.makeText(context, "Request Failed", Toast.LENGTH_SHORT).show();
133 }
134 }
135}
0136
=== modified file 'app/src/main/java/org/openlp/android2/fragments/NavigationDrawerFragment.java'
--- app/src/main/java/org/openlp/android2/fragments/NavigationDrawerFragment.java 2015-05-30 08:07:36 +0000
+++ app/src/main/java/org/openlp/android2/fragments/NavigationDrawerFragment.java 2016-01-10 19:34:28 +0000
@@ -42,7 +42,6 @@
42import android.widget.ListAdapter;42import android.widget.ListAdapter;
43import android.widget.ListView;43import android.widget.ListView;
44import android.widget.SimpleAdapter;44import android.widget.SimpleAdapter;
45import android.widget.Toast;
4645
47import org.openlp.android2.R;46import org.openlp.android2.R;
4847
@@ -152,6 +151,11 @@
152 hm4.put("icon", Integer.toString(R.drawable.ic_ondemand_video_black));151 hm4.put("icon", Integer.toString(R.drawable.ic_ondemand_video_black));
153 aList.add(hm4);152 aList.add(hm4);
154153
154 HashMap<String, String> hm5 = new HashMap<String, String>();
155 hm5.put("title", getString(R.string.action_search));
156 hm5.put("icon", Integer.toString(R.drawable.ic_search_black));
157 aList.add(hm5);
158
155 // Keys used in Hashmap159 // Keys used in Hashmap
156 String[] from = {"icon", "title"};160 String[] from = {"icon", "title"};
157161
158162
=== added file 'app/src/main/java/org/openlp/android2/fragments/SearchFragment.java'
--- app/src/main/java/org/openlp/android2/fragments/SearchFragment.java 1970-01-01 00:00:00 +0000
+++ app/src/main/java/org/openlp/android2/fragments/SearchFragment.java 2016-01-10 19:34:28 +0000
@@ -0,0 +1,283 @@
1package org.openlp.android2.fragments;
2
3import android.app.DialogFragment;
4import android.app.Fragment;
5import android.content.Context;
6import android.os.Bundle;
7import android.util.Log;
8import android.view.KeyEvent;
9import android.view.LayoutInflater;
10import android.view.View;
11import android.view.ViewGroup;
12import android.view.inputmethod.EditorInfo;
13import android.view.inputmethod.InputMethodManager;
14import android.widget.AdapterView;
15import android.widget.ArrayAdapter;
16import android.widget.EditText;
17import android.widget.ListView;
18import android.widget.Spinner;
19import android.widget.TextView;
20import android.widget.Toast;
21
22import com.loopj.android.http.AsyncHttpClient;
23import com.loopj.android.http.TextHttpResponseHandler;
24
25import org.apache.http.Header;
26import org.json.JSONArray;
27import org.json.JSONException;
28import org.json.JSONObject;
29import org.openlp.android2.R;
30import org.openlp.android2.api.Api;
31import org.openlp.android2.common.JsonHelpers;
32
33import org.openlp.android2.common.OpenLPHttpClient;
34import org.openlp.android2.dialogs.SearchSelectionDialog;
35
36import java.util.ArrayList;
37import java.util.HashMap;
38import java.util.List;
39import java.util.Map;
40
41/**
42
43 */
44public class SearchFragment extends Fragment {
45
46 private final String LOG_TAG = SearchFragment.class.getName();
47 private Spinner spinner;
48 private static AsyncHttpClient client = new AsyncHttpClient();
49 public Context context;
50 protected String calledURL;
51 protected OpenLPHttpClient httpClient;
52 protected String updateUrl;
53 protected String searchedPlugin;
54 protected Map<String, String> pluginMap = new HashMap<String, String>();
55
56 public SearchFragment() {
57 Log.d(LOG_TAG, "Constructor");
58 }
59
60 public static SearchFragment newInstance() {
61 SearchFragment fragment = new SearchFragment();
62 return fragment;
63 }
64
65 @Override
66 public void onCreate(Bundle savedInstanceState) {
67 super.onCreate(savedInstanceState);
68 }
69
70 @Override
71 public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
72 context = getActivity();
73 updateUrl = Api.SEARCHABLE_PLUGINS;
74 httpClient = new OpenLPHttpClient(context);
75 View view = inflater.inflate(R.layout.fragment_search, container, false);
76 spinner = (Spinner)view.findViewById(R.id.search_spinner);
77 triggerTextRequest(Api.SEARCHABLE_PLUGINS);
78
79 // Add search listener to text field
80 EditText editText = (EditText)view.findViewById(R.id.search_text);
81 editText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
82 @Override
83 public boolean onEditorAction(TextView tv, int actionId, KeyEvent event) {
84 if (actionId == EditorInfo.IME_ACTION_SEARCH) {
85 // Now close the keyboard as finished with
86 View view = getActivity().getCurrentFocus();
87 if (view != null) {
88 InputMethodManager imm =
89 (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
90 imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
91 }
92 searchedPlugin = pluginMap.get(spinner.getSelectedItem().toString());
93 requestSearch(tv.getText().toString());
94 return true;
95 }
96 return false;
97 }
98 });
99 return view;
100 }
101
102 @Override
103 public void onDetach() {
104 super.onDetach();
105 }
106
107 public void manageResponse(String response, boolean notInError) {
108 if (calledURL.equals(updateUrl)) {
109 populatePluginList(response, notInError);
110 } else {
111 populateListDisplay(response, notInError);
112 }
113 }
114
115 private void populatePluginList(String response, Boolean notInError) {
116 Log.i(LOG_TAG, "populatePluginList - entry");
117 List<String> categories = new ArrayList<String>();
118 pluginMap.clear();
119
120 if (notInError) {
121 try {
122 JSONArray items = new JSONObject(response).getJSONObject("results").getJSONArray("items");
123 for (int i = 0; i < items.length(); ++i) {
124 JSONArray item = items.getJSONArray(i);
125 categories.add(item.get(1).toString());
126 pluginMap.put(item.get(1).toString(),item.get(0).toString());
127 }
128 } catch (JSONException e) {
129 Log.e(LOG_TAG, response);
130 e.printStackTrace();
131 }
132 ArrayAdapter<String> LTRadapter = new ArrayAdapter<String>(getActivity(),
133 R.layout.spinner_list_item, categories);
134 LTRadapter.setDropDownViewResource(R.layout.spinner_dropdown_item);
135 spinner.setAdapter(LTRadapter);
136 Log.i(LOG_TAG, "populatePluginList - exit");
137 }
138 }
139
140 protected void triggerTextRequest(String url) {
141 calledURL = url;
142 Log.d(LOG_TAG, "Trigger Request for url " + url);
143 String callurl = String.format("%s%s", httpClient.getAbsoluteUrl(client), url );
144 client.get(callurl, null, new TextHttpResponseHandler() {
145 @Override
146 public void onSuccess(int statusCode, Header[] headers, String responseString) {
147 // called when response HTTP status is "200 OK"
148 manageResponse(responseString, true);
149 }
150
151 @Override
152 public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {
153 // called when response HTTP status is "4XX" (eg. 401, 403, 404)
154 if (statusCode == 401) {
155 Toast.makeText(context, R.string.httpreturn_unauthorised, Toast.LENGTH_LONG).show();
156 } else {
157 Toast.makeText(context, R.string.unable, Toast.LENGTH_LONG).show();
158 }
159 manageResponse(responseString, false);
160 }
161 });
162 }
163
164 public void requestSearch(String text) {
165 updateUrl = Api.SEARCH_PLUGIN_FORMATTED;
166 try {
167 String request = JsonHelpers.createRequestJSON("text", text);
168 String url = String.format(Api.SEARCH_PLUGIN_FORMATTED, searchedPlugin);
169 triggerTextRequest(String.format("%s%s", url, request));
170 Log.d(LOG_TAG, String.format("Search request. apiBase(%s), text(%s)", searchedPlugin, text));
171 } catch (JsonHelpers.JSONHandlerException e) {
172 e.printStackTrace();
173 Toast.makeText(context, "Search Request Failed", Toast.LENGTH_SHORT).show();
174 }
175 }
176
177 public void populateListDisplay(String json, boolean notInError) {
178 Log.i(LOG_TAG, "populateListDisplay - entry");
179 ListView list = (ListView)getActivity().findViewById(R.id.searchlistView);
180 final ArrayList<JSONArray> listitems = new ArrayList<JSONArray>();
181 if (notInError) {
182 try {
183 JSONArray items = new JSONObject(json).getJSONObject("results").getJSONArray("items");
184 for (int i = 0; i < items.length(); ++i) {
185 JSONArray item = items.getJSONArray(i);
186 listitems.add(item);
187 }
188 } catch (JSONException e) {
189 Log.e(LOG_TAG,json);
190 e.printStackTrace();
191 }
192 }
193
194 final StableArrayAdapter adapter = new StableArrayAdapter(context,
195 android.R.layout.simple_list_item_1, listitems);
196
197 list.setAdapter(adapter);
198 list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
199
200 @Override
201 public void onItemClick(AdapterView<?> parent, final View view,
202 int position, long id) {
203 final JSONArray item = (JSONArray) parent.getItemAtPosition(position);
204 //Toast.makeText(context, "Item Pressed " + String.valueOf(position) + item,
205 // Toast.LENGTH_SHORT).show();
206 String it = "";
207 try {
208 it = (String)item.get(1);
209 } catch (JSONException e) {
210 e.printStackTrace();
211 }
212 Bundle args = new Bundle();
213 args.putString("plugin", searchedPlugin);
214 args.putString("text", it);
215 args.putString("key", Long.toString(id));
216 DialogFragment newFragment = new SearchSelectionDialog();
217 newFragment.setArguments(args);
218 newFragment.show(getFragmentManager(), "TAG");
219
220 }
221 });
222 Log.i(LOG_TAG, "populateListDisplay - exit");
223 }
224
225 private class StableArrayAdapter extends ArrayAdapter<JSONArray> {
226
227 HashMap<String, Integer> mIdMap = new HashMap<String, Integer>();
228
229 public StableArrayAdapter(Context context, int textViewResourceId,
230 List<JSONArray> objects) {
231 super(context, textViewResourceId, objects);
232 for (int i = 0; i < objects.size(); ++i) {
233 JSONArray item = objects.get(i);
234 try {
235 mIdMap.put(item.get(1).toString(), Integer.valueOf(item.get(0).toString()));
236 } catch (JSONException e) {
237 e.printStackTrace();
238 }
239 }
240 }
241
242 @Override
243 public View getView(int position, View convertView, ViewGroup parent) {
244 // Get the data item for this position
245 //User user = getItem(position);
246 String item = null;
247 try {
248 item = getItem(position).get(1).toString();
249 } catch (JSONException e) {
250 e.printStackTrace();
251 }
252 // Check if an existing view is being reused, otherwise inflate the view
253 if (convertView == null) {
254 convertView = LayoutInflater.from(getContext()).inflate(R.layout.search_result_row,
255 parent, false);
256 }
257 // Lookup view for data population
258 TextView tvItem = (TextView) convertView.findViewById(R.id.searchListRow);
259 // Populate the data into the template view using the data object
260 tvItem.setText(item);
261 // Return the completed view to render on screen
262 return convertView;
263 }
264
265 @Override
266 public long getItemId(int position) {
267 String item = null;
268 try {
269 item = getItem(position).get(1).toString();
270 } catch (JSONException e) {
271 e.printStackTrace();
272 }
273 return mIdMap.get(item);
274 }
275
276 @Override
277 public boolean hasStableIds() {
278 return true;
279 }
280
281 }
282
283}
0284
=== added file 'app/src/main/res/drawable-hdpi/ic_search_black.png'
1Binary files app/src/main/res/drawable-hdpi/ic_search_black.png 1970-01-01 00:00:00 +0000 and app/src/main/res/drawable-hdpi/ic_search_black.png 2016-01-10 19:34:28 +0000 differ285Binary files app/src/main/res/drawable-hdpi/ic_search_black.png 1970-01-01 00:00:00 +0000 and app/src/main/res/drawable-hdpi/ic_search_black.png 2016-01-10 19:34:28 +0000 differ
=== added file 'app/src/main/res/drawable-mdpi/ic_search_black.png'
2Binary files app/src/main/res/drawable-mdpi/ic_search_black.png 1970-01-01 00:00:00 +0000 and app/src/main/res/drawable-mdpi/ic_search_black.png 2016-01-10 19:34:28 +0000 differ286Binary files app/src/main/res/drawable-mdpi/ic_search_black.png 1970-01-01 00:00:00 +0000 and app/src/main/res/drawable-mdpi/ic_search_black.png 2016-01-10 19:34:28 +0000 differ
=== added file 'app/src/main/res/drawable-xhdpi/ic_search_black.png'
3Binary files app/src/main/res/drawable-xhdpi/ic_search_black.png 1970-01-01 00:00:00 +0000 and app/src/main/res/drawable-xhdpi/ic_search_black.png 2016-01-10 19:34:28 +0000 differ287Binary files app/src/main/res/drawable-xhdpi/ic_search_black.png 1970-01-01 00:00:00 +0000 and app/src/main/res/drawable-xhdpi/ic_search_black.png 2016-01-10 19:34:28 +0000 differ
=== added file 'app/src/main/res/drawable-xxhdpi/ic_search_black.png'
4Binary files app/src/main/res/drawable-xxhdpi/ic_search_black.png 1970-01-01 00:00:00 +0000 and app/src/main/res/drawable-xxhdpi/ic_search_black.png 2016-01-10 19:34:28 +0000 differ288Binary files app/src/main/res/drawable-xxhdpi/ic_search_black.png 1970-01-01 00:00:00 +0000 and app/src/main/res/drawable-xxhdpi/ic_search_black.png 2016-01-10 19:34:28 +0000 differ
=== added file 'app/src/main/res/layout/fragment_search.xml'
--- app/src/main/res/layout/fragment_search.xml 1970-01-01 00:00:00 +0000
+++ app/src/main/res/layout/fragment_search.xml 2016-01-10 19:34:28 +0000
@@ -0,0 +1,90 @@
1<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:orientation="vertical" android:layout_width="match_parent"
4 android:layout_height="match_parent"
5 android:paddingLeft="15dp"
6 android:paddingTop="15dp"
7 android:paddingRight="15dp"
8 >
9
10 <LinearLayout
11 android:orientation="vertical"
12 android:layout_width="match_parent"
13 android:layout_height="wrap_content">
14
15 <LinearLayout
16 android:orientation="horizontal"
17 android:layout_width="match_parent"
18 android:layout_height="match_parent">
19
20 <TextView
21 android:layout_width="wrap_content"
22 android:layout_height="wrap_content"
23 android:text="Select Plugin"
24 android:id="@+id/search_title"
25 android:textAppearance="?android:attr/textAppearanceLarge"
26 android:textSize="40px"
27 android:height="70px"
28 android:paddingLeft="30dp"
29 android:paddingRight="30dp"/>
30
31 <Spinner
32 android:layout_width="0dp"
33 android:layout_height="wrap_content"
34 android:id="@+id/search_spinner"
35 android:layout_weight="0.4"
36 android:textAppearance="?android:attr/textAppearanceLarge"/>
37
38 </LinearLayout>
39
40 <LinearLayout
41 android:orientation="horizontal"
42 android:layout_width="match_parent"
43 android:layout_height="match_parent">
44
45 <TextView
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:textAppearance="?android:attr/textAppearanceLarge"
49 android:text="Search Text"
50 android:textSize="40px"
51 android:height="70px"
52 android:id="@+id/search_value_desc"
53 android:paddingLeft="30dp"
54 android:paddingRight="30dp"/>
55
56 <EditText
57 android:imeOptions="actionSearch"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:id="@+id/search_text"
61 style="@android:style/Animation.InputMethod"
62 android:layout_weight="0.87"
63 android:inputType="text"
64 android:textSize="40px"
65 android:height="70px"
66 />
67 </LinearLayout>
68
69 <LinearLayout
70 android:orientation="horizontal"
71 android:layout_width="match_parent"
72 android:layout_height="match_parent"
73 android:weightSum="1">
74
75 <ListView
76 android:layout_width="match_parent"
77 android:layout_height="fill_parent"
78 android:id="@+id/searchlistView"
79 android:textAppearance="?android:attr/textAppearanceLarge"
80 android:paddingLeft="30dp"
81 android:paddingRight="30dp"
82 android:layout_marginTop="20dp"
83 android:layout_marginBottom="20dp"
84 android:textSize="40px"
85 android:height="70px"
86 android:layout_weight="1"/>
87 </LinearLayout>
88 </LinearLayout>
89
90</LinearLayout>
0\ No newline at end of file91\ No newline at end of file
192
=== added file 'app/src/main/res/layout/search_action_dialog.xml'
--- app/src/main/res/layout/search_action_dialog.xml 1970-01-01 00:00:00 +0000
+++ app/src/main/res/layout/search_action_dialog.xml 2016-01-10 19:34:28 +0000
@@ -0,0 +1,40 @@
1<?xml version="1.0" encoding="utf-8"?>
2
3<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
4
5 android:orientation="vertical"
6 android:layout_width="fill_parent"
7 android:layout_height="fill_parent"
8 android:weightSum="1">
9 <TextView
10 android:layout_width="315dp"
11 android:layout_height="wrap_content"
12 android:textAppearance="?android:attr/textAppearanceMedium"
13 android:text="@string/searchResults"
14 android:id="@+id/textView"
15 android:textStyle="bold|italic"
16 android:textSize="40px"
17 android:height="70px"
18 android:layout_marginTop="10dp"
19 android:layout_marginBottom="10dp"/>
20 <RadioButton
21 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
23 android:text="@string/searchSendLive"
24 android:id="@+id/buttonLive"
25 android:textSize="20sp"
26 android:height="30dp"
27 android:clickable="true"
28 android:layout_marginTop="20dp"
29 android:layout_marginBottom="20dp"/>
30 <RadioButton
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:text="@string/searchAddToService"
34 android:id="@+id/buttonService"
35 android:textSize="20sp"
36 android:height="40dp"
37 android:clickable="true"
38 android:layout_marginTop="20dp"
39 android:layout_marginBottom="20dp"/>
40</LinearLayout>
0\ No newline at end of file41\ No newline at end of file
142
=== added file 'app/src/main/res/layout/search_result.xml'
--- app/src/main/res/layout/search_result.xml 1970-01-01 00:00:00 +0000
+++ app/src/main/res/layout/search_result.xml 2016-01-10 19:34:28 +0000
@@ -0,0 +1,11 @@
1<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:orientation="vertical" android:layout_width="match_parent"
4 android:layout_height="match_parent">
5 <TextView
6 android:id="@+id/serachitem"
7 android:layout_width="wrap_content"
8 android:layout_height="wrap_content"
9 android:text="Name" />
10
11</LinearLayout>
0\ No newline at end of file12\ No newline at end of file
113
=== added file 'app/src/main/res/layout/search_result_row.xml'
--- app/src/main/res/layout/search_result_row.xml 1970-01-01 00:00:00 +0000
+++ app/src/main/res/layout/search_result_row.xml 2016-01-10 19:34:28 +0000
@@ -0,0 +1,18 @@
1<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="match_parent"
4 android:layout_height="match_parent"
5 android:orientation="vertical" >
6
7 <TextView android:layout_width="wrap_content"
8 android:layout_height="wrap_content"
9 android:textStyle="bold"
10 android:textColor="#000000"
11 android:textSize="40sp"
12 android:paddingTop="10dp"
13 android:paddingRight="5dp"
14 android:paddingLeft="5dp"
15 android:paddingEnd="5dp"
16 android:paddingBottom="10dp"
17 android:id="@+id/searchListRow"/>
18</LinearLayout>
0\ No newline at end of file19\ No newline at end of file
120
=== added file 'app/src/main/res/layout/spinner_dropdown_item.xml'
--- app/src/main/res/layout/spinner_dropdown_item.xml 1970-01-01 00:00:00 +0000
+++ app/src/main/res/layout/spinner_dropdown_item.xml 2016-01-10 19:34:28 +0000
@@ -0,0 +1,11 @@
1<?xml version="1.0" encoding="utf-8"?>
2<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
3 android:id="@android:id/text1"
4 style="?android:attr/spinnerDropDownItemStyle"
5 android:singleLine="true"
6 android:layout_width="match_parent"
7 android:layout_height="?android:attr/listPreferredItemHeight"
8 android:ellipsize="marquee"
9 android:textColor="#000"
10 android:textStyle="bold|italic"
11 android:textAppearance="?android:attr/textAppearanceLarge"/>
0\ No newline at end of file12\ No newline at end of file
113
=== added file 'app/src/main/res/layout/spinner_list_item.xml'
--- app/src/main/res/layout/spinner_list_item.xml 1970-01-01 00:00:00 +0000
+++ app/src/main/res/layout/spinner_list_item.xml 2016-01-10 19:34:28 +0000
@@ -0,0 +1,11 @@
1<?xml version="1.0" encoding="utf-8"?>
2<TextView xmlns:android="http://schemas.android.com/apk/res/android"
3 android:id="@android:id/text1"
4 style="?android:attr/spinnerItemStyle"
5 android:singleLine="true"
6 android:layout_width="match_parent"
7 android:layout_height="wrap_content"
8 android:textColor="#000"
9 android:textAppearance="?android:attr/textAppearanceLarge"
10 android:ellipsize="marquee"
11 android:textStyle="bold|italic" />
0\ No newline at end of file12\ No newline at end of file
113
=== modified file 'app/src/main/res/values/strings.xml'
--- app/src/main/res/values/strings.xml 2015-10-08 15:30:54 +0000
+++ app/src/main/res/values/strings.xml 2016-01-10 19:34:28 +0000
@@ -29,14 +29,14 @@
29 <string name="display_blank_summary">Select the required display</string>29 <string name="display_blank_summary">Select the required display</string>
30 <string name="display_desktop">Display Desktop background</string>30 <string name="display_desktop">Display Desktop background</string>
31 <string name="display_list_autoscroll">Allow the selected item to scroll to the centre of the list</string>31 <string name="display_list_autoscroll">Allow the selected item to scroll to the centre of the list</string>
32 <string name="display_reset">Show Live display</string>32 <string name="display_reset">Live display</string>
33 <string name="display_settings">Display Setting</string>33 <string name="display_settings">Display Setting</string>
34 <string name="display_screen">Display Black only</string>34 <string name="display_screen">Display Black only</string>
35 <string name="display_theme">Display Theme only</string>35 <string name="display_theme">Display Theme only</string>
36 <string name="enable_custom_timeouts">Enable Custom Timeouts</string>36 <string name="enable_custom_timeouts">Enable Custom Timeouts</string>
37 <string name="enter_alert_text">Enter Alert Text</string>37 <string name="enter_alert_text">Enter Alert Text</string>
38 <string name="enable_autoscroll">Allow displays to auto center</string>38 <string name="enable_autoscroll">Allow displays to auto center</string>
39 <string name="home">Home</string> 39 <string name="home">Home</string>
40 <string name="httpreturn_unauthorised">Unauthorised Access, please enter valid username and password</string>40 <string name="httpreturn_unauthorised">Unauthorised Access, please enter valid username and password</string>
41 <string name="live_list">Live List</string>41 <string name="live_list">Live List</string>
42 <string name="live_view">Live View</string>42 <string name="live_view">Live View</string>
@@ -48,6 +48,10 @@
48 <string name="previous">Previous</string>48 <string name="previous">Previous</string>
49 <string name="process">Process</string>49 <string name="process">Process</string>
50 <string name="service_list">Service List</string>50 <string name="service_list">Service List</string>
51 <string name="searchResults">Search Results</string>
52 <string name="searchSendLive">Send Live</string>
53 <string name="searchAddToService">Add to Service</string>
54 <string name="showingResults">Showing Results for \'%s\'</string>
51 <string name="stage_view">Stage View</string>55 <string name="stage_view">Stage View</string>
52 <string name="text_size">Select display text size</string>56 <string name="text_size">Select display text size</string>
53 <string name="text_size_summary">Change the Service text size</string>57 <string name="text_size_summary">Change the Service text size</string>

Subscribers

People subscribed via source and target branches

to all changes: