Skip to content

Removing Default title text#112

Open
renaro wants to merge 1 commit intopedant:masterfrom
renaro:patch-1
Open

Removing Default title text#112
renaro wants to merge 1 commit intopedant:masterfrom
renaro:patch-1

Conversation

@renaro
Copy link
Copy Markdown

@renaro renaro commented Nov 9, 2016

For some users who wants to create a dialog with no title it is super annoying to set an empty string. Also, for those who wants to set up a title they will have to call the method anyway. This is String is only creating extra work for users.

For some users who wants to create a dialog with no title it is super annoying to set an empty string. Also, for those who wants to set up a title they will have to call the method anyway. This is String is only creating extra work for users.
@alashow
Copy link
Copy Markdown

alashow commented Nov 20, 2016

You actually can set empty title easily.
Via string resources. It's easy to override string resources of libraries in Android.
Just add new string to resources (strings.xml or overrides.xml) with same name, in this case it's "dialog_default_title." You can make it empty.

Or just set empty string with setTitleText

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants