<?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:bottomRightRadius="8dp" android:bottomLeftRadius="8dp" />
--- /dev/null
+<?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"
+ android:angle="270"/>
+
+ <corners android:bottomLeftRadius="8dp"/>
+</shape>
\ No newline at end of file
android:layout_height="fill_parent"
android:orientation="vertical" >
+ <include android:id="@+id/header_actionbar" layout="@layout/simple_actionbar"/>
+
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
+ style="@style/Content"
>
<TextView
android:layout_height="fill_parent"
android:orientation="vertical" >
+ <include android:id="@+id/header_actionbar" layout="@layout/simple_actionbar"/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
+
+ <include android:id="@+id/header_actionbar" layout="@layout/simple_actionbar"/>
+
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:layout_height="fill_parent"
android:orientation="vertical" >
+ <include android:id="@+id/header_actionbar" layout="@layout/simple_actionbar"/>
+
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_height="match_parent" >
-
- <LinearLayout
- android:id="@+id/header"
- android:layout_width="fill_parent"
- android:layout_height="40dip"
- android:background="@color/blue"
- android:layout_alignParentTop="true"
- >
- <TextView
- android:id="@+id/header_title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingLeft="5dip"
- android:paddingTop="5dip"
- android:textColor="@color/white"
- android:textStyle="bold"
- android:textSize="16dip"
- />
-
-
- </LinearLayout>
+ <include android:id="@+id/header_actionbar" layout="@layout/simple_actionbar"/>
<LinearLayout
android:id="@+id/action_bar"
android:layout_height="wrap_content"
android:fillViewport="true"
android:layout_above="@id/action_bar"
- android:layout_below="@id/header"
+ android:layout_below="@id/header_actionbar"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
+
+ <include android:id="@+id/header_actionbar" layout="@layout/simple_actionbar"/>
+
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:layout_height="wrap_content"
android:padding="4dp"
android:id="@+id/search_text_container"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
android:layout_below="@id/library_logo">
<EditText
/>
<Button
+ android:id="@+id/library_hours_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/menu_button_library_hours"
/>
- <Button
+ <Button
+ android:id="@+id/preference_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/menu_button_application_preferences"
<?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="wrap_content"
+ >
+
<RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/header"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
- android:background="@drawable/header_rounded_corners"
+ android:background="@drawable/one_header_rounded_corner"
android:paddingTop="3dip"
android:paddingBottom="3dip"
>
android:layout_alignParentLeft="true"
android:padding="10dip"
/>
-
+
<Button
android:id="@+id/my_acount_button"
android:layout_width="wrap_content"
android:layout_alignParentRight="true"
android:padding="10dip"
/>
-
- </RelativeLayout>
\ No newline at end of file
+ </RelativeLayout>
+
+ <TextView
+ android:id="@+id/header_title"
+ android:layout_width="150dip"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:layout_below="@id/header"
+ android:paddingLeft="5dip"
+ android:paddingTop="2dip"
+ android:paddingBottom="2dip"
+ android:textStyle="bold"
+ android:gravity="center"
+ android:layout_alignParentLeft="true"
+ android:background="@drawable/header_rounded_corners"
+ />
+
+</RelativeLayout>
\ No newline at end of file
<string name="my_account_button_text">My Account</string>
<string name="options_button_text">Options</string>
+ <string name="checkout_items_title">checkout items</string>
+ <string name="hold_items_title">holds</string>
+ <string name="hold_place_title">place hold</string>
+ <string name="hold_details_title">hold details</string>
+ <string name="bookbag_items_title">bookbags</string>
+ <string name="bookbag_details_title">bookbag details</string>
+ <string name="fines_title">fines</string>
+
+
+
<string name="search_hint">What are you looking for?</string>
<string name="advanced_search_hint">Enter text here</string>
<string name="advanced_search_add_filter_button">Add filter</string>
<item name="android:textStyle">bold</item>
</style>
+
+ <style name="Content">
+ <item name="android:layout_marginTop">5dip</item>
+ </style>
<!-- Menu List Buttons -->
<style name="MenuListButton">
import org.evergreen.android.globals.Utils;
import org.evergreen.android.searchCatalog.RecordInfo;
import org.evergreen.android.searchCatalog.SearchCatalog;
+import org.evergreen.android.searchCatalog.SearchCatalogListView;
+import org.evergreen.android.views.AccountScreenDashboard;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
+import android.content.Intent;
import android.net.ConnectivityManager;
import android.os.Bundle;
import android.util.Log;
private Button delete_bookbag_button;
+ private Button homeButton;
+
+ private Button myAccountButton;
+
+ private TextView headerTitle;
private Runnable getBookBagsItemsRunnable;
@Override
super.onCreate(savedInstanceState);
setContentView(R.layout.bookbagitem_list);
+ //header portion actions
+ homeButton = (Button) findViewById(R.id.library_logo);
+ myAccountButton = (Button) findViewById(R.id.my_acount_button);
+ headerTitle = (TextView) findViewById(R.id.header_title);
+ headerTitle.setText(R.string.bookbag_details_title);
+
+ myAccountButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),AccountScreenDashboard.class);
+ startActivity(intent);
+ }
+ });
+
+ homeButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),SearchCatalogListView.class);
+ startActivity(intent);
+ }
+ });
+ //end header portion actions
+
accountAccess = AccountAccess.getAccountAccess();
bookBag = (BookBag) getIntent().getSerializableExtra("bookBag");
progressDialog = ProgressDialog.show(context, "Please wait", "Deleting Bookbag");
deleteBookbag.start();
-
- runOnUiThread(new Runnable() {
- @Override
- public void run() {
- progressDialog.dismiss();
- setResult(RESULT_CODE_UPDATE);
- finish();
- }
- });
}
});
import org.evergreen.android.globals.NoAccessToServer;
import org.evergreen.android.globals.NoNetworkAccessException;
import org.evergreen.android.globals.Utils;
+import org.evergreen.android.searchCatalog.SearchCatalogListView;
+import org.evergreen.android.views.AccountScreenDashboard;
import android.app.Activity;
import android.app.ProgressDialog;
private Runnable getBookbagsRunnable;
+ private Button homeButton;
+
+ private Button myAccountButton;
+
+ private TextView headerTitle;
+
@Override
public void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
setContentView(R.layout.bookbag_list);
+ //header portion actions
+ homeButton = (Button) findViewById(R.id.library_logo);
+ myAccountButton = (Button) findViewById(R.id.my_acount_button);
+ headerTitle = (TextView) findViewById(R.id.header_title);
+ headerTitle.setText(R.string.bookbag_items_title);
+
+ myAccountButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),AccountScreenDashboard.class);
+ startActivity(intent);
+ }
+ });
+
+ homeButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),SearchCatalogListView.class);
+ startActivity(intent);
+ }
+ });
+ //end header portion actions
+
context = this;
accountAccess = AccountAccess.getAccountAccess();
import org.evergreen.android.globals.NoAccessToServer;
import org.evergreen.android.globals.NoNetworkAccessException;
import org.evergreen.android.globals.Utils;
+import org.evergreen.android.searchCatalog.SearchCatalogListView;
+import org.evergreen.android.views.AccountScreenDashboard;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
+import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
+import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
private ProgressDialog progressDialog;
+ private Button homeButton;
+
+ private Button myAccountButton;
+
+ private TextView headerTitle;
+
@Override
public void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
setContentView(R.layout.checkout_list);
setTitle("Checkout items");
+ //header portion actions
+ homeButton = (Button) findViewById(R.id.library_logo);
+ myAccountButton = (Button) findViewById(R.id.my_acount_button);
+ headerTitle = (TextView) findViewById(R.id.header_title);
+ headerTitle.setText(R.string.checkout_items_title);
+
+ myAccountButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),AccountScreenDashboard.class);
+ startActivity(intent);
+ }
+ });
+
+ homeButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),SearchCatalogListView.class);
+ startActivity(intent);
+ }
+ });
+ //end header portion actions
+
context = this;
accountAccess = AccountAccess.getAccountAccess();
lv = (ListView) findViewById(R.id.checkout_items_list);
import org.evergreen.android.globals.NoAccessToServer;
import org.evergreen.android.globals.NoNetworkAccessException;
import org.evergreen.android.globals.Utils;
+import org.evergreen.android.searchCatalog.SearchCatalogListView;
+import org.evergreen.android.views.AccountScreenDashboard;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
+import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
+import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
+import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
private OverdueMaterialsArrayAdapter listAdapter;
+ private Button homeButton;
+
+ private Button myAccountButton;
+
+ private TextView headerTitle;
private Context context;
@Override
super.onCreate(savedInstanceState);
setContentView(R.layout.fines);
+
+ //header portion actions
+ homeButton = (Button) findViewById(R.id.library_logo);
+ myAccountButton = (Button) findViewById(R.id.my_acount_button);
+ headerTitle = (TextView) findViewById(R.id.header_title);
+ headerTitle.setText(R.string.fines_title);
+
+ myAccountButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),AccountScreenDashboard.class);
+ startActivity(intent);
+ }
+ });
+
+ homeButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),SearchCatalogListView.class);
+ startActivity(intent);
+ }
+ });
+ //end header portion actions
+
lv = (ListView) findViewById(R.id.fines_overdue_materials_list);
total_owned = (TextView) findViewById(R.id.fines_total_owned);
import org.evergreen.android.globals.NoAccessToServer;
import org.evergreen.android.globals.NoNetworkAccessException;
import org.evergreen.android.globals.Utils;
+import org.evergreen.android.searchCatalog.SearchCatalogListView;
+import org.evergreen.android.views.AccountScreenDashboard;
import android.app.Activity;
import android.app.AlertDialog;
-import android.app.ProgressDialog;
import android.app.AlertDialog.Builder;
import android.app.DatePickerDialog;
+import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
+import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.text.format.DateFormat;
-import android.text.format.Time;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
+import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
+import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.DatePicker;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;
-import android.widget.AdapterView.OnItemSelectedListener;
-import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.Toast;
public class HoldDetails extends Activity {
private GlobalConfigs globalConfigs;
+ private Button homeButton;
+
+ private Button myAccountButton;
+
+ private TextView headerTitle;
+
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.hold_details);
globalConfigs = GlobalConfigs.getGlobalConfigs(this);
+
+ homeButton = (Button) findViewById(R.id.library_logo);
+ myAccountButton = (Button) findViewById(R.id.my_acount_button);
+ headerTitle = (TextView) findViewById(R.id.header_title);
+ headerTitle.setText(R.string.hold_details_title);
+ homeButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),SearchCatalogListView.class);
+ startActivity(intent);
+ }
+ });
+ myAccountButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(), AccountScreenDashboard.class);
+ startActivity(intent);
+ }
+ });
+
+
final HoldRecord record = (HoldRecord) getIntent()
.getSerializableExtra("holdRecord");
title = (TextView) findViewById(R.id.hold_title);
author = (TextView) findViewById(R.id.hold_author);
physical_description = (TextView) findViewById(R.id.hold_physical_description);
- screen_title = (TextView) findViewById(R.id.header_title);
cancelHold = (Button) findViewById(R.id.cancel_hold_button);
updateHold = (Button) findViewById(R.id.update_hold_button);
back = (Button) findViewById(R.id.back_button);
expiration_date = (EditText) findViewById(R.id.hold_expiration_date);
thaw_date_edittext = (EditText) findViewById(R.id.hold_thaw_date);
- screen_title.setText("Place Hold");
-
-
-
recipient.setText(accountAccess.userName);
title.setText(record.title);
author.setText(record.author);
import org.evergreen.android.globals.NoAccessToServer;
import org.evergreen.android.globals.NoNetworkAccessException;
import org.evergreen.android.globals.Utils;
+import org.evergreen.android.searchCatalog.SearchCatalogListView;
+import org.evergreen.android.views.AccountScreenDashboard;
import android.app.Activity;
import android.app.ProgressDialog;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
+import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
+import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
Runnable getHoldsRunnable= null;
+ private Button homeButton;
+
+ private Button myAccountButton;
+
+ private TextView headerTitle;
+
private ProgressDialog progressDialog;
@Override
protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.holds_list);
+ //header portion actions
+ homeButton = (Button) findViewById(R.id.library_logo);
+ myAccountButton = (Button) findViewById(R.id.my_acount_button);
+ headerTitle = (TextView) findViewById(R.id.header_title);
+ headerTitle.setText(R.string.hold_items_title);
+
+ myAccountButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),AccountScreenDashboard.class);
+ startActivity(intent);
+ }
+ });
+
+ homeButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),SearchCatalogListView.class);
+ startActivity(intent);
+ }
+ });
+ //end header portion actions
lv = (ListView)findViewById(R.id.holds_item_list);
context = this;
import org.evergreen.android.utils.ui.BasicDetailsFragment;
import org.evergreen.android.utils.ui.TestFragmentAdapter;
import org.evergreen.android.utils.ui.UnderlinePageIndicator;
+import org.evergreen.android.views.AccountScreenDashboard;
+import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.view.ViewPager;
-import android.widget.ListView;
+import android.view.View;
+import android.view.View.OnClickListener;
+import android.widget.Button;
public class SampleUnderlinesNoFade extends BaseSampleActivity {
private List<RecordInfo> records;
+ private Button myAccountButton;
+
+ private Button homeButton;
@Override
protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.simple_underlines);
records = (List<RecordInfo>)getIntent().getSerializableExtra("recordList");
-
+
+ //header portion actions
+ homeButton = (Button) findViewById(R.id.library_logo);
+ myAccountButton = (Button) findViewById(R.id.my_acount_button);
+
+ myAccountButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),AccountScreenDashboard.class);
+ startActivity(intent);
+ }
+ });
+
+ homeButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),SearchCatalogListView.class);
+ startActivity(intent);
+ }
+ });
+ //end header portion actions
+
int record_position = getIntent().getIntExtra("recordPosition", 0);
mAdapter = new SearchFragmentAdapter(getSupportFragmentManager());
indicator.setViewPager(mPager);
indicator.setFades(false);
mIndicator = indicator;
+
}
class SearchFragmentAdapter extends TestFragmentAdapter {
import org.evergreen.android.globals.NoAccessToServer;
import org.evergreen.android.globals.NoNetworkAccessException;
import org.evergreen.android.globals.Utils;
+import org.evergreen.android.views.AccountScreenDashboard;
+import org.evergreen.android.views.ApplicationPreferences;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.os.Bundle;
+import android.preference.PreferenceActivity;
import android.util.Log;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
private Button advancedSearchButton = null;
+ private Button libraryHoursButton = null;
+
+ private Button preferenceButton = null;
+
private Button homeButton = null;
+ private Button myAccountButton = null;
+
private String advancedSearchString = null;
@Override
setContentView(R.layout.search_result_list);
setTitle("Browse catalog");
+ myAccountButton = (Button) findViewById(R.id.my_acount_button);
+ myAccountButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(),AccountScreenDashboard.class);
+ startActivity(intent);
+ }
+ });
+
homeButton = (Button) findViewById(R.id.library_logo);
homeButton.setOnClickListener(new OnClickListener() {
searchOptionsMenu.setVisibility(View.VISIBLE);
}
});
-
+ //end header portion actions
+
advancedSearchButton = (Button) findViewById(R.id.menu_advanced_search_button);
advancedSearchButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
dialog.dismiss();
}
- });
-
-
-
+ });
dialog.setCancelable(true);
dialog.show();
}
});
+ libraryHoursButton = (Button) findViewById(R.id.library_hours_button);
+ libraryHoursButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ // TODO Auto-generated method stub
+ }
+ });
+
+ preferenceButton = (Button) findViewById(R.id.preference_button);
+ preferenceButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(), ApplicationPreferences.class);
+ startActivity(intent);
+ }
+ });
+
//singleton initialize necessary IDL and Org data
globalConfigs = GlobalConfigs.getGlobalConfigs(this);
alertDialog.show();
-
-
-
+
s.setOnItemSelectedListener(new OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> arg0, View arg1,
- int position, long arg3) {
-
+ int position, long arg3) {
bookbag_selected = position;
}
@Override
public void onNothingSelected(AdapterView<?> arg0) {
- // TODO Auto-generated method stub
-
}
});
}
class SearchArrayAdapter extends ArrayAdapter<RecordInfo> {
+
private static final String tag = "SearchArrayAdapter";
private Context context;
private ImageView recordImage;
row = inflater.inflate(R.layout.search_result_item, parent, false);
Log.d(tag, "Successfully completed XML Row Inflation!");
- }
-
-
-
+ }
+
Log.d(TAG, "reord image value " + recordImage);
// Get reference to ImageView
recordImage = (ImageView) row.findViewById(R.id.search_record_img);
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
-
-
-
+
System.out.println("Show more tabed");
// insert into main view
LinearLayout insertPoint = (LinearLayout) lay.findViewById(R.id.record_details_copy_information);