This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface TextExpansionListener { | |
void expandText( String fullText, int start, int end ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Context context; | |
private TextExpansionListener listener; | |
public ExpandHandler(Context context, TextExpansionListener listener){ | |
this.context = context; | |
this.listener = listener; | |
} | |
public void handleTagNode(TagNode node, final SpannableStringBuilder builder, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyExpansionListener implements ExpansionListener { | |
private TextView textView; | |
public MyExpansionListener( TextView textView ) { | |
this.textView = textView; | |
} | |
public void expandText( String fullText, int start, int end ) { | |
String before = textView.getText().substring(0, start); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CSSLinkHandler extends TagNodeHandler { | |
private static final Logger LOG = LoggerFactory.getLogger("CSSLinkHandler"); | |
public void handleTagNode(TagNode node, SpannableStringBuilder builder, int start, int end, SpanStack spanStack) { | |
String type = node.getAttributeByName("type"); | |
String href = node.getAttributeByName("href"); | |
LOG.debug("Found link tag: type=" + type + " and href=" + href ); | |
if ( type == null || ! type.equals("text/css") ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:8 | |
MAINTAINER Alex Kuiper <alex@nightwhistler.net> | |
RUN echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community:/8.0/Debian_8.0/ /' > /etc/apt/sources.list.d/isv:ownCloud:community:8.0.list | |
RUN apt-get update | |
RUN apt-get install -y apt-utils | |
## Install base packages | |
RUN apt-get -yq install \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source /etc/apache2/envvars | |
exec apache2 -D FOREGROUND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
Alias /owncloud "/var/www/owncloud/" | |
<Directory /var/www/owncloud/> | |
Options +FollowSymlinks | |
AllowOverride All | |
<IfModule mod_dav.c> | |
Dav off | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:8 | |
MAINTAINER Alex Kuiper <alex@nightwhistler.net> | |
RUN apt-get update | |
RUN apt-get install -y apt-utils apt-transport-https | |
RUN echo 'deb http://download.owncloud.org/download/repositories/8.2/Debian_8.0/ /' > /etc/apt/sources.list.d/owncloud.list | |
RUN apt-get update | |
## Install base packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
RUN echo 'deb http://download.owncloud.org/download/repositories/9.0/Debian_8.0/ /' > /etc/apt/sources.list.d/owncloud.list | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
RUN echo 'deb http://download.owncloud.org/download/repositories/9.1/Debian_8.0/ /' > /etc/apt/sources.list.d/owncloud.list | |
... |