Speech bubble layout for private conversations.

This commit is contained in:
akwizgran
2014-02-09 19:50:12 +00:00
parent 0960a345e0
commit 269eef57e9
15 changed files with 114 additions and 43 deletions

View File

@@ -0,0 +1,17 @@
package org.briarproject.android.util;
import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
public class FixedHorizontalSpace extends View {
public FixedHorizontalSpace(Context ctx) {
super(ctx);
}
public void setWidth(int width) {
setLayoutParams(new LayoutParams(width, WRAP_CONTENT));
}
}

View File

@@ -9,7 +9,9 @@ public class FixedVerticalSpace extends View {
public FixedVerticalSpace(Context ctx) {
super(ctx);
int pad = LayoutUtils.getPadding(ctx);
setLayoutParams(new LayoutParams(WRAP_CONTENT, pad));
}
public void setHeight(int height) {
setLayoutParams(new LayoutParams(WRAP_CONTENT, height));
}
}