Questions tagged [crouton]

Crouton is an Android library for context-sensitive notifications

Crouton is a class that can be used by Android developers that feel the need for an alternative to the Context insensitive Toast.

A Crouton will be displayed at the position the developer decides. Standard will be at the top of the application window. You can line up multiple Croutons for display, that will be shown one after another.

59 questions
2
votes
0 answers

The width of a custom view used in a Crouton is being incorrectly calculated

I've created a custom view to display using the Crouton library. This view has some margin, a background and a TextView with MATCH_PARENT width. This TextView is multiline and has a left drawable. The problem I'm facing is that when I show it with…
Fernando Camargo
  • 3,085
  • 4
  • 30
  • 49
2
votes
1 answer

Crouton not showing outAnimation

I show a Crouton like this: Builder b = new Builder(); b.setBackgroundColor(R.color.mygreen); b.setTextAppearance(R.style.LargeTextWhite); Configuration.Builder configBuilder = new Configuration.Builder(); …
fweigl
  • 21,278
  • 20
  • 114
  • 205
2
votes
1 answer

Set margin top to a Crouton object Android

Is there a way to set a margin top to a crouton ? (https://github.com/keyboardsurfer/Crouton)
wawanopoulos
  • 9,614
  • 31
  • 111
  • 166
2
votes
1 answer

Crouton playing Animation when Crouton.cancelAllCroutons(); is called

is there a way that the Crouton dislays the out Animation when i cancel all croutons ? Im using an custom layout to intercept touch events when user interacts again with the touch screen: @Override public boolean onInterceptTouchEvent(final…
Kitesurfer
  • 3,438
  • 2
  • 29
  • 47
2
votes
1 answer

Crouton centering custom view and issues with disappearing

Today I changed my Toast to Crouton. But I had these problems : 1)Showing Crouton in center 2)Whenever I want to display new Crouton it is displaying previous Crouton again, though previous one hided long ago I want to know if there is better way…
Fariz Aghayev
  • 649
  • 5
  • 17
2
votes
0 answers

Cant access Android Crouton Library when using Gradle?

I am currently starting to develop a new Android application and I am having a strange problem when trying to import a Library using the new Gradle build system. I have added everything I need to the build.gradle file (as shown below) but when i try…
user723858
  • 1,017
  • 3
  • 23
  • 45
2
votes
1 answer

Remove Crouton's messages transparency

I have problem with crouton transparency in my program. At this moment when crouton is displayed in layout with for example button the button is visible on croutons message. I would like crouton message to be fully opaque.…
keysersoze
  • 2,562
  • 4
  • 21
  • 22
2
votes
2 answers

Change value of an already displayed Crouton

I was wondering if it is possible to change the text and the image of a crouton when it is already displayed. And how?
baonounet
  • 43
  • 3
2
votes
2 answers

How can i call crouton.makeText in my app fragment app?

I would like to use Crouton Library to print the number of article receive after asyntask. My app use navigationDrawer and different fragment. I never use this library and i would like to know where i must perform the call to Crouton.makeText to…
wawanopoulos
  • 9,614
  • 31
  • 111
  • 166
2
votes
1 answer

Scrolling text in Crouton Library

The crouton library can be found on Github And my question is if it's possible how to make the text displayed in the Crouton scrolling horizontally. In a TextView it can be done like this: android:singleLine="true"…
ChrisMCMine
  • 227
  • 2
  • 11
2
votes
3 answers

AppMsg - Crouton library - Support for Fragments?

I have been using AppMsg, which is a third party library for displaying alerts in a non intrusive way (originally conceived by Cyril Motier). The library is working out fine for regular activities, but does anyone know how to use the library for…
1
vote
0 answers

Is there any way to integrate snap with crouton?

Unable to perform any successful Snapcraft program installs. This is despite a successful command line install of snapd per instructions found at: https://snapcraft.io/install/hello-world/ubuntu#install Here is the output from the initial chroot…
killshot13
  • 186
  • 1
  • 4
  • 14
1
vote
0 answers

Keylistener registers 1 second later

A keylistener that I put on a jframe is delaying around 1 second, when it should be near instant. I'm fairly certain this is a linux/crouton issue, because the code works fine on a windows system. public void initComponents(){ JFrame frame = new…
Memcallen
  • 13
  • 5
1
vote
3 answers

wi-fi disconnected during crouton installation

I purchased an Asus c300m with the soul aim of developing my linux skills I followed the instruction to boot in developer mode and execute the following command to start downloading downloading crouton/ubuntu on it sudo sh -e ~/Downloads/crouton -t…
user958119
  • 63
  • 6
1
vote
1 answer

Problems with Infinite Crouton in Android only appears once

I show the crouton using the following code. At first run of the application the Crouton appears. But if I hit back button and reopen the application from launcher or recent list Crouton doesn't appear. public class MainActivity extends…
Anirudha Agashe
  • 3,510
  • 2
  • 32
  • 47