« first day (3076 days earlier)      last day (1864 days later) » 

12:03 AM
Ribbit
 
 
2 hours later…
1:45 AM
Ribbit
 
hello
o/
 
hello dear friends
trying to get this custom seekbar to look like this
suggestions ?
currently:
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
    updateColor();
}

void updateColor(){
    int progress = getProgress();
    gd.setColor(Color.rgb(progress, progress, progress));
}
I would basically eventually like to just set a different color programmatically and the alpha overlay would simply always be there (the color is the one at the far-right, so currently it is Color.BLACK)
meh, I wish I could just delete this piece of code, it is irrelevant XD
 
2:35 AM
In deed, it's irrelevant
just make a gradient drawable and use setColorFilter on it to change the color
it's pretty fast
or you can even animate the color property using animators
 
3:00 AM
I've been fiddling with this and I still can't get it to do what I want :(
@RaymondArteaga I got the gradient alright a while ago, but I'm stuck on trying to remove the extra edges
(see the sticking out squares?)
it should start the squares where my purple pin is, and stop when the black is
somehow it works fine elsewhere :(
the difference is that for the others, I only use .setProgressDrawable(new GradientDrawable(...)); whereas I think I need to also use .setBackground(...) on my bottom one
I also still haven't figured out how to add a simple thin black border around all of these custom seekbars :(
 
3:14 AM
Why are you setting that dynamically?
Just make your static drawable and change it's color dynamically
 
uncertain what you mean
you mean a XML file ?
 
Are you familiar with styles and themes?
 
slightly
I did use them once or twice
 
Have you searched GitHub?
 
no
mostly SO
aSeekBar.setBackground(context.getDrawable(R.drawable.checker));
aGradD = new GradientDrawable(GradientDrawable.Orientation.LEFT_RIGHT,
        new int[] {Color.parseColor("#00000000"),
                Color.parseColor("#FF000000")});
aSeekBar.setProgressDrawable(aGradD);
aSeekBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.DST_IN);
my most recent attempt
 
3:20 AM
Well that's what I mean, although now thinking it well you will need to set it dynamically for sure
 
I'm not sure I understand how setColorFilterworks exactly
does it apply on top of my aGradD ?
 
You leave the black drawable (with the opacity gradient)
Then you replace the black color with you selected color using setcolorfilter
IDK if tint is suitable for your needs
 
but isn't that what those lines already do ? Yet I still obtain exactly the same thing: black gradient fade, with the extra edges sticking out
 
But make some experiments, I'm sure you'll solve it
Make a static drawable, so you can see it in the editor preview and you can play with it
Then use it
Remember you can use more than 2 colors on a gradient
 
it's been 3 hours :(
yeah, my rainbow gradient uses many colors :D
 
3:27 AM
Trust me, you'll feel good after finishing it
Is your task time sensitive?
 
why do they name a method setStroke if it doesn't set the Stroke... :(
well, I have over a week for this assignment
 
(but I have like 4 more)
 
Supposedly it does
 
mostly spent my time on the socket-related one written in C
grew to hate C due to it, in the mean time
 
4:01 AM
@paynewhat are you using for your checkered background?
 
4:14 AM
@RaymondArteaga a bitmap
<?xml version="1.0" encoding="utf-8"?>
<bitmap
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:src="@drawable/checkers"
    android:tileMode="repeat"
    />
 
it might help you
 
4:51 AM
@RaymondArteaga trying it out
 
fixed your angle, too ;)
 
Hey
 
do I setBackground with it?
 
GM
 
4:53 AM
What angle?
 
.setBackground(getDrawable(R.drawable.seekbar_layers));
you had that android:angle="0dp" lol
densitypixels for angles?
 
I used angle?
Sorry then :P
 
what other attribute did you mean to use?
 
Is angle a requirement?
 
nope
 
4:56 AM
Oh and ignore dither too
 
what is dither ?
I've been seeing that word
 
Just delete that
 
moRnings...
 
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/seekbar_layers.xml from drawable resource ID #0x7f070079
 
Mornight Patel!
 
4:58 AM
from aSeekBar.setProgressDrawable(context.getDrawable(R.drawable.seekbar_layers));
 
o/ frog.
 
the file I used is indeed res/drawable/seekbar_layers.xml
 
You are supposed to provide the rest of the layer items
I only gave you the background
 
such as progress and secondaryProgress?
 
Yep
You can use a transparent item if you want
That's just a hint you will surely need to do some tweaks
 
5:02 AM
alright
thank you
 
I'm about to sleep, let me know any progress please.
@RaghavSood are you smart?
 
No.
Edits don't count
 
@RaghavSood No, quit asking for my satoshis! :C
 
Don't need yours, have plenty of my own
 
I disagree
 
5:04 AM
@RaymondArteaga I can't get the application to start anymore... it seems like I'm missing something
 
laughs in didn't have money on Cryptopia/Quadriga
 
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.colorpickerref/com.example.colorpicker.MainActivity}: android.content.res.Resources$NotFoundException: Drawable com.example.colorpickerref:drawable/seekbar_layers with resource ID #0x7f070079
@RaghavSood that's it, reported.
 
@payne you should provide the thumb drawable too
 
That's alright, if they come after me, I'll just go and die in India
 
@RaymondArteaga what's the @android:id/ ?
Rag's a wise boy, apparently.
 
5:06 AM
Just take the drawable you had and update the progress item on the layout list
It was a hint, I didn't do all the job
 
nothing makes sense :D
I've never used Layer-Lists before
 
But you didn't put it in android:hint :(
 
ya, I understand that
 
@payne I'm pretty sure that's why you were getting those "squares" on the tips
If you can post the code you are using that will be great
So we can help better
 
with pleasure
lemme make a Gist
 
5:10 AM
Good morning everyone. :)
 
Ok, I'll look at it in a few hours. Now I require some sleep.
 
@RaymondArteaga, You should take sleep. Mornight
 
Mornight
I like Zoe, even although she didn't heard my advice :(
Frog out
 
Whom did you cast your vote?
 
5:15 AM
@RaymondArteaga, What kind of advice you have given?
 
@RakeshKumar she brought me down some deep frog-hole :(
 
She*
 
all I wanted was to get my alpha seekbar to not have those squares sticking out
 
 
2 hours later…
7:35 AM
Gooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooooood Morning Everyone!!!!!!!!!! :D
 
8:00 AM
o/
 
'Morning !!!
 
8:22 AM
o/
 
eLi
Guys
monring
 
 
1 hour later…
9:31 AM
o/
everyone is busy
 
\o
 
o/
 
how do I force GIF play in chat?
 
Hold it at rm point
 
morning!
 
9:41 AM
o/ Eric
@Zoe stackoverflow.com/a/44086196/9968399 Performance loss would be really low enough to consider it negligible
I understand that people are reluctant to change and I would not really push Java programmers to use Kotlin because most Java programmers are already too experienced with Java so any syntax thingy won`t matter to them. But I do think that Kotlin is great for those who recently stepped in to the dev business
@RaghavSood hold it at rm? What does that mean?
 
Zoe
@TaseerAhmad it's still present
 
@TaseerAhmad it's a joke, meaning: threaten the gif (a file) to remove it (by using the rm command)
 
Who did you guys vote for
 
myself
just kidding. vote where?
 
mod elections
 
9:53 AM
also: my MBP broke yesterday. had to drive 180km to get to the nearest official reseller.
got it fixed luckily.
 
Hiya Raghav, Mehdi, KotlinIsland, CF, Eli, Warren, Taseer, Bakker, Grrigore, Eric, Zoe, Murat!!!!!!! :D
 
no o's now?
 
Hi womper
 
Zoe
Hiya o/
 
@MuratKaragöz I didn't
@CptEric MBP?
 
9:56 AM
How could you not man
 
@MuratKaragöz coldspeed - zoe
this is basically the reason I voted for coldspeed as well stackoverflow.com/questions/54028199/…
 
@MuratKaragöz cause I'm just a horrible person
 
Baum mit Augen seems like the masternerd
Got him on my list
 
alright, I trust your judgement
 
10:04 AM
@MuratKaragöz Groot?
 
o/ Mark
 
\o
 
@CptEric I already did my o's today xD
 
@MwBakker MacBookPro
yo w0mp
got time to read something?
 
10:12 AM
@CptEric you work with those voluntarly?
 
not really, but give me the stuff and i'll read it bit by bit
 
@MwBakker yes, because he's a man of culture
 
@MuratKaragöz he is
sup eric
 
@MwBakker I have one personally because i need to develop osx/ios stuff
 
but you personally enjoy using one, right? :D
 
10:23 AM
hmm macbook is not bad to use imo
 
it's more of a hipster thing
 
@MehdiB. Hitler wore Hugo Boss uniforms because he wanted to be a man of culture too
Doesn't mean it's a good thing though
 
@MwBakker lol i was just reading germany condition after ww2
 
@MwBakker you and bb have a gift of making meaningless topics escalate from -100 to +280 :D
 
10:49 AM
nebyan requested access. Rep: 7983 - Questions: 6 - Answers: 7 (ratio 4:4.7)
 
!accept
 
@nebyan welcome. Please start by reading the rules and confirm you have read them before saying anything else.
 
thanks
 
Read the rules.
 
@MehdiB. it's okay. I like the fact that it's a small-sized superpower device, given the correct the amount of cash thrown at it.
 
11:17 AM
is it an over kill to use an async task for deleting files?
 
first: no async task please
 
why? ;(
 
second: file IO always off the main ui thread
AsyncTasks are obsolete by reactive approaches. Use coroutines or rx
 
Rx rx
 
suppose the file is small...like 8-100 KB. Is it still an overkill?
 
11:20 AM
yeah what warren said
 
I am a newbie developer I dont know anything about coroutines and rxjava
 
asynctask is dead and should stay dead
 
Cold man how are you
 
I am trying to try early things of android before moving ahead
 
If you need to use it in one place then it is fine...because adding rx has a little penalty
 
11:23 AM
I feel like an arse right now
 
It is not prohabitat to use async task..but there is a lot of backlogs
 
if you have not yet used rx and it is not in your project, than an AsyncTask is fine
 
I have like 14 async tasks in my app ;(
 
knowing it is always good anyway
ok, scratch that. BURN HIM!
just kidding
 
oof
I dont know when to use Rxjava
I dont know when should i move to newer things of android
 
11:24 AM
I would start with network calls
 
but can I know why Asyncs are dead?
like what are their limitation that got fixed by rx?
 
AT are pretty verbose imho
rx is more dense
 
I know you guys are wayyyy more experienced and better than me at android, so maybe could you guys give me a few hints or directions on when to start certain things of android. I asked a question before on when to use different architectures and the people said go for new architectures when the code feels hard to change. I took android course about 8 months ago from Udemy. It did gave a kickstart on how to begin Android
 
Get on the flutter train before everyone else
 
lol
@bluetoothfx i am good wbu
@TaseerAhmad for network calls you should be using okhttp , retrofit or volley anyway
i would not recommend volley tho , too outdated now
 
11:34 AM
Yes, Volley can go die now
 
Picasso / Glide for image handling
beside that read about Clean Architecture
 
@RaghavSood I dont like flutter... :/
 
also read about instant apps and instant modules
and modules in general
more complex topics will require modularization of your project anyway so you should get used to it
are you working in java or kotlin?
 
if you could suggest a book for Android development, what book would you suggest?
I started Android with Kotlin only but have like a year of experience with C++
 
warren are you using clean arch and instant modules in your apps?
 
11:46 AM
no instant modules yet, they are pretty hard to integrate one by one... somehow our build setup is not really compatible yet
Kotlin only for Android is fine. Being able to read Java code is a big help though
 
I miss my old days of doing stuff with java and/or c# TT^TT
 
only php these days?
wait what do you mean by being able to read java code?
do you mean its compatibility with kotlin?
 
norming
did I do it right?
 
norming?
 
you tricked me, I read it as "morning", so yeah
 
11:55 AM
:D
screw that Berkley study saying you can swap letters within a word, except the first and last one
I'm publishing my results in regards to only preserving the last one in place.
 
@WarrenFaith takes pitchfork who? where? when?
 
@ColdFire I wish! Nah... I'm doing Dynamics AX stuff
 
user443346
o/
 
user443346
@payne Max, is that you?
 
@Jordy leave me alone!
 
user443346
12:09 PM
Calm down Max :(
 
ok
so are you all software engineers out here?
why does everyone seem to have time to waste chatting in here all day long? XD
is that what being a Senior is like?
 
user443346
Since when is having fun a waste
 
time to Unionize this chatroom
 
o/
 
user443346
I rather stay a loner
 
12:15 PM
can't wait for that day payne signs his first work contract
we'll get to see him more often for sure
 
@AdamMc331 you're supposed to be sleeping
but o/ anyway
wait no it's like 8AM in New York. I'm still set on Adam-lives-almost-in-canada time.
 
~(-.-~)
 
ALAC time. a new standard. still better than Fahrenheit.
@payne even though I am on a sick leave. yup.
 
Hello word from the other side
 
bought my first PCIe external hard drive
fast AF.
 
12:22 PM
damnn but isnt that a pain to set up?
 
how's business Jordy
 
what? I just plugged it in. comes in a handy USB-C casing.
 
@CptEric cool i also bought one its fast alright
@W0MP3R sounds like a hassle
@AdamMc331 any update on slack channel?
 
It is
 
12:39 PM
Xc0d3r requested access. Rep: 71 - Questions: 2 - Answers: 2 (ratio 4:4)
 
user443346
12:51 PM
@MehdiB. Cancer, moved 8 wordpress sites in 40 hours. Last time I touch this cancerous software.
 
😂😂😂
why don't they migrate themselves?
 
🤣🤣🤣
 
I moved a wordpress site to ghost over the weekend
Took about 20 minutes
 
I remember doing some wordpress theme personalization
 
@Jordy I once told a German "da habe ich kein Krebs an!" but they don't understand it
 
12:54 PM
and fighting with plugins
it wasn't fun
 
I did that as well during a dark period of my life, made it even darker
 
user443346
@MwBakker But I do :D
 
user443346
@MehdiB. Noobs
 

« first day (3076 days earlier)      last day (1864 days later) »