android:paddingTop="3dip" >
<Button
- android:id="@+id/library_logo"
+ android:id="@+id/action_bar_home_button"
style="@style/LibraryLogoText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dip"
android:drawableLeft="@drawable/evergreen_launcher_icon_48"
android:paddingLeft="5dip"
- android:text="@string/library_text_logo"
+ android:text="@string/ou_action_bar_text"
android:textColor="@color/white"
android:textSize="16sp"
- android:textStyle="bold"
- android:typeface="monospace" />
+ />
- <Button
- android:id="@+id/my_account_button"
- style="@style/HeaderButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_marginTop="5dip"
- android:padding="10dip"
- android:text="@string/my_account_button_text" />
</RelativeLayout>
<ScrollView
>
<Button
- android:id="@+id/library_logo"
+ android:id="@+id/action_bar_home_button"
style="@style/LibraryLogoText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="5dip"
android:drawableLeft="@drawable/evergreen_launcher_icon_48"
- android:text="@string/library_text_logo"
+ android:text="@string/ou_action_bar_text"
android:textColor="@color/white"
android:textSize="16sp"
- android:typeface="monospace"
- android:textStyle="bold"
android:paddingLeft="5dip"
/>
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"
style="@style/HeaderButton"
- />
+ android:layout_alignTop="@+id/action_bar_home_button" android:layout_alignParentRight="true"
+ android:layout_centerVertical="true" android:gravity="center_vertical" android:layout_marginTop="10dip"/>
<LinearLayout
android:id="@+id/search_text_container"
android:focusable="true"
android:focusableInTouchMode="true"
- android:layout_below="@id/library_logo">
+ android:layout_below="@id/action_bar_home_button">
<EditText
android:id="@+id/searchText"
android:layout_centerHorizontal="true"
android:layout_marginTop="106dp"
android:src="@drawable/evergreen_logo_sm072"
- android:contentDescription="@string/library_text_logo" />
+ android:contentDescription="@string/ou_action_bar_text" />
<TextView
android:id="@+id/action_in_progress"
>
<Button
- android:id="@+id/library_logo"
+ android:id="@+id/action_bar_home_button"
style="@style/LibraryLogoText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="5dip"
android:drawableLeft="@drawable/evergreen_launcher_icon_48"
- android:text="@string/library_text_logo"
+ android:text="@string/ou_action_bar_text"
android:textColor="@color/white"
android:textSize="16sp"
- 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:layout_alignParentRight="true"
- android:layout_marginTop="5dip"
- android:padding="10dip"
- android:text="@string/my_account_button_text"
- style="@style/HeaderButton"
- />
+
</RelativeLayout>
<LinearLayout
>
<Button
- android:id="@+id/library_logo"
+ android:id="@+id/action_bar_home_button"
style="@style/LibraryLogoText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="5dip"
android:drawableLeft="@drawable/evergreen_launcher_icon_48"
- android:text="@string/library_text_logo"
+ android:text="@string/ou_action_bar_text"
android:textColor="@color/white"
android:textSize="16sp"
- android:typeface="monospace"
- android:textStyle="bold"
- android:paddingLeft="5dip"
- />
+ android:paddingLeft="5dip"/>
<Button
android:id="@+id/my_account_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_marginTop="5dip"
android:padding="10dip"
android:text="@string/my_account_button_text"
style="@style/HeaderButton"
- />
+ android:layout_centerVertical="true" android:layout_alignParentRight="true"/>
</RelativeLayout>
<LinearLayout
>
<Button
- android:id="@+id/library_logo"
+ android:id="@+id/action_bar_home_button"
style="@style/LibraryLogoText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="5dip"
android:drawableLeft="@drawable/evergreen_launcher_icon_48"
- android:text="@string/library_text_logo"
+ android:text="@string/ou_action_bar_text"
android:textColor="@color/white"
android:textSize="16sp"
- android:typeface="monospace"
- android:textStyle="bold"
android:paddingLeft="5dip"
/>
android:id="@+id/my_account_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_marginTop="5dip"
android:padding="10dip"
android:text="@string/my_account_button_text"
style="@style/HeaderButton"
- />
+ android:layout_centerVertical="true" android:layout_alignParentRight="true"/>
</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:layout_alignParentLeft="true"
- style="@style/HeaderTitle"
- />
-
+
</RelativeLayout>
\ No newline at end of file
<!-- TODO: make URLs HTTPS -->
<string name="ou_library_url">http://bark.cwmars.org</string>
<string name="ou_app_name">C/W Mars Library</string>
- <string name="ou_app_label">C/W Mars</string>
+ <string name="ou_app_label">C/W Mars Library</string>
<string name="ou_app_welcome_label">Welcome</string>
<string name="ou_account_label">C/W Mars Library</string>
<string name="ou_account_sign_in_message">Sign in to your\nC/W Mars Library Account</string>
+ <string name="ou_action_bar_text">C/W Mars</string>
</resources>
<string name="menu_barcode_scan">barcode scan</string>
<!-- Header portion -->
- <string name="library_text_logo">Evergreen</string>
<string name="my_account_button_text">My Account</string>
<string name="options_button_text">Options</string>
<string name="search_details_title">Search Details</string>
<!-- first config activity -->
- <string name="first_config_message">Please enter the Evergreen server url, username and password of your account.</string>
- <string name="server_name">Library Catalog URL:</string>
<string name="username">Username:</string>
<string name="hint_username">Card Number or Username</string>
<string name="password">Password:</string>
<!-- Search -->
- <string name="search_hint">What are you looking for?</string>
- <string name="advanced_search">Search</string>
+ <string name="browse_catalog">Browse catalog</string>
+ <string name="search_hint">Search keywords</string>
+ <string name="advanced_search">Advanced Search</string>
<string name="loading_dialog_text"></string>
- <string name="dialog_please_wait">Please wait</string>
+ <string name="dialog_please_wait"></string>
<string name="dialog_fetching_data_message">Searching catalog</string>
<string name="dialog_load_more_message">Fetching more results</string>
<string name="advanced_search_hint">Enter text here</string>
<string name="menu_button_library_hours">Library hours</string>
<string name="menu_button_application_preferences">Preferences</string>
<string name="copy_information"> Availability of the book :</string>
- <string name="hello">Hello World, EvergreenAppActivity!</string>
- <string name="generic_app_name">Evergreen</string>
<string name="title_activity_startup">Welcome to Evergreen</string>
<string name="title_search">Search</string>
<string name="title_my_account">My Account</string>
- <string name="title_application_settings">App. Settings </string>
<string name="title_check_out">Items Checked Out</string>
<string name="title_holds">Holds</string>
<string name="title_fines">Fines</string>
<string name="title_book_bags">Bookbags</string>
- <string name="search_result_text"> Search result :</string>
<string name="renew_button">renew</string>
<string name="record_of">Record %1$d of %2$d</string>
setContentView(R.layout.bookbagitem_list);
// header portion actions
- homeButton = (Button) findViewById(R.id.library_logo);
+ homeButton = (Button) findViewById(R.id.action_bar_home_button);
myAccountButton = (Button) findViewById(R.id.my_account_button);
- headerTitle = (TextView) findViewById(R.id.header_title);
- headerTitle.setText(R.string.bookbag_details_title);
myAccountButton.setOnClickListener(new OnClickListener() {
@Override
}
});
+ homeButton.setText(R.string.bookbag_details_title);
homeButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
import org.evergreen.android.R;
import org.evergreen.android.accountAccess.AccountAccess;
import org.evergreen.android.accountAccess.SessionNotFoundException;
-import org.evergreen.android.globals.Utils;
import org.evergreen.android.searchCatalog.SearchCatalogListView;
import org.evergreen.android.views.AccountScreenDashboard;
import org.evergreen.android.views.splashscreen.SplashActivity;
setContentView(R.layout.bookbag_list);
// header portion actions
- 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);
-
myAccountButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});
+ homeButton = (Button) findViewById(R.id.action_bar_home_button);
+ homeButton.setText(R.string.bookbag_items_title);
homeButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
import org.evergreen.android.accountAccess.MaxRenewalsException;
import org.evergreen.android.accountAccess.ServerErrorMessage;
import org.evergreen.android.accountAccess.SessionNotFoundException;
-import org.evergreen.android.globals.Utils;
import org.evergreen.android.searchCatalog.SearchCatalogListView;
import org.evergreen.android.views.AccountScreenDashboard;
import org.evergreen.android.views.splashscreen.SplashActivity;
currentDate = new Date(System.currentTimeMillis());
// header portion actions
- 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);
-
myAccountButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});
+ homeButton = (Button) findViewById(R.id.action_bar_home_button);
+ homeButton.setText(R.string.checkout_items_title);
homeButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
import org.evergreen.android.R;
import org.evergreen.android.accountAccess.AccountAccess;
import org.evergreen.android.accountAccess.SessionNotFoundException;
-import org.evergreen.android.globals.Utils;
import org.evergreen.android.searchCatalog.SearchCatalogListView;
import org.evergreen.android.views.AccountScreenDashboard;
import org.evergreen.android.views.splashscreen.SplashActivity;
setContentView(R.layout.fines);
// header portion actions
- 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);
-
myAccountButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});
+ homeButton = (Button) findViewById(R.id.action_bar_home_button);
+ homeButton.setText(R.string.fines_title);
homeButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
import org.evergreen.android.accountAccess.AccountAccess;
import org.evergreen.android.accountAccess.SessionNotFoundException;
import org.evergreen.android.globals.GlobalConfigs;
-import org.evergreen.android.globals.Utils;
import org.evergreen.android.searchCatalog.SearchCatalogListView;
import org.evergreen.android.views.AccountScreenDashboard;
import org.evergreen.android.views.splashscreen.SplashActivity;
setContentView(R.layout.hold_details);
globalConfigs = GlobalConfigs.getGlobalConfigs(this);
- 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);
- homeButton.setOnClickListener(new OnClickListener() {
+ myAccountButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getApplicationContext(),
- SearchCatalogListView.class);
+ AccountScreenDashboard.class);
startActivity(intent);
}
});
- myAccountButton.setOnClickListener(new OnClickListener() {
+
+ homeButton = (Button) findViewById(R.id.action_bar_home_button);
+ homeButton.setText(R.string.hold_details_title);
+ homeButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getApplicationContext(),
- AccountScreenDashboard.class);
+ SearchCatalogListView.class);
startActivity(intent);
}
});
import org.evergreen.android.accountAccess.AccountAccess;
import org.evergreen.android.accountAccess.SessionNotFoundException;
import org.evergreen.android.globals.GlobalConfigs;
-import org.evergreen.android.globals.Utils;
import org.evergreen.android.searchCatalog.ImageDownloader;
import org.evergreen.android.searchCatalog.SearchCatalogListView;
import org.evergreen.android.views.AccountScreenDashboard;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
-import android.widget.Toast;
public class HoldsListView extends Activity {
setContentView(R.layout.holds_list);
// header portion actions
- 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);
-
myAccountButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});
+ homeButton = (Button) findViewById(R.id.action_bar_home_button);
+ homeButton.setText(R.string.hold_items_title);
homeButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
import org.evergreen.android.accountAccess.AccountAccess;
import org.evergreen.android.accountAccess.SessionNotFoundException;
import org.evergreen.android.globals.GlobalConfigs;
-import org.evergreen.android.globals.Utils;
import org.evergreen.android.searchCatalog.RecordInfo;
import org.evergreen.android.searchCatalog.SearchCatalogListView;
import org.evergreen.android.views.AccountScreenDashboard;
RecordInfo record = (RecordInfo) getIntent().getSerializableExtra(
"recordInfo");
- 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);
-
myAccountButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});
+ homeButton = (Button) findViewById(R.id.action_bar_home_button);
+ homeButton.setText(R.string.hold_place_title);
homeButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
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);
cancel = (Button) findViewById(R.id.cancel_hold);
placeHold = (Button) findViewById(R.id.place_hold);
expiration_date = (EditText) findViewById(R.id.hold_expiration_date);
suspendHold = (CheckBox) findViewById(R.id.hold_suspend_hold);
orgSelector = (Spinner) findViewById(R.id.hold_pickup_location);
thaw_date_edittext = (EditText) findViewById(R.id.hold_thaw_date);
- screen_title.setText("Place Hold");
recipient.setText(accountAccess.userName);
title.setText(record.title);
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.EditText;
-import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.Spinner;
import android.widget.TextView;
setContentView(R.layout.advanced_search);
+ advancedSearchFormattedText = new StringBuilder();
+
// header portion actions
- 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.advanced_search);
-
- advancedSearchFormattedText = new StringBuilder();
myAccountButton.setOnClickListener(new OnClickListener() {
@Override
}
});
+ homeButton = (Button) findViewById(R.id.action_bar_home_button);
+ homeButton.setText(R.string.advanced_search);
homeButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
record = (RecordInfo) getIntent().getSerializableExtra("recordInfo");
// header portion actions
- 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);
-
myAccountButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});
+ homeButton = (Button) findViewById(R.id.action_bar_home_button);
+ homeButton.setText(R.string.copy_information_title);
homeButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
import java.util.ArrayList;
import org.evergreen.android.R;
-import org.evergreen.android.accountAccess.SessionNotFoundException;
-import org.evergreen.android.globals.Utils;
import org.evergreen.android.utils.ui.BaseSampleActivity;
import org.evergreen.android.utils.ui.BasicDetailsFragment;
import org.evergreen.android.utils.ui.TestFragmentAdapter;
context = this;
// header portion actions
- homeButton = (Button) findViewById(R.id.library_logo);
+ homeButton = (Button) findViewById(R.id.action_bar_home_button);
myAccountButton = (Button) findViewById(R.id.my_account_button);
- headerTitle = (TextView) findViewById(R.id.header_title);
- headerTitle.setText(R.string.search_details_title);
myAccountButton.setOnClickListener(new OnClickListener() {
@Override
}
});
+ homeButton.setText(R.string.search_details_title);
homeButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
import org.evergreen.android.accountAccess.holds.PlaceHold;
import org.evergreen.android.barcodescan.CaptureActivity;
import org.evergreen.android.globals.GlobalConfigs;
-import org.evergreen.android.globals.Utils;
import org.evergreen.android.views.AccountScreenDashboard;
import org.evergreen.android.views.ApplicationPreferences;
import org.evergreen.android.views.splashscreen.SplashActivity;
}
setContentView(R.layout.search_result_list);
- setTitle("Browse catalog");
+ setTitle(R.string.browse_catalog);
myAccountButton = (Button) findViewById(R.id.my_account_button);
-
myAccountButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});
- homeButton = (Button) findViewById(R.id.library_logo);
-
+ homeButton = (Button) findViewById(R.id.action_bar_home_button);
+ homeButton.setText(R.string.browse_catalog);
homeButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
setContentView(R.layout.dashbord_account);
- myAccountButton = (Button) findViewById(R.id.my_account_button);
- myAccountButton.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
-
- }
- });
-
- homeButton = (Button) findViewById(R.id.library_logo);
+// myAccountButton = (Button) findViewById(R.id.my_account_button);
+// myAccountButton.setEnabled(false);
+// myAccountButton.setOnClickListener(new OnClickListener() {
+// @Override
+// public void onClick(View v) {
+// }
+// });
+
+ homeButton = (Button) findViewById(R.id.action_bar_home_button);
+ homeButton.setText(R.string.my_account_button_text);
homeButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {