Fixed main activity to fit on a 480x800 screen in landscape.
authorkenstir <kenstir@gmail.com>
Fri, 3 Jan 2014 01:29:52 +0000 (20:29 -0500)
committerkenstir <kenstir@gmail.com>
Fri, 3 Jan 2014 01:29:52 +0000 (20:29 -0500)
Open-ILS/src/Android/core/res/layout/activity_main.xml
Open-ILS/src/Android/core/res/values-land/dimens.xml
Open-ILS/src/Android/core/src/org/evergreen_ils/utils/ui/BasicDetailsFragment.java
Open-ILS/src/Android/core/src/org/evergreen_ils/views/splashscreen/SplashActivity.java

index a080194..2eafd08 100644 (file)
@@ -4,13 +4,9 @@
               android:orientation="vertical"
               android:layout_width="match_parent"
               android:layout_height="match_parent"
+              android:paddingTop="@dimen/bigActionButton_marginVertical"
               android:background="@drawable/background_grey_image">
 
-    <TextView
-            android:layout_width="20px"
-            android:layout_height="18dp"
-            />
-
     <Button
             android:layout_width="match_parent"
             android:layout_height="56dp"
index 497c0cc..d2da6bc 100644 (file)
@@ -1,4 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
-    <dimen name="bigActionButton_marginVertical">9dp</dimen>
+    <dimen name="bigActionButton_marginVertical">6dp</dimen>
 </resources>
index d62b594..11ed9f9 100644 (file)
@@ -355,10 +355,10 @@ public class BasicDetailsFragment extends Fragment {
             TextView copy_location = (TextView) copy_info_view
                     .findViewById(R.id.copy_information_copy_location);
 
-            library.setText(gl.getOrganizationName(record.copyInformationList
-                    .get(i).org_id) + " ");
-            call_number.setText(record.copyInformationList.get(i).call_number_sufix);
-            copy_location.setText(record.copyInformationList.get(i).copy_location);
+            CopyInformation info = record.copyInformationList.get(i);
+            library.setText(gl.getOrganizationName(info.org_id));
+            call_number.setText(info.call_number_sufix);
+            copy_location.setText(info.copy_location);
 
             // insert into main view
             insertPoint.addView(copy_info_view, new ViewGroup.LayoutParams(
@@ -368,8 +368,6 @@ public class BasicDetailsFragment extends Fragment {
             LinearLayout copy_statuses = (LinearLayout) copy_info_view
                     .findViewById(R.id.copy_information_statuses);
 
-            CopyInformation info = record.copyInformationList.get(i);
-
             Set<Entry<String, String>> set = info.statusInformation.entrySet();
 
             Iterator<Entry<String, String>> it = set.iterator();
index 32c8bc6..0464c7d 100644 (file)
@@ -19,6 +19,7 @@
  */
 package org.evergreen_ils.views.splashscreen;
 
+import android.os.Build;
 import org.evergreen_ils.R;
 import org.evergreen_ils.globals.GlobalConfigs;
 import org.evergreen_ils.searchCatalog.SearchCatalogListView;
@@ -102,6 +103,13 @@ public class SplashActivity extends Activity implements LoadingTaskListener {
             }
         });
 
+        /* this didn't work, but the progress bar is weird on GB 2.2,
+           and it's lopsided in landscape mode on GB 2.3.7
+        int currentApiVersion = android.os.Build.VERSION.SDK_INT;
+        if (currentApiVersion < Build.VERSION_CODES.HONEYCOMB)
+            mProgressBar.setScrollBarStyle(android.R.attr.progressBarStyleHorizontal);
+         */
+
         GlobalConfigs.httpAddress = getString(R.string.ou_library_url);
         startTask();
     }