File tree Expand file tree Collapse file tree
selector/src/main/java/com/luck/picture/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ public class TitleBarStyle {
2020 */
2121 private int previewTitleLeftBackResource ;
2222
23+ /**
24+ * 标题栏是否始终显示默认文案
25+ */
26+ private Boolean titleDefaultTextAlways ;
27+
2328 /**
2429 * 标题栏默认文案
2530 */
@@ -143,6 +148,14 @@ public void setPreviewTitleLeftBackResource(int previewTitleLeftBackResource) {
143148 this .previewTitleLeftBackResource = previewTitleLeftBackResource ;
144149 }
145150
151+ public Boolean getTitleDefaultTextAlways () {
152+ return titleDefaultTextAlways ;
153+ }
154+
155+ public void setTitleDefaultTextAlways (Boolean titleDefaultTextAlways ) {
156+ this .titleDefaultTextAlways = titleDefaultTextAlways ;
157+ }
158+
146159 public String getTitleDefaultText () {
147160 return titleDefaultText ;
148161 }
Original file line number Diff line number Diff line change @@ -119,6 +119,10 @@ public View getTitleBarLine() {
119119 * @param title
120120 */
121121 public void setTitle (String title ) {
122+ if (config .selectorStyle .getTitleBarStyle ().getTitleDefaultTextAlways ()){
123+ return ;
124+ }
125+
122126 tvTitle .setText (title );
123127 }
124128
You can’t perform that action at this time.
0 commit comments