<?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"
+ <gradient
+
+ android:startColor="@color/header_gradient_start" android:endColor="@color/header_gradient_stop"
+
android:angle="270"/>
<corners android:bottomRightRadius="8dp" android:bottomLeftRadius="8dp" />
<?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_start" android:endColor="@color/header_gradient_stop"
+ <gradient android:startColor="@color/header_gradient_stop" android:endColor="@color/header_gradient_stop"
android:angle="270"/>
<corners android:bottomLeftRadius="8dp"/>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
- android:layout_height="fill_parent">
+ android:layout_height="fill_parent"
+ android:background="@color/background"
+ >
<RelativeLayout
android:id="@+id/header"
android:paddingTop="3dip"
>
- <ImageButton
+ <Button
android:id="@+id/library_logo"
+ style="@style/LibraryLogoText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- style="@style/LibraryLogoText"
android:layout_alignParentLeft="true"
- android:src="@drawable/evergreen_launcher_icon_48"
android:layout_marginLeft="5dip"
+ android:drawableLeft="@drawable/evergreen_launcher_icon_48"
+ android:text="@string/library_text_logo"
+ android:textColor="@color/white"
+ android:textSize="16dp"
+ android:typeface="monospace"
+ android:textStyle="bold"
+ android:paddingLeft="5dip"
/>
<Button
- android:id="@+id/my_acount_button"
+ android:id="@+id/my_account_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/my_account_button_text"
>
- <Button
- android:id="@+id/menu_advanced_search_button"
- android:layout_width="100dip"
- android:layout_height="wrap_content"
- android:text="@string/menu_button_advanced_search"
- android:drawableTop="@drawable/settings_small"
- style="@style/MenuListButton"
- />
-
- <Button
- android:id="@+id/library_hours_button"
- android:layout_width="100dip"
- android:layout_height="wrap_content"
- android:text="@string/menu_button_library_hours"
- android:drawableTop="@drawable/settings_small"
- style="@style/MenuListButton"
- />
-
+ <ImageButton
+ android:id="@+id/menu_advanced_search_button"
+ style="@style/MenuListButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:src="@drawable/advanced_search" />
+
+ <ImageButton
+ android:id="@+id/library_hours_button"
+ style="@style/MenuListButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:src="@drawable/library_hours" />
+
+
+ <ImageButton
+ android:id="@+id/preference_button"
+ style="@style/MenuListButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:src="@drawable/preferences"
+ />
+
+ <ImageButton
+ android:id="@+id/barcode_scan_button"
+ style="@style/MenuListButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:src="@drawable/barcode_scan"/>
-
- <Button
- android:id="@+id/preference_button"
- android:layout_width="100dip"
- android:layout_height="wrap_content"
- android:text="@string/menu_button_application_preferences"
- android:drawableTop="@drawable/settings_small"
- style="@style/MenuListButton"
- />
</LinearLayout>
<LinearLayout android:layout_width="fill_parent"
android:paddingBottom="3px"
android:paddingTop="3px"
android:paddingLeft="3px"
- android:orientation="horizontal" >
+ android:orientation="horizontal"
+ android:background="@color/background"
+ >
<ImageView
android:id="@+id/search_record_img"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
+ android:background="@color/background"
>
<RelativeLayout
android:paddingBottom="2dip"
>
- <ImageButton
+ <Button
android:id="@+id/library_logo"
style="@style/LibraryLogoText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="5dip"
- android:src="@drawable/evergreen_launcher_icon_48" />
-
+ android:drawableLeft="@drawable/evergreen_launcher_icon_48"
+ android:text="@string/library_text_logo"
+ android:textColor="@color/white"
+ android:textSize="16dp"
+ android:typeface="monospace"
+ android:textStyle="bold"
+ android:paddingLeft="5dip"
+ />
+
<Button
- android:id="@+id/my_acount_button"
+ android:id="@+id/my_account_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
<LinearLayout
android:layout_width="fill_parent"
- android:layout_height="wrap_content" >
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ >
- <Button
+ <ImageButton
android:id="@+id/menu_advanced_search_button"
- style="@style/MenuListOrangeButton"
- android:layout_width="150dip"
+ style="@style/MenuListButton"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:drawableTop="@drawable/settings_small"
- android:text="@string/menu_button_advanced_search" />
+ android:src="@drawable/advanced_search" />
- <Button
+ <ImageButton
android:id="@+id/library_hours_button"
- style="@style/MenuListBlueButton"
- android:layout_width="150dip"
+ style="@style/MenuListButton"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:drawableTop="@drawable/settings_small"
- android:text="@string/menu_button_library_hours" />
+ android:src="@drawable/library_hours" />
</LinearLayout>
<LinearLayout
android:layout_height="wrap_content"
android:gravity="center" >
- <Button
+ <ImageButton
android:id="@+id/preference_button"
- style="@style/MenuListPurpleButton"
- android:layout_width="150dip"
+ style="@style/MenuListButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:src="@drawable/preferences"
+ />
+
+ <ImageButton
+ android:id="@+id/barcode_scan_button"
+ style="@style/MenuListButton"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:drawableTop="@drawable/settings_small"
- android:text="@string/menu_button_application_preferences" />
+ android:src="@drawable/barcode_scan"/>
+
</LinearLayout>
</LinearLayout>
android:layout_height="wrap_content"
>
-<RelativeLayout
+ <RelativeLayout
android:id="@+id/header"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:orientation="horizontal"
android:background="@drawable/one_header_rounded_corner"
+ android:orientation="horizontal"
android:paddingTop="3dip"
- android:paddingBottom="3dip"
- >
-
- <ImageButton
+ android:paddingBottom="2dip"
+ >
+
+ <Button
android:id="@+id/library_logo"
+ style="@style/LibraryLogoText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- style="@style/LibraryLogoText"
android:layout_alignParentLeft="true"
- android:src="@drawable/evergreen_launcher_icon_48"
android:layout_marginLeft="5dip"
+ android:drawableLeft="@drawable/evergreen_launcher_icon_48"
+ android:text="@string/library_text_logo"
+ android:textColor="@color/white"
+ android:textSize="16dp"
+ android:typeface="monospace"
+ android:textStyle="bold"
+ android:paddingLeft="5dip"
/>
-
+
<Button
android:id="@+id/my_account_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/my_account_button_text"
android:layout_alignParentRight="true"
- android:padding="10dip"
android:layout_marginTop="5dip"
- />
+ android:padding="10dip"
+ android:text="@string/my_account_button_text" />
</RelativeLayout>
<TextView
<color name="button_stroke">#aaa</color>
+
+ <color name="background">#333</color>
+
<!-- Search Details -->
<color name="dark">#000</color>
</resources>
<!-- Menu List Buttons -->
<style name="MenuListButton">
- <item name="android:background">@drawable/menu_button</item>
+ <item name="android:background">@android:color/transparent</item>
<item name="android:layout_margin">5dip</item>
</style>
private Button delete_bookbag_button;
- private ImageButton homeButton;
+ private Button homeButton;
private Button myAccountButton;
setContentView(R.layout.bookbagitem_list);
//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.bookbag_details_title);
private Runnable getBookbagsRunnable;
- private ImageButton homeButton;
+ private Button homeButton;
private Button myAccountButton;
setContentView(R.layout.bookbag_list);
//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.bookbag_items_title);
private ProgressDialog progressDialog;
- private ImageButton homeButton;
+ private Button homeButton;
private Button myAccountButton;
setTitle("Checkout items");
//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.checkout_items_title);
private OverdueMaterialsArrayAdapter listAdapter;
- private ImageButton homeButton;
+ private Button homeButton;
private Button myAccountButton;
setContentView(R.layout.fines);
//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.fines_title);
private GlobalConfigs globalConfigs;
- private ImageButton homeButton;
+ private Button homeButton;
private Button myAccountButton;
globalConfigs = GlobalConfigs.getGlobalConfigs(this);
- 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.hold_details_title);
Runnable getHoldsRunnable= null;
- private ImageButton homeButton;
+ private Button homeButton;
private Button myAccountButton;
setContentView(R.layout.holds_list);
//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.hold_items_title);
private int selectedOrgPos = 0;
- private ImageButton homeButton;
+ private Button homeButton;
private Button myAccountButton;
globalConfigs = GlobalConfigs.getGlobalConfigs(this);
RecordInfo record = (RecordInfo) getIntent().getSerializableExtra("recordInfo");
- 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.hold_place_title);
private Button myAccountButton;
- private ImageButton homeButton;
+ private Button homeButton;
private TextView headerTitle;
//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.search_details_title);
private View searchOptionsMenu = null;
- private Button advancedSearchButton = null;
+ private ImageButton advancedSearchButton = null;
- private Button libraryHoursButton = null;
+ private ImageButton libraryHoursButton = null;
- private Button preferenceButton = null;
+ private ImageButton preferenceButton = null;
- private ImageButton homeButton = null;
+ private ImageButton barcodeScanButton = null;
+
+ private Button homeButton = null;
private Button myAccountButton = null;
setContentView(R.layout.search_result_list);
setTitle("Browse catalog");
- myAccountButton = (Button) findViewById(R.id.my_acount_button);
+ myAccountButton = (Button) findViewById(R.id.my_account_button);
myAccountButton.setOnClickListener(new OnClickListener() {
@Override
}
});
- homeButton = (ImageButton) findViewById(R.id.library_logo);
+ homeButton = (Button) findViewById(R.id.library_logo);
homeButton.setOnClickListener(new OnClickListener() {
@Override
});
//end header portion actions
- advancedSearchButton = (Button) findViewById(R.id.menu_advanced_search_button);
+ advancedSearchButton = (ImageButton) findViewById(R.id.menu_advanced_search_button);
advancedSearchButton.setOnClickListener(new OnClickListener() {
@Override
AccountAccess ac = AccountAccess.getAccountAccess();
bookBags = ac.bookBags;
- libraryHoursButton = (Button) findViewById(R.id.library_hours_button);
+ libraryHoursButton = (ImageButton) findViewById(R.id.library_hours_button);
libraryHoursButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});
- preferenceButton = (Button) findViewById(R.id.preference_button);
+ preferenceButton = (ImageButton) findViewById(R.id.preference_button);
preferenceButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});
+ barcodeScanButton = (ImageButton) findViewById(R.id.barcode_scan_button);
+
//singleton initialize necessary IDL and Org data
globalConfigs = GlobalConfigs.getGlobalConfigs(this);