mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Padding now depends on screen size. Closes dev task #57.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package org.briarproject.android.util;
|
||||
|
||||
import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout.LayoutParams;
|
||||
|
||||
public class FixedVerticalSpace extends View {
|
||||
|
||||
public FixedVerticalSpace(Context ctx) {
|
||||
super(ctx);
|
||||
int pad = LayoutUtils.getPadding(ctx);
|
||||
setLayoutParams(new LayoutParams(WRAP_CONTENT, pad));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user