<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET" />
<application
- android:icon="@drawable/ic_launcher"
+ android:icon="@drawable/evergreen_launcher_icon"
android:label="@string/app_name"
android:theme="@style/EvergreenTheme"
>
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_pressed="true">
+ <shape>
+ <gradient android:startColor="@color/pres1"
+ android:endColor="@color/pres2" android:angle="270" />
+ <corners android:radius="5dp" />
+ <padding android:left="4dp" android:top="4dp" android:right="4dp" android:bottom="4dp" />
+ </shape>
+ </item>
+ <item android:state_focused="true">
+ <shape>
+ <gradient android:endColor="@color/focu1"
+ android:startColor="@color/focu2" android:angle="270" />
+ <corners android:radius="5dp" />
+ <padding android:left="4dp" android:top="4dp" android:right="4dp" android:bottom="4dp" />
+ </shape>
+ </item>
+ <item>
+ <shape>
+
+ <gradient android:endColor="@android:color/transparent"
+ android:startColor="@android:color/transparent" android:angle="270" />
+ <corners android:radius="5dp" />
+ <padding android:left="4dp" android:top="4dp" android:right="4dp" android:bottom="4dp" />
+ </shape>
+ </item>
+
+</selector>
<?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"/>
android:paddingTop="3dip"
>
- <Button
+ <ImageButton
android:id="@+id/library_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/library_text_logo"
style="@style/LibraryLogoText"
android:layout_alignParentLeft="true"
- android:padding="10dip"
+ android:src="@drawable/evergreen_launcher_icon_48"
+ android:layout_marginLeft="5dip"
/>
<Button
android:text="@string/my_account_button_text"
android:layout_alignParentRight="true"
android:padding="10dip"
+ android:layout_marginTop="5dip"
/>
android:paddingBottom="3dip"
>
- <Button
+ <ImageButton
android:id="@+id/library_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/library_text_logo"
style="@style/LibraryLogoText"
android:layout_alignParentLeft="true"
- android:padding="10dip"
+ android:src="@drawable/evergreen_launcher_icon_48"
+ android:layout_marginLeft="5dip"
/>
-
+
<Button
android:id="@+id/my_acount_button"
android:layout_width="wrap_content"
android:text="@string/my_account_button_text"
android:layout_alignParentRight="true"
android:padding="10dip"
+ android:layout_marginTop="5dip"
/>
</RelativeLayout>
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"
+ style="@style/HeaderTitle"
/>
</RelativeLayout>
\ No newline at end of file
<color name="norm2">#00ccde</color>
<!-- Header portion -->
- <color name="header_gradient_start">#a10000</color>
- <color name="header_gradient_stop">#aA0000</color>
+ <color name="header_gradient_start">#E0F6E0</color>
+ <color name="header_gradient_stop">#6F9669</color>
<color name="library_logo_text_coor">#000</color>
+ <color name="header_title">#ffffff</color>
<!-- Search Details -->
<color name="dark">#000</color>
</style>
+ <style name="HeaderTitle">
+ <item name="android:background">@drawable/header_rounded_corners</item>
+ <item name="android:textSize">16dip</item>
+ <item name="android:textStyle">bold</item>
+ <item name="android:gravity">center</item>
+ <item name="android:paddingTop">2dip</item>
+ <item name="android:paddingLeft">5dip</item>
+ <item name="android:paddingBottom">2dip</item>
+ <item name="android:textColor">@color/header_title</item>
+ </style>
+
<style name="Content">
<item name="android:layout_marginTop">5dip</item>
</style>
<!-- Header portion start -->
<style name="LibraryLogoText">
- <item name="android:textColor">@color/library_logo_text_coor</item>
- <item name="android:textSize">@dimen/library_logo_text_size</item>
- <item name="android:textStyle">bold</item>
+ <item name="android:background">@drawable/logo_button</item>
</style>
<!-- Header portion end -->
import org.evergreen.android.accountAccess.SessionNotFoundException;
import org.evergreen.android.globals.NoAccessToServer;
import org.evergreen.android.globals.NoNetworkAccessException;
-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 android.app.Activity;
import android.app.AlertDialog;
+import android.app.AlertDialog.Builder;
import android.app.ProgressDialog;
import android.app.Service;
-import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
+import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
private Button delete_bookbag_button;
- private Button homeButton;
+ private ImageButton homeButton;
private Button myAccountButton;
setContentView(R.layout.bookbagitem_list);
//header portion actions
- homeButton = (Button) findViewById(R.id.library_logo);
+ homeButton = (ImageButton) 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);
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
+import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
private Runnable getBookbagsRunnable;
- private Button homeButton;
+ private ImageButton homeButton;
private Button myAccountButton;
setContentView(R.layout.bookbag_list);
//header portion actions
- homeButton = (Button) findViewById(R.id.library_logo);
+ homeButton = (ImageButton) 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);
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
+import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
private ProgressDialog progressDialog;
- private Button homeButton;
+ private ImageButton homeButton;
private Button myAccountButton;
setTitle("Checkout items");
//header portion actions
- homeButton = (Button) findViewById(R.id.library_logo);
+ homeButton = (ImageButton) 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);
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
-import android.view.ViewGroup;
import android.view.View.OnClickListener;
+import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
+import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.TextView;
private OverdueMaterialsArrayAdapter listAdapter;
- private Button homeButton;
+ private ImageButton homeButton;
private Button myAccountButton;
setContentView(R.layout.fines);
//header portion actions
- homeButton = (Button) findViewById(R.id.library_logo);
+ homeButton = (ImageButton) 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);
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.DatePicker;
import android.widget.EditText;
+import android.widget.ImageButton;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
private GlobalConfigs globalConfigs;
- private Button homeButton;
+ private ImageButton homeButton;
private Button myAccountButton;
globalConfigs = GlobalConfigs.getGlobalConfigs(this);
- homeButton = (Button) findViewById(R.id.library_logo);
+ homeButton = (ImageButton) 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);
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
+import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
Runnable getHoldsRunnable= null;
- private Button homeButton;
+ private ImageButton homeButton;
private Button myAccountButton;
setContentView(R.layout.holds_list);
//header portion actions
- homeButton = (Button) findViewById(R.id.library_logo);
+ homeButton = (ImageButton) 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);
import org.evergreen.android.globals.NoNetworkAccessException;
import org.evergreen.android.globals.Utils;
import org.evergreen.android.searchCatalog.RecordInfo;
+import org.evergreen.android.searchCatalog.SearchCatalogListView;
+import org.evergreen.android.views.AccountScreenDashboard;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.app.ProgressDialog;
import android.content.Context;
+import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.text.format.DateFormat;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.DatePicker;
import android.widget.EditText;
+import android.widget.ImageButton;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
private int selectedOrgPos = 0;
+ private ImageButton homeButton;
+
+ private Button myAccountButton;
+
+ private TextView headerTitle;
+
private ProgressDialog progressDialog;
+
private Context context;
@Override
protected void onCreate(Bundle savedInstanceState) {
globalConfigs = GlobalConfigs.getGlobalConfigs(this);
RecordInfo record = (RecordInfo) getIntent().getSerializableExtra("recordInfo");
+ homeButton = (ImageButton) 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_place_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);
+ }
+ });
+
context = this;
accountAccess = AccountAccess.getAccountAccess();
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
+import android.widget.ImageButton;
import android.widget.TextView;
public class SampleUnderlinesNoFade extends BaseSampleActivity {
private Button myAccountButton;
- private Button homeButton;
+ private ImageButton homeButton;
private TextView headerTitle;
records = (List<RecordInfo>)getIntent().getSerializableExtra("recordList");
//header portion actions
- homeButton = (Button) findViewById(R.id.library_logo);
+ homeButton = (ImageButton) findViewById(R.id.library_logo);
myAccountButton = (Button) findViewById(R.id.my_acount_button);
headerTitle = (TextView) findViewById(R.id.header_title);
headerTitle.setText(R.string.search_details_title);
private Button preferenceButton = null;
- private Button homeButton = null;
+ private ImageButton homeButton = null;
private Button myAccountButton = null;
}
});
- homeButton = (Button) findViewById(R.id.library_logo);
+ homeButton = (ImageButton) findViewById(R.id.library_logo);
homeButton.setOnClickListener(new OnClickListener() {
@Override