mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
Speech bubble layout for private conversations.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user