« first day (2693 days earlier)      last day (2479 days later) » 

17:01
lmao
Guys, lil help
0
Q: Collapsing CardView Animation not working correctly

MaukerWhat I'm trying to do I have a RecyclerView with many items that are basically some CardView. Those cards have a supporting text in the middle of their bodies, which has the visibility set to GONE by default, and it's made VISIBLE when I click the arrow on the right of the card. I'm trying to ...

lmao
shut up CF
I'm almost as tired of your shit as I'm of Dave's.
lmaoo
lol , well you asked for help and i did my part
17:10
ahahahaha
@ColdFire ಠ_ಠ
Ops
i know your issue i guess
bodyContent.visibility = View.GONE
@Mauker I haven't even said anything yet
change this to View.INVISIBLE
@DaveS well he said just in case you say anything
Yeah but he needs it to disappear once the animation is done
17:16
well then do that on animation end
not on start
if he does that onstart that is what he will get
@ColdFire That way the view will still fill that space
@Mauker use Invisible, then add a listener to the transition, in onEnd set it to GONE
And that's what the delayedTransaction was supposed to be doing
or start another transition
Hmmm
yeah, that might work
17:18
@DaveS that is what i said :/
if you don't say it clearly, you don't get full credit
sigh he is not a noob to be told everything so clearly
I read both of your answers lol
Don't get salty
so can we got about closing the question now
4 cv already
let me know if it works so I can make an answer and take all the rep
17:21
lol
obviously it will work at worst with some tweak
welp, didn't work
same effect as when I wasn't using any transition at all
post what code you used
Same code, but with the listener:
did you do invisible then gone?
private val transitionListener = object : Transition.TransitionListener {
            override fun onTransitionEnd(transition: Transition) {
            	bodyContent.visibility = View.GONE
            }
        }
17:23
^
Yes
did you also delete your gone code from before
animate it instead
so a second transition
Yes
or just take out gone and make sure it leaves a space
17:24
What should I put on the second transition?
View.GONE, or possible animate the recycleview itself
animateLayoutChanges=true on the parent layout might help
do one thing just remove INVISIBLE
and try with only gone
only Gone is the issue dummy
The issue is the recycler view isn't animating, just the cardview
well post a ss mauker
gone shouldnt be the issue when its done on animation end
It behaves the same way as when I simply set the view to GONE, withtout using a transaction
it instantly collapses
17:27
does it leave the space when you set it to invisible?
that's half of the animation
then you'd just need to animate the rest up to take the space
It does
Maybe if I set it to invisible before the transaction
ok you are just animating the button there?
so set it to invisible in the first transaction. then on end, start a new transaction that sets it to gone
don't just set it right away
I'm animation the layout change
It made the animation faster, but didn't solve the issue
oh, two transactions. Sorry, wait
        override fun onTransitionEnd(transition: Transition) {
            TransitionManager.beginDelayedTransition(root, AutoTransition())
        	bodyContent.visibility = View.GONE
        }
    }
17:30
meh he is not animating the textview he is relying on layout changes to do that for him
btw you can just steal the code from here github.com/h6ah4i/android-advancedrecyclerview
Exactly
have you tried it?
Do I have an S on my face CF? I'm not samsung to steal github code.
I have literally been working on animations for the past week just try it if you haven't ffs
Didn't work Dave
17:31
ok
I have to leave for a while
brb
mauker it has a expandable RV just reference and see how they did the animation
launch it in a runnable!
you basically need the UI thread to not know it ends with GONE so animates it to Invisible then immediately collapses
not before
well that really wont make the animation smoother one bit
what he need is animate it yourself
17:35
well the issue is the overlap it doesn't animate the other cardviews on the start animation
if he wants it super smooth he needs to animate the recycler view not its children yes
exactly
that is because he is not waiting for the animation to finish
overlap shit is because of that
the point is that's his problem, he doesn't need super smooth
well the problem is there a way to listen to animation changes done by RV
17:42
Goooooooooooooooooooooooood Afternoon Eveyron!!!!! :D
and is there a listener for that?
afternooooooooooooooooooooon womp
anyway if it was a constraint layout and not a recycler view it'd be fine
So if an EditText has more text than lines are supported, how can I tell if the user is scrolled to the "top" of the text or not?
cancel the expand animation when the collapse one starts
I am using all the wrong words to search for this because nothing is coming up.
17:43
aing eski?
aing?
i mean what you mean
aing kinda means wtf you mean
what does aing mean?
@AdamMc331 editText.getScrollY();
hmm
I'm not quite sure that's it though
17:45
why aren't you not sure?
That refers to the top portion of the view, I know where the edittext is but what I don't know is if the user has scrolled to the top of the available text
it's not the position of the edit text, it's the scroll offset
Hmm
I'll try it out
Thanks
yeah what dave said should work out
adam is asking far more questions now does that means he didnt work in earlier company?
i am pretty sure that "didn't" is wrong grammar^
pretty much
does that means he didnt used to work
17:51
what would be correct to use with "used to"
used to not work
oh yeah true
doubled your verbs only need did or used
what you mean?
you don't say "I did run to the store"
you say "I ran to the store"
17:55
oh i get what you mean
what are you confused about?
maybe she's just shocked
she should be speaking in catalan/spanish then
i use the "I did run to the store" to accentuate that i went there
is that wrong??
17:59
that is grammatically incorrect
kay
I ran to the store is correct right?
i'll note it for the next time
ran mean past tense?
18:00
yes
@DaveS You win this round, Dave.
ok atleast i remember some grammar :D
but it's a commonly used way to say what you want to say. How is it incorrect btw?
which one tim?
you usually don't use did in front of a verb that can be past tense, that's how country bumpkins speak
You might use it in a question though
like, "Did you wash the dishes?" "Yes I washed the dishes"
not, "Yes I did wash the dishes"
18:07
"I did run to the store" is correct
i read pumpkin instead of bumpkin and i was happy for a moment to be a pumpkin
sort of, it's not what a native speaker would say
"You didn't run to the store, did you?
"I DID run to the store"
yes, in that instance
context makes it correct
that's how she said she was using it
18:08
but that is how she meant it
ok even native speakers aren't sure what is correct great english
I misread it then
yes womp you are fine using it to stress you DID it
you'd be wrong to use it just to say it was in the past
She DID TOO use it correctly!
yeah and you guys did were wrong
18:10
ooh no no, i was stressing
lol tim
lol tim
I ran to the store tho
so what would be the difference between " I did run to the store" and "I ran to the store"?
i thought you were working adam?
I DID run to the store, stresses you completed the task of running to the store and is correct
18:11
I did work
I did run to the store, casually to say you "ran to the store" makes you sound uneducated
Both are fine lmao
lmao both says same
no it done don't aint
Like, whether I say "I lost my keystore" or "I did lose my keystore" I'm portraying the same message and in both cases you understand what I mean.
18:12
I ran to the store also says you went to the store
did went is not correct
I did lose my keystore in response to a question is fine, I did lose my keystore as a standalone sentence is weird
okay fine that's fair
yeah that is fair^
You win this round too, damnit.
18:13
I do agree with dave
lmao adam
@TimCastelijns so what is correct?
'did go', or 'went'
ok i guess did was not required there
yeah got it tim
@DaveS so "i did run to the store" as a standalone is wrong?
yes
or is it correct just not high standard?
18:15
don't use "I did <verb>" unless it's a response to a question
"I did" is kind of like "yes"
"Yes, I ran to the store" is the same as "I did run to the store"
For extra emphasis, "I done did run to the store"
it wouldn't be right to say "Yes, I ran to to the store" on it's own
lmao what done did?
it's the same thing for "I did run to the store"
@DaveS ok well that makes sense
18:17
the more rural you get the more variations of done/did/do you put in front of every verb
true
@AdamMc331 show us the commits
correct Alabama english is another story
i think i do the "did went" or that kinda mistake often
same hindi changes as per region also
oh wow... so many messages
18:21
it doesn't change in alabama, they just do it wrong
lol, true
I have returned
lmao
is alabama a state in US ?
ok i got that right
18:28
For now.
sigh must be hard to remember name of all 50 states?
i doubt most people can name it all
Off the top of my head, probably not. Given enough time to think, maybe
I've built too many forms with state dropdowns
Not a pleasant experience
I'm pretty sure I can't even name all of India's states
true
i think now i can maybe
previously no way
18:30
So I am trying to set up a project in Android studio based on the decompiled source of an app I no longer have the source to. Is this possiblo?
you cant really do that
is that a question?
@TimCastelijns all of US states
@William no
you'll need to manually do it file by file probably
@DaveS what is missing then? i have the java files, and xml
18:32
@William Not really out of the box. You could set up a blank project and piece together whatever bits of the decompiled code are still somewhat valid, and write the missing bits
Decompilation is rarely good enough to run straight away
everything else, lol
gradle files etc
that decompiled code doesnt really compiles all the time
Even if it's compilable, it's definitely not good enough for human dev
Unless you speak compiler optimization
you mean you don't know what aa.zz() does?
18:35
I just wanted to change some very basic things but I see
@TimCastelijns I do, naturally. Got a whole cluster dedicated to compilerspeak. It's you humans I'm concerned about
What will you do when we take over?
but can't the gradle scirpts be reconstructed?
we will attach some bluetooth chips to you and watch you break yourself
By hand, yes
But they don't exist in the apk at all, so you can't get them via decompilation or apk analysis
Gradle scripts define how to build the app
Once the building is done, they're useless
They never make it into the final apks
18:38
heyy guys, had a quick question regarding using tokens for login
i wanted to start a new project using tokens for login but find it how to exactly what will the token do
Is there a way to move the java scripts back into the original apk assuming it is very simple stuff
would the token simply replace the password variable and change every now and then?
@William If you have java code that compiles, sure
Depending on exactly what you need to change, you might not need to convert it back into a full blown AS project
There are ways to modify smali
thank you off to experiment
18:41
@TimCastelijns do this or read it? if reading, yes i did
Welp, that's not a good answer
obviously you didn't read them
can you point me to your first message in this chat please
William, what are you trying to edit in the app?
18:42
tim the sherlock
@RaghavSood just the widget images mostly.
I've spent many hours silently inserting CA's permissions into Bixby and malware loading it on people's phones experimenting, I can probably point you in the right direction
7
size ideally also
Ah, that's easy
Don't touch the Java at all
Edit the compiled resource files
They're much easier to replace/edit
@TimCastelijns yeah, didn't exactly follow rule number 6
18:43
Replace the drawables, and update the views in XML to change the size
You're really pushing your luck, Nero
just say it, it's like a token based authentication to this room
raghav has slippery fingers btw
I am really nice and patient, but I have to go
lol both
@RaghavSood I knew it was a conspiracy!
William, also note that you will still need access to the keystore used to sign the app if you intend to install as an update
Changing resources or Java files invalidates the signature on the apk
I was trying to help, you CA!
You don't need to support Samsung devices anymore if your app can't be installed on Samsung devices
Think of all the time you'll save
18:47
lmao this is hilarious one bank was fraud by a man and we are discussing this scam is of previous government or this government
no I don't plan to install it as an update
so I converted the apk to a zip and extracted. Is there a guide to go from theere
https://stackoverflow.com/questions/1592534/what-is-token-based-authentication
Token based authentication is an incredibly deep body of knowledge and something that can't really be discussed casually in chat. Most programmers offload this authentication layer to a backend service anyway. I suggest reading up on the topic quite a bit as there's no quick and easy "Here's how you do token authentication"
Breaking news: Spotify files for IPO
You're like a day out of sync, CA
18:48
yah, I was actually working yesterday
burn
There's a bunch of guides on XDA, I remember using them years ago
Shouldn't be too hard to find
found one thank you
@DaveS ok cheers for that, but what I read in my research is that the token gets expired after some time, can you point me in the direction of how this happens (maybe database trigger)
18:51
If I were a room owner, you'd be on a 24 hour ban
Oh wait
I am
@Nero Access revoked for repeated failure to follow the rules. Please come back after a minimum of 24 hours.
tokens can have a time encoded in them, or not, it's up to you. Read up on it
and when you come back follow the rules
@NancySaad Saadly, you need at least 20 rep to talk in chat, and 80 rep to get access to this room
Rag is a commedian
18:54
lol just noticed that
I like the nickname rag too
implies he's all washed up
lol true
peaked at 18
tomorrow is holi so enjoyment day
I'm learning about authentication and authorization lately. Trying to implement it in my baseball card REST API. Eventually will implement in my app, too.
might I suggest the com.samsung family of permissions
4
18:56
lmao true
HIYA CARL!!!!! :D
Hello, Mr. Anderson.
How is Seattle today?
Does anyone here use a custom intent share mechanism in their app instead of the regular intent share one?
and if so, are there any issues with doing so?
I used a custom one to only show Facebook and Twitter
19:20
my TPMs are asking about building a custom share bottom sheet so that we know what app the user picked to share with...
I don't Android much these days ;-(
ah so literally building a custom sharing mechanism
yeah :-/
@CarlAnderson i did with no issues
o/ carl
i dont really remember facing any big issues doing it as per se
19:24
ok
that's what I got Tristan
@CarlAnderson couldn't you intercept the touch event, track the click but refuse to consume it, so it's then passed on to the real button?
lmao that quiz
@Nero you usually have a repo proper for tokens - userId (database for ex). You have the option to generate a token containing the expiration date and other data useful for your app, and then decrypt it on the server side and retrieve the date and compare it to the current date. Or, just generate a token and an expiration date and store them on the tokens repo, then fetch the date from the db anytime you get a request. There are tons of resources online about this
19:29
These will approximately go from beginner to intermediate and just might occasionally feature examples from a certain Android Kotlin library. Keep an eye out. https://twitter.com/AndroidDev/status/969249389582548997
he is out of here already mehdi
oups... I just noticed he got kicked out... sorry about this, ROs
ugh I hate the phrase "Syntactical Sugar"
You won't believe number 16! https://twitter.com/wkalic/status/969250223729102850
JW is click baiting!
@DaveS You are my syntactical sugar, Dave!
6
gross
19:32
XD
> "Replace Fragments?"
so trump got india to reduce import duties on harley by 50%
whats with the harley obsession?
the motorcycle?
I declare Thursday Trump-free day
19:35
yup CA
lol dave
Do Indians ride harleys?
i mean yeah sure why not?
In the US it is big. The company patented the rumbling sound that the bike makes.
@DaveS that doesn't seem any more or less hacky than creating my own custom bottom sheet intent launcher
motorcycle riders in the states have an unsavory reputation
at least that's the stereotype
19:37
you don't need to maintain a custom reproduction of a 3rd party integration
you just need to know where the view is and add an ontouch listener
yeah here owning a harley is instant high class rep
since its fucking costly
Id be worried about share with facebook changing how it does things and suddenly facebook shares don't work
Don't say that Dave
that's one of my next features to do
Social media sharing
if you use their sdk and just do it how their docs suggest should be fine, if you're trying to mimic what they do so you can track who shares what I'd be worried
it's very easy to do so, when you user the out of the box way
19:44
o/
you don't even need their SDK if you just wanna broadcast to every app depending on a mime type etc..
launched my short email service in beta today, in case anybody's interested, feedback welcome :) --> shortestemailaddress.com
nice cygery
do we use a vpn for those not in the US or Canada? :D
no idea
the starboard is so diverse today
19:56
hello my dudes
o/ Ahmad
hello
o/ Ahmad
Ah! Mad!
how's your brother Ahsad doing?

« first day (2693 days earlier)      last day (2479 days later) »