Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

xiaofeng nellochen

💭
I may be slow to respond.
View GitHub Profile
@nellochen
nellochen / setenv.sh
Created Dec 21, 2016 — forked from patmandenver/setenv.sh
Tomcat8 setenv.sh
View setenv.sh
#
# Cutom Environment Variables for Tomcat
#
############################################
export JAVA_HOME=/usr/lib/jvm/java-7-oracle/jre
export PATH=${JAVA_HOME}/bin:${PATH}
############################################
#
# JAVA_OPTS
View CustomTabListener.java
private abstract class CustomTabListener implements ActionBar.TabListener {
@Override
public void onTabUnselected(Tab tab) {
((TextView)tab.getCustomView()).setSelected(false);
}
@Override
public void onTabReselected(Tab tab) {
// Needed by the interface.