Prechádzať zdrojové kódy

[콘텐츠상세][Common] 페이징 텍스트 볼드 처리

Hasemi 7 rokov pred
rodič
commit
bb64487d29

+ 3 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/contents/CustomListicleImageView.java

@@ -1,6 +1,7 @@
 package kr.co.zumo.app.lifeplus.view.custom.contents;
 
 import android.content.Context;
+import android.graphics.Typeface;
 import android.support.constraint.ConstraintLayout;
 import android.support.v7.widget.LinearLayoutManager;
 import android.support.v7.widget.LinearSmoothScroller;
@@ -185,6 +186,7 @@ public class CustomListicleImageView extends ConstraintLayout {
       index = ((LinearLayoutManager) recyclerView.getLayoutManager()).findFirstVisibleItemPosition();
       currentIndex = index % contentsLength;
       textViewCurrentPage.setText(String.valueOf(currentIndex + 1));
+      textViewCurrentPage.setTypeface(null, Typeface.BOLD);
     }
   };
 
@@ -199,6 +201,7 @@ public class CustomListicleImageView extends ConstraintLayout {
     if (contentsLength > 1) {
       layoutPager.setVisibility(View.VISIBLE);
       textViewCurrentPage.setText("1");
+      textViewCurrentPage.setTypeface(null, Typeface.BOLD);
       textViewTotalPage.setText(String.valueOf(contentsLength));
       ;
     }

+ 2 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/contents/ContentsCardHolder.java

@@ -1,5 +1,6 @@
 package kr.co.zumo.app.lifeplus.view.screen.contents;
 
+import android.graphics.Typeface;
 import android.support.annotation.CallSuper;
 import android.support.constraint.ConstraintLayout;
 import android.util.Log;
@@ -93,7 +94,7 @@ public class ContentsCardHolder extends ContentsHolder<ContentsDetailBean> {
 
 
     textViewPageNumber.setText(String.valueOf(getAdapterPosition()) + " / " + (itemCount - 1));
-
+    textViewPageNumber.setTypeface(null, Typeface.BOLD);
     layoutMoreInfo.setVisibility(View.GONE);
   }