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
1
vote
3 answers

Adding library in Android Studio make "UNEXPECTED TOP-LEVEL EXCEPTION"

I'm trying to add libraries from maven, specifically, Crouton library. I can add it, Sync and use the Crouton object in my project, but when trying to run the app, i get this FAILURE: Build failed with an exception. * What went wrong: …
Shahar
  • 3,692
  • 4
  • 25
  • 47
1
vote
1 answer

Android: how to use callback on Crouton onDisplayed()

I would like to start a new activity, but only AFTER my Crouton has been displayed. I would like to use the onDisplayed() function of the…
MDT
  • 1,599
  • 4
  • 18
  • 26
1
vote
1 answer

Android Crouton library implementing Custom Views

Is it possible to completely change the Layout of a Crouton? I've seen a few of posts about changing the view which actually came down to just wanting to change the font but nothing about actually changing the layout. I've already got croutons…
1
vote
0 answers

Can I use a static method to add an OnClickListener in Java

Is it possible to add an onClickListener in a static method? I'm trying to create a convenience class make some common modifications to Crouton (Ben Weiss' implementation based on Cyril Mottier's article). I did have a forked version (where I'd…
ataulm
  • 15,195
  • 7
  • 50
  • 92
1
vote
1 answer

Exiting app after completion of all crouton toasts

I am using Crouton as alternative to native android toasts. I have to display 5-6 croutons one after the another and then call System.exit(0) to exit my app. The problem is, I see first crouton for 1-2 seconds and the app just exits! The rest…
Varun Chitre
  • 3,050
  • 4
  • 23
  • 33
1
vote
0 answers

How to setting listener for button inside the Crouton Toast and clear that Crouton Toast using that button?

I have an app, which shows toast below the actionbar. I'm using Crouton library for displaying toast. Here I'm placing custom layout for toast, that layout contains one textview and one button (for close option). So Toast appears with button. If I…
RajeshVijayakumar
  • 10,281
  • 11
  • 57
  • 84
1
vote
1 answer

Using custom layouts for the crouton library

I've got the crouton library ( https://github.com/keyboardsurfer/Crouton ) working with the default layout for notifications. I would like to use a custom layout xml file for the notifications so I could set a different typeface to the TextView to…
boz
  • 4,891
  • 5
  • 41
  • 68
0
votes
1 answer

crouton gcc: error: unrecognized command line option '-Wundef-prefix=HAVE_,CRAS_'

whenever I try to install a chroot, it will go fine for about 2 minutes, and then say: Compiling CRAS (i386)... gcc: error: unrecognized command line option '-Wundef-prefix=HAVE_,CRAS_' Failed to complete chroot setup. Anyone know how to fix this…
Developer
  • 2,731
  • 2
  • 41
  • 71
0
votes
1 answer

Can't seem to run my crontab file on my chromeos chroot

I have written a python script that will change my desktop wallpaper on my Lxde crouton shell, that seems to run just fine: import os from time import localtime from pathlib import Path wp =…
0
votes
1 answer

google chrome os partition scheme

I have a 2018 samsung chromebook pro upon which I've installed crouton. I have only one chroot installed using crouton. Everything is going well, except that I appear to be out of space on the rootfs. Here is the output of sudo df…
0
votes
1 answer

Cannot open Ubuntu on Chromebook via Crouton ubuntu.session does not exist

I opened my chromebook today and tried to go to my ubuntu via crouton, but it did not work. I'm getting the following error: chronos@localhost / $ sudo startunity Entering /mnt/stateful_partition/crouton/chroots/precise... -su: 27: [[: not…
Andrea
  • 394
  • 2
  • 15
0
votes
1 answer

Crouton disable auto hide

I'm using Crouton library and i'm trying to disable auto hide after finish duration. how can i disable that and can be hide when i want to hide that? this is my code and i can't find some option to do that crouton = Crouton.makeText(activity,…
tux-world
  • 2,680
  • 6
  • 24
  • 55
0
votes
1 answer

Crouton: use Builder to set custom font and textSize

Crouton library has Builder class that has some methods such as setTextSize(), setFontName() and etc. How can I use this class to change default this library configuration? For example: Crouton.makeText(activity, "HELLO" , Style.ALERT,…
tux-world
  • 2,680
  • 6
  • 24
  • 55
0
votes
1 answer

Why is Chrome OS missing or damaged?

I am using Crouton with Ubuntu 14.04 on my Acer Chromebook 15. My Chromebook was working perfectly fine before I turned it off. Here are the changes I made: I updated chroot to the latest version, installed steam on Wine/PlayOnLinux, and installed…
ButterJones
  • 89
  • 1
  • 2
  • 9
0
votes
1 answer

Missing library xfce

I'm trying to execute GoPanda2 (an application to play Go that is supported for linux) I'm on a chromebook acer720 running crouton. Following install instructions: In a terminal window, extract the archive: tar xvf gopanda2-linux-64.tar.gz Run…