Пример #1
0
  @Override
  public View getChildView(
      int groupPosition,
      int childPosition,
      boolean isLastChild,
      View convertView,
      ViewGroup parent) {
    if (convertView == null) {
      convertView = View.inflate(mContext, R.layout.ad_dialog_home, null);
    }

    TextView tv = ViewFindUtils.find(convertView, R.id.tv_bubble);
    View v_line = ViewFindUtils.find(convertView, R.id.v_line);

    v_line.setVisibility(View.INVISIBLE);
    tv.setTextColor(Color.parseColor("#383838"));
    tv.setText(DialogHomeActivity.mChilds[groupPosition][childPosition]);

    return convertView;
  }
Пример #2
0
  @Override
  public View getGroupView(
      int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {
    if (convertView == null) {
      convertView = View.inflate(mContext, R.layout.ad_dialog_home, null);
    }

    TextView tv = ViewFindUtils.find(convertView, R.id.tv_bubble);
    tv.setText(DialogHomeActivity.mGroups[groupPosition]);
    return convertView;
  }