Skip to content

Instantly share code, notes, and snippets.

This app does not store any data outside your phone.
<html>
<head>
<style>
a{display:block;}
</style>
</head>
<body>
<h4>Universal links</h4>
<a href="https://www.reclamefolder.nl/winkels-wonen.html">https://www.reclamefolder.nl/winkels-wonen.html</a>
<a href="https://www.reclamefolder.nl/aanbiedingen-action.html">https://www.reclamefolder.nl/aanbiedingen-action.html</a>
@berendn
berendn / CenterAtBottomImageView.java
Last active January 10, 2017 09:46
This ImageView centers the image horizontally. It behaves like gravity:top|center_horizontally if the bitmap is higher than the view, but if the view is higher than the bitmap it behaves like gravity:bottom|center_horizontally. Ideal for images that are positioned below a header text, but should'nt float above the footer.
public class CenterAtBottomImageView extends ImageView {
public CenterAtBottomImageView(Context context) {
super(context);
}
public CenterAtBottomImageView(Context context, AttributeSet attrs) {
super(context, attrs);
}