Skip to content

xml中无法修改收缩按钮的文本 #7

Description

@shirongmiao

看了下源码发现
mTvExpandCollapse.setText(mCollapsed ? getResources().getString(R.string.expand) : getResources().getString(R.string.collapse));
一直是取R.string里的值,改成
mTvExpandCollapse.setText(mCollapsed ? textExpand : textCollapse);
就好了

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions