header gradient background
authordrizea <danielrizea27@gmail.com>
Mon, 6 Aug 2012 17:22:21 +0000 (20:22 +0300)
committerdrizea <danielrizea27@gmail.com>
Mon, 6 Aug 2012 17:22:21 +0000 (20:22 +0300)
Open-ILS/src/Android/res/drawable/bottom_rounded_menu_background.xml
Open-ILS/src/Android/res/drawable/header_gradient.xml
Open-ILS/src/Android/res/drawable/header_rounded_corners.xml
Open-ILS/src/Android/res/drawable/one_header_rounded_corner.xml
Open-ILS/src/Android/res/drawable/title_header_background.xml [new file with mode: 0644]
Open-ILS/src/Android/res/layout/record_details_basic_fragment.xml
Open-ILS/src/Android/res/layout/search_result_list.xml
Open-ILS/src/Android/res/layout/simple_underlines.xml
Open-ILS/src/Android/res/values/colors.xml
Open-ILS/src/Android/res/values/styles.xml
Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/MoreCopyInformation.java

index edb6b91..80deff9 100644 (file)
@@ -1,11 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?> 
 <shape xmlns:android="http://schemas.android.com/apk/res/android" 
      android:shape="rectangle"> 
-     <gradient 
-         
-         android:startColor="@color/menu_bottom_start" android:endColor="@color/menu_bottom_stop" 
-
-            android:angle="270"/> 
+      <gradient android:angle="270" android:startColor="#20ffffff"
+    android:endColor="#20ffffff" />
 
     <corners android:topLeftRadius="8dp" android:topRightRadius="8dp" /> 
 </shape> 
\ No newline at end of file
index 88b84a8..ae9c0fc 100644 (file)
@@ -5,5 +5,5 @@
         android:centerColor="#378f71"
         android:endColor="#378f71"
         android:angle="270"/>
-    <corners android:radius="5dp" />
+    <corners android:bottomLeftRadius="8dp" android:bottomRightRadius="8dp" />
 </shape>
\ No newline at end of file
index a6c339c..98b40dd 100644 (file)
@@ -1,11 +1,34 @@
-<?xml version="1.0" encoding="UTF-8"?> 
-<shape xmlns:android="http://schemas.android.com/apk/res/android" 
-     android:shape="rectangle"> 
-     <gradient 
-         
-         android:startColor="@color/header_gradient_stop" android:endColor="@color/header_gradient_stop" 
+<?xml version="1.0" encoding="UTF-8"?>
+<layer-list>
 
-            android:angle="270"/> 
+    <item>
+        <shape
+            xmlns:android="http://schemas.android.com/apk/res/android"
+            android:shape="rectangle" >
+            <gradient
+                android:angle="270"
+                android:endColor="@color/header_gradient_stop"
+                android:startColor="@color/header_gradient_start" />
 
-    <corners android:bottomRightRadius="8dp" android:bottomLeftRadius="8dp" /> 
-</shape> 
\ No newline at end of file
+            <corners
+                android:bottomLeftRadius="8dp"
+                android:bottomRightRadius="8dp" />
+        </shape>
+    </item>
+    <item>
+        <shape
+            xmlns:android="http://schemas.android.com/apk/res/android"
+            android:shape="rectangle" >
+            <gradient
+                android:angle="270"
+                android:centerColor="#00ffffff"
+                android:endColor="#00ffffff"
+                android:startColor="#40ffffff" />
+
+            <corners
+                android:bottomLeftRadius="8dp"
+                android:bottomRightRadius="8dp" />
+        </shape>
+    </item>
+
+</layer-list>
\ No newline at end of file
index f4da0d5..06923ae 100644 (file)
@@ -1,8 +1,34 @@
-<?xml version="1.0" encoding="UTF-8"?> 
-<shape xmlns:android="http://schemas.android.com/apk/res/android" 
-     android:shape="rectangle"> 
-     <gradient android:startColor="@color/header_gradient_stop" android:endColor="@color/header_gradient_stop" 
-            android:angle="270"/> 
-
-    <corners android:bottomLeftRadius="8dp"/> 
-</shape> 
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<layer-list>
+
+    <item>
+        <shape
+            xmlns:android="http://schemas.android.com/apk/res/android"
+            android:shape="rectangle" >
+            <gradient
+                android:angle="270"
+                android:endColor="@color/header_gradient_stop"
+                android:startColor="@color/header_gradient_start" />
+
+            <corners
+                android:bottomLeftRadius="8dp"
+/>
+        </shape>
+    </item>
+    <item>
+        <shape
+            xmlns:android="http://schemas.android.com/apk/res/android"
+            android:shape="rectangle" >
+            <gradient
+                android:angle="270"
+                android:centerColor="#00ffffff"
+                android:endColor="#00ffffff"
+                android:startColor="#40ffffff" />
+
+            <corners
+                android:bottomLeftRadius="8dp"
+ />
+        </shape>
+    </item>
+
+</layer-list>
\ No newline at end of file
diff --git a/Open-ILS/src/Android/res/drawable/title_header_background.xml b/Open-ILS/src/Android/res/drawable/title_header_background.xml
new file mode 100644 (file)
index 0000000..83fb401
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <solid android:color="@color/header_gradient_stop"/>
+    <corners android:bottomLeftRadius="8dp" android:bottomRightRadius="8dp" />
+</shape>
\ No newline at end of file
index df9b537..b353258 100644 (file)
@@ -3,7 +3,9 @@
     android:id="@+id/record_details_simple_view"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
-    android:orientation="vertical" >
+    android:orientation="vertical"
+    android:background="@color/background"
+     >
 
     <LinearLayout
         android:layout_width="fill_parent"
index 97ebec7..a2e1dd7 100644 (file)
@@ -99,7 +99,6 @@
         android:layout_marginTop="5dip"
         android:gravity="center"
         android:orientation="vertical"
-        
          >
 
         <LinearLayout
index 740a5fd..6cefa4a 100644 (file)
@@ -19,6 +19,7 @@
     android:orientation="vertical"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
+    android:background="@color/background"
     >
 
        <include android:id="@+id/header_actionbar" layout="@layout/simple_actionbar"/>
index aebc5cf..3b06b16 100644 (file)
     
     <color name="background">#333</color>
     
+    <!-- using alpha on header -->
     <color name="menu_background_start">#585858</color>
     <color name="menu_background_stop">#c8c8c8</color>
+    <!-- 
+    <color name="menu_background_stop">#10c8c8c8</color>
+     -->
+    
     
     <color name="menu_bottom_start">#636363</color>
     <color name="menu_bottom_stop">#636363</color>
index 61d608f..2df4733 100644 (file)
    </style>
    
    <style name="HeaderTitle">
-       <item name="android:background">@drawable/header_rounded_corners</item>
+       <item name="android:background">@drawable/title_header_background</item>
        <item name="android:textSize">16dip</item>
        <item name="android:textStyle">bold</item>
        <item name="android:gravity">center</item>
index 9253e32..d54e0ee 100644 (file)
@@ -38,7 +38,7 @@ import android.widget.TextView;
 public class MoreCopyInformation extends Activity{
 
 
-       private ImageButton homeButton;
+       private Button homeButton;
        
        private Button myAccountButton;
        
@@ -59,7 +59,7 @@ public class MoreCopyInformation extends Activity{
                record = (RecordInfo) getIntent().getSerializableExtra("recordInfo");
                
                 //header portion actions
-        homeButton = (ImageButton) findViewById(R.id.library_logo);
+        homeButton = (Button) findViewById(R.id.library_logo);
         myAccountButton = (Button) findViewById(R.id.my_account_button);
         headerTitle = (TextView) findViewById(R.id.header_title);
         headerTitle.setText(R.string.copy_information_title);