android:onClick="onButtonClick"
android:drawableLeft="@drawable/fines"/>
- <TextView
- android:layout_width="20px"
- android:layout_height="12dp"
- />
-
</LinearLayout>
\ No newline at end of file
xmlns:yourapp="http://schemas.android.com/apk/res-auto">
<item android:id="@+id/action_switch_account" android:title="@string/menu_switch_account"/>
<item android:id="@+id/action_add_account" android:title="@string/menu_add_account"/>
+ <item android:id="@+id/action_feedback" android:title="@string/menu_feedback"/>
<!--<item android:id="@+id/action_search"
android:icon="@drawable/abc_ic_search"
android:title="@string/title_search"
<string name="ou_activity_subtitle">%1$s - %2$s</string>
<!-- OPAC URL -->
<string name="ou_library_url">https://demo.evergreencatalog.com</string>
+ <!-- URL of feedback form -->
+ <string name="ou_feedback_url"></string>
</resources>
<string name="menu_barcode_scan">barcode scan</string>
<string name="menu_switch_account">Switch account</string>
<string name="menu_add_account">Add account</string>
+ <string name="menu_feedback">Send feedback</string>
<!-- Header portion -->
<string name="my_account_button_text">My Account</string>
package org.evergreen_ils.views;
import android.content.Intent;
+import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.util.Log;
});
Log.i(Const.AUTH_TAG, "after addAccount");
return true;
+ } else if (id == R.id.action_feedback) {
+ Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.ou_feedback_url)));
+ startActivity(i);
+ return true;
}
return super.onOptionsItemSelected(item);
}
<string name="ou_library_name">C/W MARS</string>
<string name="ou_activity_subtitle">%2$s</string>
<string name="ou_library_url">https://catalog.cwmars.org</string>
+ <string name="ou_feedback_url">https://docs.google.com/forms/d/1RbDW1IRD8-IV4U_HdWqGXCEQOJnl87Z7HH_uVGNWASY/viewform</string>
</resources>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.kenstir.apps.hemlock"
android:installLocation="auto"
- android:versionCode="11"
+ android:versionCode="12"
android:versionName="1.5">
<uses-sdk
<string name="ou_app_label">Hemlock</string>
<string name="ou_library_name"></string>
<string name="ou_library_url"></string>
+ <string name="ou_feedback_url">https://docs.google.com/forms/d/1RbDW1IRD8-IV4U_HdWqGXCEQOJnl87Z7HH_uVGNWASY/viewform</string>
</resources>