Skip to content
Snippets Groups Projects
Commit 482a7e00 authored by akwizgran's avatar akwizgran
Browse files

Use least specific LayoutParams classes for broadest usefulness.

parent a6151fae
No related branches found
No related tags found
No related merge requests found
......@@ -2,23 +2,24 @@ package org.briarproject.android.util;
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
public class CommonLayoutParams {
public static final LinearLayout.LayoutParams MATCH_MATCH =
new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT);
public static final ViewGroup.LayoutParams MATCH_MATCH =
new ViewGroup.LayoutParams(MATCH_PARENT, MATCH_PARENT);
public static final LinearLayout.LayoutParams MATCH_WRAP =
new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT);
public static final ViewGroup.LayoutParams MATCH_WRAP =
new ViewGroup.LayoutParams(MATCH_PARENT, WRAP_CONTENT);
public static final ViewGroup.LayoutParams WRAP_WRAP =
new ViewGroup.LayoutParams(WRAP_CONTENT, WRAP_CONTENT);
public static final LinearLayout.LayoutParams MATCH_WRAP_1 =
new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 1);
public static final LinearLayout.LayoutParams WRAP_WRAP =
new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT);
public static final LinearLayout.LayoutParams WRAP_WRAP_1 =
new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT, 1);
......
......@@ -3,7 +3,7 @@ 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;
import android.view.ViewGroup.LayoutParams;
public class FixedVerticalSpace extends View {
......
......@@ -6,7 +6,7 @@ import org.briarproject.R;
import android.content.Context;
import android.view.View;
import android.widget.LinearLayout.LayoutParams;
import android.view.ViewGroup.LayoutParams;
public class HorizontalBorder extends View {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment