|
|
@@ -6,6 +6,7 @@ package kr.co.zumo.app.lifeplus.view.custom.contents.series;
|
|
|
import android.content.Context;
|
|
|
import android.support.annotation.NonNull;
|
|
|
import android.support.annotation.Nullable;
|
|
|
+import android.support.constraint.ConstraintLayout;
|
|
|
import android.support.v7.widget.LinearLayoutManager;
|
|
|
import android.support.v7.widget.RecyclerView;
|
|
|
import android.util.AttributeSet;
|
|
|
@@ -20,6 +21,7 @@ import java.util.List;
|
|
|
|
|
|
import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.bean.api.SeriesItemBean;
|
|
|
+import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
import kr.co.zumo.app.lifeplus.view.screen.contents.series.ContentsSeriesAdapter;
|
|
|
|
|
|
@@ -36,6 +38,7 @@ import kr.co.zumo.app.lifeplus.view.screen.contents.series.ContentsSeriesAdapter
|
|
|
public class CustomContentsSeriesView extends FrameLayout {
|
|
|
|
|
|
private RecyclerView recyclerView;
|
|
|
+ private TextView textViewLogo;
|
|
|
private TextView textViewTitle;
|
|
|
private TextView textViewSubTitle;
|
|
|
private ContentsSeriesAdapter adapter;
|
|
|
@@ -61,6 +64,7 @@ public class CustomContentsSeriesView extends FrameLayout {
|
|
|
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
|
|
inflater.inflate(R.layout.custom_contents_series, this);
|
|
|
|
|
|
+ textViewLogo = findViewById(R.id.text_view_logo);
|
|
|
textViewSubTitle = findViewById(R.id.text_view_sub_title);
|
|
|
textViewTitle = findViewById(R.id.text_view_title);
|
|
|
imageBackground = findViewById(R.id.image_view_series);
|
|
|
@@ -81,6 +85,11 @@ public class CustomContentsSeriesView extends FrameLayout {
|
|
|
.asBitmap().load(url).into(imageBackground);
|
|
|
}
|
|
|
|
|
|
+ public void setSeriesTitleSpacingInFullScreen(){
|
|
|
+ ConstraintLayout.LayoutParams layoutParams = (ConstraintLayout.LayoutParams)textViewLogo.getLayoutParams();
|
|
|
+ layoutParams.setMargins(0, ResourceUtil.getStatusBarHeight(), 0,0);
|
|
|
+ }
|
|
|
+
|
|
|
public void draw(List<SeriesItemBean> list, IEventListener listener) {
|
|
|
LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
|
|
|