Esempio n. 1
0
  @Override
  public void configurePinnedHeader(View header, int position, int alpha) {
    // 최상위 헤더 표시 스타일 설정
    // header.setBackgroundColor(alpha << 24 | (0xbbffbb));

    TextView title = (TextView) header.findViewById(R.id.headerText);
    title.setTypeface(SeoulFont.getInstance().getSeoulHangang());
    title.setText(getSections()[getSectionForPosition(position)]);
    title.setTextColor(alpha << 24 | (0x000000));
  }
Esempio n. 2
0
 @Override
 protected void bindSectionHeader(View view, int position, boolean displaySectionHeader) {
   if (displaySectionHeader) {
     view.findViewById(R.id.header).setVisibility(View.VISIBLE);
     TextView title = (TextView) view.findViewById(R.id.headerText);
     title.setTypeface(SeoulFont.getInstance().getSeoulHangang());
     title.setText(getSections()[getSectionForPosition(position)]);
   } else {
     view.findViewById(R.id.header).setVisibility(View.GONE);
   }
 }