« first day (2140 days earlier)      last day (2809 days later) » 

2:00 PM
any idea about that
 
@ColdFire how much mAh?
 
I'm going to need a bit more of a question to go on
 
@TimCastelijns 3000mah
 
guess your phone sucks, cause I have 3100 and mine lasts 4 times as long :D
oneplus masterrace
 
the thing is that i have been asked to study VR and what can be done with it
@TimCastelijns not my phone your usage sucks
 
2:02 PM
My OnePlus took to cooking me
 
in general? or for android?
 
I could literally boil water on the camera casing
 
lol
 
I can only boil stuff on the gps chip
 
That's kinda like asking "What can be done with programming?"
 
2:02 PM
oneplus sucks
 
You can do a ton with VR
 
specifically google Cardboard
and android
app
 
Still a ton can be done.
 
is that little bit specific
 
tell them to try the app, and say "you can do stuff like this" :D
 
2:03 PM
You can google for Cardboard Android apps to get an idea of what has already been done.
 
We're now at "What can be done by programming an Android device?"
And for the record Cardboard works on iPhones too
 
well i havent been given any idea what they want
 
You might want to ask for one haha
 
raghav i am aware of that
well his point he can runtime ask whether this can be done
and i need to be able to tell him
yes this can be done
or no this cant be done
 
why does he expect that of you
that is dumb
 
2:06 PM
Unless you're very familiar with the VR/AR space that's a rather lot to ask
Relevant:
user image
2
 
raghav i am not familiar
that is the issue
 
If you aren't even familiar with the space, you may not know what's easily doable and not doable
And it's hard to generalise that
 
i havent got a clue what can be done and what cant be
 
@RaghavSood saved for future reference.. hey boss look at this.
 
wait i remember something he told
like there are 4 boxes
the app needs to be able to tell
whether he has picked the right box
 
2:08 PM
simply put: you can create a virtual reality. What you do with it is up to you
how does he pick a box?
 
Based on what? Do the boxes have some kind of differentiating factor? You control the environment. You can decide which box is what
 
yes but lets say he has to pic box in some order
 
1-2-3-4
and after 1 he picked 3 but that is wrong
 
This seems the same as just having four buttons on the screen and asking people to tap in order
 
2:09 PM
since he has to pic 2 after 1
well i dont know what higher management thinks
the point is the app needs to know that the user has picked the wrong box
and tell him
 
That should be doable
 
> how does he pick a box?
 
physically
 
At that point it's not VR
It's AR
 
exactly
 
2:11 PM
VR has no physical component
 
that's what I wanted to know
 
wait
 
And at that point you need a way to track the actual boxes
Since they're out of your control
 
let me complete
 
Markers, beacons, whatever is up to you
 
2:12 PM
let say raghav and tim you 2 are there
raghav is the one picking the box
and tim is the one using the device
 
Are they actual, real boxes?
 
yes
 
That's AR
Not VR
 
didn't I tell you yesterday to not mix them up? :p
 
yeah kinda you are right
@TimCastelijns well no
i am not mixing up them the higher management
is
 
2:14 PM
23 hours ago, by Tim Castelijns
be sure to not mix VR and AR
 
@TimCastelijns haha i was jk
 
Delete their Documents folder
That's VR
Set their filing cabinet on fire
That's AR
Problem solved.
 
haha oki right
 
Largely because you'll be out of a job and no longer have to deal with this problem
 
:'D
 
2:15 PM
lol
why would i be out of job
 
because you deleted their files
 
anyways i am not worried about my job
fuck job
 
I dunno where you work but most companies don't like their employees starting fires, virtual or otherwise
 
I'm telling your boss you said this
 
That's the spirit! Get the lighter
 
2:17 PM
@RaghavSood haha ok
well certainly i am not the top 10 smartest kid in india
raghav is your AR book good?
 
it's on discount, so probably not
 
lol
 
it's extremely outdated
 
I'm doing another REST question similar to the one yesterday, with the only difference it having a header which I have to pass through user token to and it's not working :(
 
Have you tried turning it off and back on again?
 
2:19 PM
lol
 
what does that have to do with REST
 
REST API RETROFIT TIM
 
what does retrofit have to do with REST
it is raining sarcasm, sorry
 
FACEPALM
 
@ColdFire is my 6th best tag :D
 
2:26 PM
@TimCastelijns nice
 
from back in the day
 
didn't mean REST question
whoops
 
when I didn't chat
 
yeah me too
 
strangely enough when I remove the authentication header, I get a response 200 code :| that should not happen :D
 
2:31 PM
who knows what happens on the server
maybe the 200 is a bug
 
o/
 
flying to SF again today :)
 
Wanna hear German dialects? Check this ( you probably want to turn on sound in the player as well!)
 
ahh that bubble, getting ready to only see tech people, and then getting annoyed by the fact that I'm only seeing tech people
 
2:34 PM
I've never been to SF
I want to visit it sometime
 
www.serverfault.com enjoy your stay
 
lol
 
oh god warren
 
what is SF?
 
2:36 PM
sächsisch sounds just so horrible
HOCHDEUTSCH
that's the only way to speak
@ColdFire san francisco
I was getting off the train earlier on my way to work and I saw a guy with a CircleCI shirt
tech t-shirts have become a trigger for me
why are there so many tech people in the US? :0
 
anyone here ever managed to create his own ?attr/name reference that can be changed by style/theme?
 
@ColdFire I thought that doze put your app to sleep. But it doesn't
 
I want that my customview uses ?attr/name as padding and that this attribute is changed based on a style I assign that customview
any ideas?!
 
the only place in the office that's actually cold is the little area with the ping pong table
otherwise it's boiling
 
yeah warren you can easily do that with dagger
;-)))
 
2:43 PM
you need to define a custom attribute
 
I see what you did there Tim
 
<attr name="test" format="dimension"/>
 
I tried to, Ahmad :D
 
what error did you get?
 
inflating errors
care to walk with the steps with me?
 
2:44 PM
wrong xml syntax?
 
I added <attr name="padding" format="reference"/> into the attrs.xml
right? wrong?
 
seemingly right?
 
yep
 
my "padding" name is actually longer and unique, but to simplicity lets use padding
ok, and I have a style defined this way:
<style name="AppTheme.Content.TwoColItem">
    <item name="padding">@dimen/grid_baseline_double</item>
</style>
 
hmm no you can't do it quite right that
you need to declare a styleable
like the one under "define custom attributes"
 
2:48 PM
<declare-styleable name="AppTheme.Content.TwoColItem">
    <attr name="twoColItemPadding" format="reference" />
</declare-styleable>
this way?
 
warren right
 
seems right
only did this once so I'm rusty in that area
 
@ColdFire can you confirm my last comment to you? About doze
 
ok and how can I set values now? I would again use the <style> tag right?
 
yep
 
2:50 PM
yes
@TimCastelijns nope
it doesnt
i left pokemon go open and slept
 
but it crashes as soon as I try to use ?attr/twoColItemPadding
 
battery went from 60 to 10
 
you only slept for 5 minutes? :p
 
lol
 
hallo!
 
2:51 PM
6 hours i guess
 
@WarrenFaith ? says you're gonna do a lookup, so it's looking in attr, maybe it's not there, maybe in app:attr or something (just a guess, probably wrong)
 
@WarrenFaith how are you using it
 
android:padding="?attr/twoColItemPadding"
 
use custom:padding
 
yes
 
2:54 PM
why should I?
I mean android:padding
 
because the doc says so
 
the problem is ?attr/twoColItemPadding
 
well warren
 
custom:padding="?attr/twoColItemPadding"
 
you have to use
<declare-styleable name="AppTheme.Content.TwoColItem">
<attr name="twoColItemPadding" format="reference" />
</declare-styleable>
in attrs.xml
 
2:55 PM
oh wait I get what you're trying to do
 
I have
 
not attr, attrs
 
you want a custom reference variable right?
 
yes!
 
hmm I think that one is a bit different
 
2:56 PM
warren custom attribute requires
 
been a really long time since I did that though :/
 
custom namespace
you cant use android:padding
 
Coldy, stop
step back, read again
 
no no he uses the standard padding from the framework
 
^
exactly
I just want to have an attribute that I can define in my style that will be "replaced" in my android:padding attribute
 
2:57 PM
then why you need a custom attribute
 
so style says: 32dp and the layout just says: padding="thatMagicAttribute"
 
ohh i get it
wait i will check in my code and let you know
i have done that onces
 
problem is that I need to get access to style attributes inside my custom layout
 
brb
 
warren remove the attr
android:padding="?twoColItemPadding"
use it like this
this will work 100%
 
right
try that
 
nope, still crashes
 
i dont think you need
this
remove this
 
I get this than:
> Error:No resource found that matches the given name: attr 'twoColItemPadding'.
because twoColItemPadding can't be found in my style
 
ok let me show you the code i used
@WarrenFaith yeah you need that
this is in style
this is attrs
and usage
btw you are setting that theme
to that view
or activity
 
3:05 PM
I set the style on the parent of that view (check my pastebin)
and no, it crashes
 
android:padding="?attr/twoColItemPadding"
you are using it in parent ll
and setting it to your custom view
do one thing add that style to your activity style
and see
 
I can't follow
my activity has AppTheme as theme set
my style inherits from that
 
<item name="padding">@dimen/grid_baseline_double</item>
add this to your activity
style
deleting is not necessary
 
why?!
that makes no sense! I need to change the attribute value based on the style I define for my custom view
ah! well, second
 
but you are using that attribute in parent ll
 
3:08 PM
no crash, now let me test
what ever "parent 2" means
 
ll is linearlayout
 
don't tell me that are 2 ll and not 2 II
so write readable LL
please
 
ok
does it work?
 
ok, so my style is ignored and only the theme works...
which is not what I need
I can now only change it for everything or none
 
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:duplicateParentState="true"
android:gravity="center_vertical"
android:orientation="vertical"
android:padding="?attr/twoColItemPadding">
 
3:11 PM
I need to be able to change the padding based on the style I set to the parent LL
 
why are you using the padding on the main LL
instead of your custom view
since that attr is being used by parent LL it has to be set to parent LL
but you are setting it to
<com.custom.widget.TwoColItemView
why?
 
that is the basic idea, I have dozens of <TwoColItemViews> inside my layouts and I need to change an attribute value INSIDE my custom view based on the style I set to the <TwoColItemViews>
because at one place I need big paddings and on some places I don't need it
 
well then you should set padding to your custom view and not parent LL
 
ok, ignore that
 
remove this
android:padding="?attr/twoColItemPadding"
from LL
 
3:15 PM
maybe I need to even style my TextView inside the custom view
 
and add that
 
how can I do that?
 
to your custom view
make more custom attributes
 
again: I don't care about that: I need to find a solution for my problem
changing attributes inside my custom view based on style I set to it
 
did you remove the attribute from LL
 
3:17 PM
no because it is not part of my problem
You understand what I want?
 
yes
 
good, do you have an idea for a solution?
 
you want to have let say
2 style
if i set one style some diff padding will be applied
and if second some diff padding will be applied
right?
or did i miss something?
 
right and the padding I want to change can be on any view/layout inside my custom layout
 
that 41 line whole is your custom view?
or this
<com.custom.widget.TwoColItemView
what about this
 
3:22 PM
everything inside <merge> is my cutsomview that is loaded and <TwoColItemView> is just the way I add it to xml layouts
4 mins ago, by WarrenFaith
right and the padding I want to change can be on any view/layout inside my custom layout
can be on any view inside my custom layout
 
i see
 
so again: moving android:padding to <CustomView> will NOT be helpful
 
try setting style="@style/AppTheme.Content.TwoColItem"
to parent LL
 
the LL inside <merge>?
 
yes
 
3:25 PM
and how should I change that for different places then?
 
set different themes
at view level
for different padding
 
I would prefer to keep themes for application level and not view level
 
well but you want to change for different views
 
Otherwise I will get the issue latest when I provide alternative themes for my application
 
ok can you just try what i said
set theme at LL
 
3:27 PM
for what reasons?
it will probably work
but is no usable solution for me
 
since that theme has ?/twoColItemPadding attribute
which you are using in LL
 
@Loki welcome to the room. Please read the rules before you participate: room-15.github.io
 
otherwise LL doesnt know what that attribute is
 
and I am not doing it as it is at most a temporary solution causing trouble in the future
 
but what you are trying wont work
how LL suppose to know what is twoColItemPadding
unless you set theme to it
LL cant possibly know that
 
3:30 PM
the theme is set on application level, so LL should know it, right?
 
but your theme is not set at application level
<style name="AppTheme.Content.TwoColItem">
<item name="twoColItemPadding">@dimen/grid_baseline_double</item>
</style>
this theme is not set at app level
have you set that theme at app level?
 
AppTheme is on application level
 
you mean this AppTheme.Content.TwoColItem is at app level
 
user457812
Woo, office move in one day. Wonder what's going to go horribly awry.
 
\oo
 
3:33 PM
oooooooooo/
 
why do I have to write everything twice?!
2 mins ago, by WarrenFaith
AppTheme is on application level
 
becoz AppTheme and AppTheme.Content.TwoColItem are different theme
 
When I write AppTheme I mean AppTheme and not AppTheme.Content.TwoColItem
"because"
 
does your app theme contain AppTheme.Content.TwoColItem
 
3:54 PM
I rebuild it with custom attributes and doing the shit like padding in class instead of the xml
 
oki
 
I do understand the thing with "not knowing the attribute because of theme etc"
I thought that I could access style stuff from the parent as well... some kind of "inherit" shit like css does... but seems I was wrong...
anyway, time to leave work
thanks for your help!
 
user457812
CSS is a giant bag of hatred for humanity. Best if the world doesn't repeat it.
 

« first day (2140 days earlier)      last day (2809 days later) »