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