Code Monkey home page Code Monkey logo

csnackbar's People

Contributors

chathurahettiarachchi avatar manuelgon47 avatar rexluciano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csnackbar's Issues

Behavior implementation

Hi Choota!

I keep using your library that I love!

I need to do a behavior implementation and recover the Layout of the snackbar for its use.

Specifically, I need to do this:
http://alisonhuang-blog.logdown.com/posts/290009-design-support-library-coordinator-layout-and-behavior

I have a button to activate a GPS in the lower area of ​​the screen and when I click on it, I launch a Snackbar that indicates to the user that it is starting. The problem is that said Snackbar hides the button and I can not turn off the gps (the snackbar is undefined).

I would need to be able to use SnackBar.SnackBarLayout with your library.

Would it be possible?

Thank you!

fillParent dont work

Hello!

I am having problems using a custom view. It does not allow me to use "fillParent" and the settings like color or alignment do not work for me either.

My xml code:

> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
>                 android:id="@+id/custom_upload_snackbar"
>                 android:layout_width="match_parent"
>                 android:layout_height="48dp"
>                 android:orientation="horizontal"
>                 android:background="@drawable/transparent_background"
>                 >
>         <ProgressBar
>             android:id="@+id/snackbar_progressBar"
>             style="?android:attr/progressBarStyle"
>             android:layout_width="25dp"
>             android:layout_height="25dp"
>             android:layout_marginEnd="15dp"
>             android:layout_gravity="center_vertical"
>             android:progressTint="@color/colorPrimary"
>             />
>         <TextView
>             android:id="@+id/snackbar_text"
>             android:layout_width="match_parent"
>             android:layout_height="wrap_content"
>             android:gravity="center_vertical"
>             android:layout_gravity="center_vertical"
>             android:textColor="@color/colorPrimary"
>             />
> 
>             </LinearLayout>

My Java code:

   `Snackbar snack = new Snackbar();
    View view = LayoutInflater.from(this).inflate(R.layout.custom_upload_snackbar, null);
    TextView tv = (TextView) view.findViewById(R.id.snackbar_text);
    ProgressBar prBar = (ProgressBar) view.findViewById(R.id.snackbar_progressBar);

    tv.setText(R.string.fragment_document_uploading);

    snack.with(this,null)
            .type(Type.CUSTOM, 0xff323232)
            .fillParent(true)
            .contentView(view, 48)
            .textAlign(Align.CENTER)
            .duration(Duration.INFINITE)
            .show();`

How can i fix this?

Im use minSDK 21 and Landscape on tablet.

Thanks.

Custom view Button onClick()

Hey, I am trying to setOnClickListener on a button of custom_view, but it crashes with a nullPointerException. Any ideas?

Set gravity?

Can snackbar be shown from top instead of bottom using this library?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.