Fix cardview margins for 19-23 SDK
This commit is contained in:
parent
1d18847c3c
commit
d0041a87ba
@ -16,6 +16,7 @@ import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.ProgressBar;
|
||||
import android.widget.TextView;
|
||||
|
||||
@ -181,7 +182,7 @@ public class CurrencyCardview extends CardView implements CurrencyInfoUpdateNoti
|
||||
|
||||
private void setupCardView()
|
||||
{
|
||||
ViewGroup.MarginLayoutParams layoutParams = new ViewGroup.MarginLayoutParams(ViewGroup.MarginLayoutParams.MATCH_PARENT, ViewGroup.MarginLayoutParams.WRAP_CONTENT);
|
||||
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(LinearLayout.MarginLayoutParams.MATCH_PARENT, LinearLayout.MarginLayoutParams.WRAP_CONTENT);
|
||||
int margin = (int) MoodlBox.convertDpToPx(10, getResources());
|
||||
layoutParams.setMargins(margin, margin, margin, 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user