Why does a Snackbar text disapear if the text is too long?











up vote
1
down vote

favorite












I have a requirement to add some user feedback using standard Snackbar in Android.



I have noticed that if my text is too long then the whole text string disappears. Rather than have an ellipses...



More specifically; on a Pixel 2 emulator the following string disappears:



"You're offline. Check your connection and try again." - This is gone



but if I remove the last character then it shows:



"You're offline. Check your connection and try again" - This shows



Even worse is that on a device with a smaller screen the length of the text that will show is reduced meaning on a Nexus 5 emulator for example:



"You're offline. Check your connection and try again" - This now doesn't show



but if I shorten it further:



"You're offline. Check your connection" - This shows



This feels like a bug to me.



I understand that Snackbar should be for very short text but none the less it shouldn't remove the text arbitrarily. It should at least show some text or an ellipses or go multi-line.



Has anyone else noticed this or can suggest if it's a bug or am I missing something?



Code example:



Snackbar.make(findViewById(R.id.placeSnackBar),
"You're offline. Check your connection and try again.",
Snackbar.LENGTH_INDEFINITE)
.setAction("X", View.OnClickListener { }).show()


I also tried:



val sb = Snackbar.make(this, message, Snackbar.LENGTH_INDEFINITE)
.setActionTextColor(Color.parseColor("#666666"))
.setAction("X", View.OnClickListener { })

sb.view.setBackgroundColor(Color.WHITE)
sb.view.findViewById<TextView>(android.support.design.R.id.snackbar_text)
//.setTextColor(Color.parseColor("#F44336"))
.setTextColor(Color.parseColor("#000000"))
sb.view.findViewById<TextView>(android.support.design.R.id.snackbar_text)
.singleLine = false
sb.view.findViewById<TextView>(android.support.design.R.id.snackbar_text)
.maxLines = 2
sb.show()


XML for Coordinator layout which shows snackbar above floating footer layout:



<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<android.support.design.widget.CoordinatorLayout
android:id="@+id/message_bar_container"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_above="@+id/llFooter" />

<LinearLayout
android:id="@+id/llFooter"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_alignParentBottom="true"
android:background="@drawable/footer_background"
android:orientation="horizontal"
android:paddingStart="20dp"
android:paddingEnd="20dp">

<TextView
android:id="@+id/login_forgot_password"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
...
/>

<Button
android:id="@+id/btn_login"
android:layout_width="0dp"
android:layout_height="wrap_content"
...
/>

</LinearLayout>

</RelativeLayout>


How it looks with full string:



enter image description here



and if I shorten the string by 1 character:



enter image description here










share|improve this question




















  • 1




    you should post your xml here. Maybe it's because of your xml view placeSnackBar.
    – Kingfisher Phuoc
    Nov 12 at 17:14










  • As it works with 52 characters but not 51 on a pixel 2 emulator and even less on a smaller screen I don't think it is related but I can post it. Thanks
    – Paul
    Nov 12 at 23:11










  • @KingfisherPhuoc I shall eat my words you are on the money. It was the coordinator layout after all! Because I have a fixed height message bar container the bottom of the snack bar was being pushed down out of the visible area of the layout. I wish I could do an embarrassed emoji here :-) ... If you want me to mark your suggestion as correct answer then you can post it as an answer. Thanks for your suggestion.
    – Paul
    Nov 13 at 9:04










  • Cheers!! nvm, the cool thing is your issue was solved!
    – Kingfisher Phuoc
    Nov 13 at 9:37















up vote
1
down vote

favorite












I have a requirement to add some user feedback using standard Snackbar in Android.



I have noticed that if my text is too long then the whole text string disappears. Rather than have an ellipses...



More specifically; on a Pixel 2 emulator the following string disappears:



"You're offline. Check your connection and try again." - This is gone



but if I remove the last character then it shows:



"You're offline. Check your connection and try again" - This shows



Even worse is that on a device with a smaller screen the length of the text that will show is reduced meaning on a Nexus 5 emulator for example:



"You're offline. Check your connection and try again" - This now doesn't show



but if I shorten it further:



"You're offline. Check your connection" - This shows



This feels like a bug to me.



I understand that Snackbar should be for very short text but none the less it shouldn't remove the text arbitrarily. It should at least show some text or an ellipses or go multi-line.



Has anyone else noticed this or can suggest if it's a bug or am I missing something?



Code example:



Snackbar.make(findViewById(R.id.placeSnackBar),
"You're offline. Check your connection and try again.",
Snackbar.LENGTH_INDEFINITE)
.setAction("X", View.OnClickListener { }).show()


I also tried:



val sb = Snackbar.make(this, message, Snackbar.LENGTH_INDEFINITE)
.setActionTextColor(Color.parseColor("#666666"))
.setAction("X", View.OnClickListener { })

sb.view.setBackgroundColor(Color.WHITE)
sb.view.findViewById<TextView>(android.support.design.R.id.snackbar_text)
//.setTextColor(Color.parseColor("#F44336"))
.setTextColor(Color.parseColor("#000000"))
sb.view.findViewById<TextView>(android.support.design.R.id.snackbar_text)
.singleLine = false
sb.view.findViewById<TextView>(android.support.design.R.id.snackbar_text)
.maxLines = 2
sb.show()


XML for Coordinator layout which shows snackbar above floating footer layout:



<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<android.support.design.widget.CoordinatorLayout
android:id="@+id/message_bar_container"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_above="@+id/llFooter" />

<LinearLayout
android:id="@+id/llFooter"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_alignParentBottom="true"
android:background="@drawable/footer_background"
android:orientation="horizontal"
android:paddingStart="20dp"
android:paddingEnd="20dp">

<TextView
android:id="@+id/login_forgot_password"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
...
/>

<Button
android:id="@+id/btn_login"
android:layout_width="0dp"
android:layout_height="wrap_content"
...
/>

</LinearLayout>

</RelativeLayout>


How it looks with full string:



enter image description here



and if I shorten the string by 1 character:



enter image description here










share|improve this question




















  • 1




    you should post your xml here. Maybe it's because of your xml view placeSnackBar.
    – Kingfisher Phuoc
    Nov 12 at 17:14










  • As it works with 52 characters but not 51 on a pixel 2 emulator and even less on a smaller screen I don't think it is related but I can post it. Thanks
    – Paul
    Nov 12 at 23:11










  • @KingfisherPhuoc I shall eat my words you are on the money. It was the coordinator layout after all! Because I have a fixed height message bar container the bottom of the snack bar was being pushed down out of the visible area of the layout. I wish I could do an embarrassed emoji here :-) ... If you want me to mark your suggestion as correct answer then you can post it as an answer. Thanks for your suggestion.
    – Paul
    Nov 13 at 9:04










  • Cheers!! nvm, the cool thing is your issue was solved!
    – Kingfisher Phuoc
    Nov 13 at 9:37













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a requirement to add some user feedback using standard Snackbar in Android.



I have noticed that if my text is too long then the whole text string disappears. Rather than have an ellipses...



More specifically; on a Pixel 2 emulator the following string disappears:



"You're offline. Check your connection and try again." - This is gone



but if I remove the last character then it shows:



"You're offline. Check your connection and try again" - This shows



Even worse is that on a device with a smaller screen the length of the text that will show is reduced meaning on a Nexus 5 emulator for example:



"You're offline. Check your connection and try again" - This now doesn't show



but if I shorten it further:



"You're offline. Check your connection" - This shows



This feels like a bug to me.



I understand that Snackbar should be for very short text but none the less it shouldn't remove the text arbitrarily. It should at least show some text or an ellipses or go multi-line.



Has anyone else noticed this or can suggest if it's a bug or am I missing something?



Code example:



Snackbar.make(findViewById(R.id.placeSnackBar),
"You're offline. Check your connection and try again.",
Snackbar.LENGTH_INDEFINITE)
.setAction("X", View.OnClickListener { }).show()


I also tried:



val sb = Snackbar.make(this, message, Snackbar.LENGTH_INDEFINITE)
.setActionTextColor(Color.parseColor("#666666"))
.setAction("X", View.OnClickListener { })

sb.view.setBackgroundColor(Color.WHITE)
sb.view.findViewById<TextView>(android.support.design.R.id.snackbar_text)
//.setTextColor(Color.parseColor("#F44336"))
.setTextColor(Color.parseColor("#000000"))
sb.view.findViewById<TextView>(android.support.design.R.id.snackbar_text)
.singleLine = false
sb.view.findViewById<TextView>(android.support.design.R.id.snackbar_text)
.maxLines = 2
sb.show()


XML for Coordinator layout which shows snackbar above floating footer layout:



<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<android.support.design.widget.CoordinatorLayout
android:id="@+id/message_bar_container"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_above="@+id/llFooter" />

<LinearLayout
android:id="@+id/llFooter"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_alignParentBottom="true"
android:background="@drawable/footer_background"
android:orientation="horizontal"
android:paddingStart="20dp"
android:paddingEnd="20dp">

<TextView
android:id="@+id/login_forgot_password"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
...
/>

<Button
android:id="@+id/btn_login"
android:layout_width="0dp"
android:layout_height="wrap_content"
...
/>

</LinearLayout>

</RelativeLayout>


How it looks with full string:



enter image description here



and if I shorten the string by 1 character:



enter image description here










share|improve this question















I have a requirement to add some user feedback using standard Snackbar in Android.



I have noticed that if my text is too long then the whole text string disappears. Rather than have an ellipses...



More specifically; on a Pixel 2 emulator the following string disappears:



"You're offline. Check your connection and try again." - This is gone



but if I remove the last character then it shows:



"You're offline. Check your connection and try again" - This shows



Even worse is that on a device with a smaller screen the length of the text that will show is reduced meaning on a Nexus 5 emulator for example:



"You're offline. Check your connection and try again" - This now doesn't show



but if I shorten it further:



"You're offline. Check your connection" - This shows



This feels like a bug to me.



I understand that Snackbar should be for very short text but none the less it shouldn't remove the text arbitrarily. It should at least show some text or an ellipses or go multi-line.



Has anyone else noticed this or can suggest if it's a bug or am I missing something?



Code example:



Snackbar.make(findViewById(R.id.placeSnackBar),
"You're offline. Check your connection and try again.",
Snackbar.LENGTH_INDEFINITE)
.setAction("X", View.OnClickListener { }).show()


I also tried:



val sb = Snackbar.make(this, message, Snackbar.LENGTH_INDEFINITE)
.setActionTextColor(Color.parseColor("#666666"))
.setAction("X", View.OnClickListener { })

sb.view.setBackgroundColor(Color.WHITE)
sb.view.findViewById<TextView>(android.support.design.R.id.snackbar_text)
//.setTextColor(Color.parseColor("#F44336"))
.setTextColor(Color.parseColor("#000000"))
sb.view.findViewById<TextView>(android.support.design.R.id.snackbar_text)
.singleLine = false
sb.view.findViewById<TextView>(android.support.design.R.id.snackbar_text)
.maxLines = 2
sb.show()


XML for Coordinator layout which shows snackbar above floating footer layout:



<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<android.support.design.widget.CoordinatorLayout
android:id="@+id/message_bar_container"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_above="@+id/llFooter" />

<LinearLayout
android:id="@+id/llFooter"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_alignParentBottom="true"
android:background="@drawable/footer_background"
android:orientation="horizontal"
android:paddingStart="20dp"
android:paddingEnd="20dp">

<TextView
android:id="@+id/login_forgot_password"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
...
/>

<Button
android:id="@+id/btn_login"
android:layout_width="0dp"
android:layout_height="wrap_content"
...
/>

</LinearLayout>

</RelativeLayout>


How it looks with full string:



enter image description here



and if I shorten the string by 1 character:



enter image description here







android material-design material-ui snackbar






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 at 23:17

























asked Nov 9 at 18:44









Paul

767




767








  • 1




    you should post your xml here. Maybe it's because of your xml view placeSnackBar.
    – Kingfisher Phuoc
    Nov 12 at 17:14










  • As it works with 52 characters but not 51 on a pixel 2 emulator and even less on a smaller screen I don't think it is related but I can post it. Thanks
    – Paul
    Nov 12 at 23:11










  • @KingfisherPhuoc I shall eat my words you are on the money. It was the coordinator layout after all! Because I have a fixed height message bar container the bottom of the snack bar was being pushed down out of the visible area of the layout. I wish I could do an embarrassed emoji here :-) ... If you want me to mark your suggestion as correct answer then you can post it as an answer. Thanks for your suggestion.
    – Paul
    Nov 13 at 9:04










  • Cheers!! nvm, the cool thing is your issue was solved!
    – Kingfisher Phuoc
    Nov 13 at 9:37














  • 1




    you should post your xml here. Maybe it's because of your xml view placeSnackBar.
    – Kingfisher Phuoc
    Nov 12 at 17:14










  • As it works with 52 characters but not 51 on a pixel 2 emulator and even less on a smaller screen I don't think it is related but I can post it. Thanks
    – Paul
    Nov 12 at 23:11










  • @KingfisherPhuoc I shall eat my words you are on the money. It was the coordinator layout after all! Because I have a fixed height message bar container the bottom of the snack bar was being pushed down out of the visible area of the layout. I wish I could do an embarrassed emoji here :-) ... If you want me to mark your suggestion as correct answer then you can post it as an answer. Thanks for your suggestion.
    – Paul
    Nov 13 at 9:04










  • Cheers!! nvm, the cool thing is your issue was solved!
    – Kingfisher Phuoc
    Nov 13 at 9:37








1




1




you should post your xml here. Maybe it's because of your xml view placeSnackBar.
– Kingfisher Phuoc
Nov 12 at 17:14




you should post your xml here. Maybe it's because of your xml view placeSnackBar.
– Kingfisher Phuoc
Nov 12 at 17:14












As it works with 52 characters but not 51 on a pixel 2 emulator and even less on a smaller screen I don't think it is related but I can post it. Thanks
– Paul
Nov 12 at 23:11




As it works with 52 characters but not 51 on a pixel 2 emulator and even less on a smaller screen I don't think it is related but I can post it. Thanks
– Paul
Nov 12 at 23:11












@KingfisherPhuoc I shall eat my words you are on the money. It was the coordinator layout after all! Because I have a fixed height message bar container the bottom of the snack bar was being pushed down out of the visible area of the layout. I wish I could do an embarrassed emoji here :-) ... If you want me to mark your suggestion as correct answer then you can post it as an answer. Thanks for your suggestion.
– Paul
Nov 13 at 9:04




@KingfisherPhuoc I shall eat my words you are on the money. It was the coordinator layout after all! Because I have a fixed height message bar container the bottom of the snack bar was being pushed down out of the visible area of the layout. I wish I could do an embarrassed emoji here :-) ... If you want me to mark your suggestion as correct answer then you can post it as an answer. Thanks for your suggestion.
– Paul
Nov 13 at 9:04












Cheers!! nvm, the cool thing is your issue was solved!
– Kingfisher Phuoc
Nov 13 at 9:37




Cheers!! nvm, the cool thing is your issue was solved!
– Kingfisher Phuoc
Nov 13 at 9:37












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Set your snackbar lines to 2 by accessing its TextView:



val message = "You're offline. Check your connection and try again.";
val sb = Snackbar.make(
findViewById(R.id.newLinearLayout),
"You're offline. Check your connection and try again.",
Snackbar.LENGTH_INDEFINITE)
.setAction("X") {}
val view = sb.view
val textView = view.findViewById<View>(android.support.design.R.id.snackbar_text) as TextView
textView.maxLines = 2
sb.show()





share|improve this answer























  • I tried this and also singleLine = false and no joy :-(
    – Paul
    Nov 12 at 16:58










  • @Paul you must be doing something wrong because it works as expected. But check this: even if you see no text does it look to you that its height is long enough to hold 2 lines?
    – forpas
    Nov 12 at 17:07










  • @Paul I updated with the Kotlin code
    – forpas
    Nov 12 at 18:35










  • I have tried that exact code and same issue. I even pasted your code directly just in case and still get the exact same result. Thanks, Paul.
    – Paul
    Nov 12 at 23:08










  • thanks for your suggestions I found the issue you it was related to my coordinator layout see answer in question comments above with KingfisherPhuoc. Paul.
    – Paul
    Nov 13 at 9:06











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53231647%2fwhy-does-a-snackbar-text-disapear-if-the-text-is-too-long%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Set your snackbar lines to 2 by accessing its TextView:



val message = "You're offline. Check your connection and try again.";
val sb = Snackbar.make(
findViewById(R.id.newLinearLayout),
"You're offline. Check your connection and try again.",
Snackbar.LENGTH_INDEFINITE)
.setAction("X") {}
val view = sb.view
val textView = view.findViewById<View>(android.support.design.R.id.snackbar_text) as TextView
textView.maxLines = 2
sb.show()





share|improve this answer























  • I tried this and also singleLine = false and no joy :-(
    – Paul
    Nov 12 at 16:58










  • @Paul you must be doing something wrong because it works as expected. But check this: even if you see no text does it look to you that its height is long enough to hold 2 lines?
    – forpas
    Nov 12 at 17:07










  • @Paul I updated with the Kotlin code
    – forpas
    Nov 12 at 18:35










  • I have tried that exact code and same issue. I even pasted your code directly just in case and still get the exact same result. Thanks, Paul.
    – Paul
    Nov 12 at 23:08










  • thanks for your suggestions I found the issue you it was related to my coordinator layout see answer in question comments above with KingfisherPhuoc. Paul.
    – Paul
    Nov 13 at 9:06















up vote
0
down vote













Set your snackbar lines to 2 by accessing its TextView:



val message = "You're offline. Check your connection and try again.";
val sb = Snackbar.make(
findViewById(R.id.newLinearLayout),
"You're offline. Check your connection and try again.",
Snackbar.LENGTH_INDEFINITE)
.setAction("X") {}
val view = sb.view
val textView = view.findViewById<View>(android.support.design.R.id.snackbar_text) as TextView
textView.maxLines = 2
sb.show()





share|improve this answer























  • I tried this and also singleLine = false and no joy :-(
    – Paul
    Nov 12 at 16:58










  • @Paul you must be doing something wrong because it works as expected. But check this: even if you see no text does it look to you that its height is long enough to hold 2 lines?
    – forpas
    Nov 12 at 17:07










  • @Paul I updated with the Kotlin code
    – forpas
    Nov 12 at 18:35










  • I have tried that exact code and same issue. I even pasted your code directly just in case and still get the exact same result. Thanks, Paul.
    – Paul
    Nov 12 at 23:08










  • thanks for your suggestions I found the issue you it was related to my coordinator layout see answer in question comments above with KingfisherPhuoc. Paul.
    – Paul
    Nov 13 at 9:06













up vote
0
down vote










up vote
0
down vote









Set your snackbar lines to 2 by accessing its TextView:



val message = "You're offline. Check your connection and try again.";
val sb = Snackbar.make(
findViewById(R.id.newLinearLayout),
"You're offline. Check your connection and try again.",
Snackbar.LENGTH_INDEFINITE)
.setAction("X") {}
val view = sb.view
val textView = view.findViewById<View>(android.support.design.R.id.snackbar_text) as TextView
textView.maxLines = 2
sb.show()





share|improve this answer














Set your snackbar lines to 2 by accessing its TextView:



val message = "You're offline. Check your connection and try again.";
val sb = Snackbar.make(
findViewById(R.id.newLinearLayout),
"You're offline. Check your connection and try again.",
Snackbar.LENGTH_INDEFINITE)
.setAction("X") {}
val view = sb.view
val textView = view.findViewById<View>(android.support.design.R.id.snackbar_text) as TextView
textView.maxLines = 2
sb.show()






share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 12 at 18:34

























answered Nov 9 at 18:53









forpas

4,3571216




4,3571216












  • I tried this and also singleLine = false and no joy :-(
    – Paul
    Nov 12 at 16:58










  • @Paul you must be doing something wrong because it works as expected. But check this: even if you see no text does it look to you that its height is long enough to hold 2 lines?
    – forpas
    Nov 12 at 17:07










  • @Paul I updated with the Kotlin code
    – forpas
    Nov 12 at 18:35










  • I have tried that exact code and same issue. I even pasted your code directly just in case and still get the exact same result. Thanks, Paul.
    – Paul
    Nov 12 at 23:08










  • thanks for your suggestions I found the issue you it was related to my coordinator layout see answer in question comments above with KingfisherPhuoc. Paul.
    – Paul
    Nov 13 at 9:06


















  • I tried this and also singleLine = false and no joy :-(
    – Paul
    Nov 12 at 16:58










  • @Paul you must be doing something wrong because it works as expected. But check this: even if you see no text does it look to you that its height is long enough to hold 2 lines?
    – forpas
    Nov 12 at 17:07










  • @Paul I updated with the Kotlin code
    – forpas
    Nov 12 at 18:35










  • I have tried that exact code and same issue. I even pasted your code directly just in case and still get the exact same result. Thanks, Paul.
    – Paul
    Nov 12 at 23:08










  • thanks for your suggestions I found the issue you it was related to my coordinator layout see answer in question comments above with KingfisherPhuoc. Paul.
    – Paul
    Nov 13 at 9:06
















I tried this and also singleLine = false and no joy :-(
– Paul
Nov 12 at 16:58




I tried this and also singleLine = false and no joy :-(
– Paul
Nov 12 at 16:58












@Paul you must be doing something wrong because it works as expected. But check this: even if you see no text does it look to you that its height is long enough to hold 2 lines?
– forpas
Nov 12 at 17:07




@Paul you must be doing something wrong because it works as expected. But check this: even if you see no text does it look to you that its height is long enough to hold 2 lines?
– forpas
Nov 12 at 17:07












@Paul I updated with the Kotlin code
– forpas
Nov 12 at 18:35




@Paul I updated with the Kotlin code
– forpas
Nov 12 at 18:35












I have tried that exact code and same issue. I even pasted your code directly just in case and still get the exact same result. Thanks, Paul.
– Paul
Nov 12 at 23:08




I have tried that exact code and same issue. I even pasted your code directly just in case and still get the exact same result. Thanks, Paul.
– Paul
Nov 12 at 23:08












thanks for your suggestions I found the issue you it was related to my coordinator layout see answer in question comments above with KingfisherPhuoc. Paul.
– Paul
Nov 13 at 9:06




thanks for your suggestions I found the issue you it was related to my coordinator layout see answer in question comments above with KingfisherPhuoc. Paul.
– Paul
Nov 13 at 9:06


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53231647%2fwhy-does-a-snackbar-text-disapear-if-the-text-is-too-long%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

鏡平學校

ꓛꓣだゔៀៅຸ໢ທຮ໕໒ ,ໂ'໥໓າ໼ឨឲ៵៭ៈゎゔit''䖳𥁄卿' ☨₤₨こゎもょの;ꜹꟚꞖꞵꟅꞛေၦေɯ,ɨɡ𛃵𛁹ޝ޳ޠ޾,ޤޒޯ޾𫝒𫠁သ𛅤チョ'サノބޘދ𛁐ᶿᶇᶀᶋᶠ㨑㽹⻮ꧬ꧹؍۩وَؠ㇕㇃㇪ ㇦㇋㇋ṜẰᵡᴠ 軌ᵕ搜۳ٰޗޮ޷ސޯ𫖾𫅀ल, ꙭ꙰ꚅꙁꚊꞻꝔ꟠Ꝭㄤﺟޱސꧨꧼ꧴ꧯꧽ꧲ꧯ'⽹⽭⾁⿞⼳⽋២៩ញណើꩯꩤ꩸ꩮᶻᶺᶧᶂ𫳲𫪭𬸄𫵰𬖩𬫣𬊉ၲ𛅬㕦䬺𫝌𫝼,,𫟖𫞽ហៅ஫㆔ాఆఅꙒꚞꙍ,Ꙟ꙱エ ,ポテ,フࢰࢯ𫟠𫞶 𫝤𫟠ﺕﹱﻜﻣ𪵕𪭸𪻆𪾩𫔷ġ,ŧآꞪ꟥,ꞔꝻ♚☹⛵𛀌ꬷꭞȄƁƪƬșƦǙǗdžƝǯǧⱦⱰꓕꓢႋ神 ဴ၀க௭எ௫ឫោ ' េㇷㇴㇼ神ㇸㇲㇽㇴㇼㇻㇸ'ㇸㇿㇸㇹㇰㆣꓚꓤ₡₧ ㄨㄟ㄂ㄖㄎ໗ツڒذ₶।ऩछएोञयूटक़कयँृी,冬'𛅢𛅥ㇱㇵㇶ𥄥𦒽𠣧𠊓𧢖𥞘𩔋цѰㄠſtʯʭɿʆʗʍʩɷɛ,əʏダヵㄐㄘR{gỚṖḺờṠṫảḙḭᴮᵏᴘᵀᵷᵕᴜᴏᵾq﮲ﲿﴽﭙ軌ﰬﶚﶧ﫲Ҝжюїкӈㇴffצּ﬘﭅﬈軌'ffistfflſtffतभफɳɰʊɲʎ𛁱𛁖𛁮𛀉 𛂯𛀞నఋŀŲ 𫟲𫠖𫞺ຆຆ ໹້໕໗ๆทԊꧢꧠ꧰ꓱ⿝⼑ŎḬẃẖỐẅ ,ờỰỈỗﮊDžȩꭏꭎꬻ꭮ꬿꭖꭥꭅ㇭神 ⾈ꓵꓑ⺄㄄ㄪㄙㄅㄇstA۵䞽ॶ𫞑𫝄㇉㇇゜軌𩜛𩳠Jﻺ‚Üမ႕ႌႊၐၸဓၞၞၡ៸wyvtᶎᶪᶹစဎ꣡꣰꣢꣤ٗ؋لㇳㇾㇻㇱ㆐㆔,,㆟Ⱶヤマފ޼ޝަݿݞݠݷݐ',ݘ,ݪݙݵ𬝉𬜁𫝨𫞘くせぉて¼óû×ó£…𛅑הㄙくԗԀ5606神45,神796'𪤻𫞧ꓐ㄁ㄘɥɺꓵꓲ3''7034׉ⱦⱠˆ“𫝋ȍ,ꩲ軌꩷ꩶꩧꩫఞ۔فڱێظペサ神ナᴦᵑ47 9238їﻂ䐊䔉㠸﬎ffiﬣ,לּᴷᴦᵛᵽ,ᴨᵤ ᵸᵥᴗᵈꚏꚉꚟ⻆rtǟƴ𬎎

Why https connections are so slow when debugging (stepping over) in Java?