DEV Community

Ildarov
Ildarov

Posted on

3 1

My first published library in the Android arsenal

Hello Guys!

Yesterday my first library published in Android-arsenal. It is a really impressive feeling when you've done something original and may be useful for someone.

Here is my library in android-arsenal: Android-arsenal-FillingButton
and here is in Github: FillingButton

Top comments (3)

Collapse
 
neokleoys2005 profile image
Giorgos Neokleous • Edited

Congrats!

I've got a question which you might want to address in your README.md.

Why does the library need an ACCESS_NETWORK_STATE permission? I'm guessing it has to do with InternetSensableButton.

Also, the library lacks documentation. Although simple, it gives zero info to the implementator what for example InternetSensableButton does.

Edit:
Comments on implementation

connected.also {
                when(it){
                    true -> button.alpha = 1f
                    false -> button.alpha = disabledAlpha
                }
            }

connected is a non-nullable boolean, the also adds redundant verbosity to the logic.
Also, I think a simple if-else will be cleaner here. When-statement is fantastic but it's not the one stop for all conditional logic.

Collapse
 
devit951 profile image
Ildarov

Thanks for the response.
On a weekend I will fix README, to describe new button type "InernetSensableButton". The reason why I couldn't because I didn't have enough free time.

Collapse
 
devit951 profile image
Ildarov

Done.

Image of AssemblyAI

Automatic Speech Recognition with AssemblyAI

Experience near-human accuracy, low-latency performance, and advanced Speech AI capabilities with AssemblyAI's Speech-to-Text API. Sign up today and get $50 in API credit. No credit card required.

Try the API

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay