**** BEGIN LOGGING AT Thu Dec 29 03:00:00 2016 Dec 29 04:41:05 I'm going to buy a new Macbook Pro 15-inch. Is it better to get a CTO one for android development because building on simulator is very slow? I use genymotion. Radeon Pro (GPU) 460 is about 4 times faster than 450. Dec 29 04:42:27 CTO ? Dec 29 04:43:48 g00s: Custom To Order. I'm considering to upgrade CPU and GPU. Dec 29 04:45:03 But the highest model of MacBook Pro 2016 15-inch might be just enough. Dec 29 04:46:15 can we make our own script in java and write that into build.gradle? Dec 29 04:46:27 CPU: 2.7GHz Intel Core i7, Memory: 16GB, GPU: Radeon Pro 455 (2GB memory) Dec 29 04:46:33 as build.gradle is using groovy language Dec 29 04:46:39 g00s: What do you think? Dec 29 04:46:47 tomoyuki28jp i would think thats fine Dec 29 04:46:50 so how it will interpret 2 languages at once? Dec 29 04:47:09 g00s: Thank you for your opinion! Dec 29 04:47:18 i dont think the GPU will matter much Dec 29 04:47:32 really, thanks for the info. Dec 29 04:47:36 gradle builds are mostly serial, so # cores doesn't matter much (don't think) Dec 29 04:47:54 if you have good ssd, 16G mem, yeah that should be good Dec 29 04:47:55 I see. Dec 29 04:48:05 lol ideally 32g now Dec 29 04:48:18 g00s: Thanks a lot!! Dec 29 04:48:20 do any of the MBP have nvidia gpus now ? Dec 29 04:48:30 apple is always switching things up Dec 29 04:49:10 I'm not sure. Dec 29 04:50:22 need something with cuda + >2G mem to use tensorflow Dec 29 04:51:15 g00s: I'm also planning to use TensorFlow on my Mac. Dec 29 04:51:22 tomoyuki28jp i wish they had a 15" in the affordable range w/o the new touch bar, or whatever that thing is. Dec 29 04:51:41 there is one "budget" 13" without it Dec 29 04:51:45 g00s: I agree with you. Dec 29 04:51:57 apple is always upselling like nuts, gets annoying Dec 29 04:52:18 at least the machines stay on when battery reaches 30% :D :D :D Dec 29 04:52:20 If I don't develop an iOS app, I will just use Linux. Dec 29 04:55:01 in Gradle Scripts>there are two build.gradle , in what way they differ from each other ? Dec 29 05:22:02 Hey all :) Dec 29 05:22:37 I'm trying to figure out how to include the StringUtils into my app. Dec 29 05:22:52 I don't see what the correct import is. Dec 29 05:30:48 baash05 A few notes: StringUtils is from Apache Commons. You'd be better off using the Android specific TextUtils, as it should handle most of your needs. Dec 29 05:31:00 In addition, why aren't you simply using auto imports? Dec 29 05:32:27 Cool.. I was basing it on http://stackoverflow.com/questions/8499698/trim-a-string-based-on-the-string-length Dec 29 05:32:56 But if TextUtils does the job, that's perfect Dec 29 05:34:19 I'm trying to ellips a bit of text Dec 29 05:46:15 I still have problems with proguard and I can not solve a week Dec 29 05:48:03 This is my problem: The explanation is very long so I put a pastebin : http://pastebin.com/rDi7Zpke Dec 29 06:16:00 irc question.. is there a way to hide the "has quit" and "has joined" notices in irc? Dec 29 06:17:00 hey guys. what's the best thing to use to scroll a screen? Dec 29 06:17:05 ScrollView? Dec 29 06:17:25 does it always have to be in a container, or can it be a property of the layout? Dec 29 06:25:33 baash05 depends on which client you use. Dec 29 06:25:58 AReverser depends on the number of child views you will have. Dec 29 06:26:26 Ah.. typically I use the webchat.freenode.net only because I'm too lazy to install a chat tool. Dec 29 06:27:31 well maybe 3-4 Dec 29 06:27:52 baash05 I rarely used the webclient. so can't say it has such a feature Dec 29 06:28:06 AReverser then a ScrollView is enough. Dec 29 06:28:18 for example the scroll thingy in one of the configuration screens Dec 29 06:28:47 Just sscrollview ten Dec 29 06:29:03 okay cool! apprecilove Dec 29 06:29:14 If it is a configuration/settings screen. then you might as well look into preference activity/fragment. Dec 29 06:29:21 which has inbuilt scroll Dec 29 06:29:39 s/lool/want to look Dec 29 06:48:29 is there a way to get the prefs from a class without passing around the activity/context? Dec 29 06:48:55 Sorry.. I mean while in a non-activity class. Dec 29 07:23:29 * raoul11 thepooshes thepoosh Dec 29 07:30:34 raoul11: everyone is dying Dec 29 07:37:22 raoul11: https://fb-s-a-a.akamaihd.net/h-ak-xlt1/v/t1.0-9/15698108_10155256066951840_3152655229104888981_n.jpg?oh=79cd66956c5323759d8daee5d3f38657&oe=58D7F44C&__gda__=1490448491_3d60297115e34bbfa4f99fac857289e7 Dec 29 07:37:58 \: Dec 29 07:38:50 did u go nd see it thepoosh ? Dec 29 07:39:01 yessir Dec 29 07:43:03 thepoosh on a 0-7 scale? Dec 29 07:47:02 somewhere around five Dec 29 07:47:12 5/7 Dec 29 07:47:27 yeah Dec 29 08:27:45 hello, im implementing fcm to my app, and i dont want to use small icon, if i don't specify a small icon by calling builder.setSmallIcon, it crashes with a no valid small icon exception Dec 29 08:27:49 can it be null ? Dec 29 08:42:14 sci-fic: you can set the icon yourself Dec 29 08:42:26 and every notification must have a small icon Dec 29 08:42:37 if not, it cannot be displayed Dec 29 08:42:53 :O why god Dec 29 08:51:35 thats the requirement Dec 29 08:51:50 if you really not want icon, you can try with full transparent image Dec 29 08:55:35 Ashiren: i see, and another weird thing, it handles my notification automatically if the app is in background. Dec 29 09:00:53 or a 1 pixle bitmap Dec 29 09:00:57 *pixel Dec 29 09:01:12 but that might get you kicked off the play store Dec 29 09:28:33 5/7 :) Dec 29 09:28:41 sci-fic, fcm is crap like that Dec 29 09:29:20 Ashiren are you a 9gagger? Dec 29 09:29:35 5/7 isnt 9gagging Dec 29 09:29:46 I found the post on 9gag Dec 29 09:29:56 probably another stolen post from imgur Dec 29 09:30:02 or facebook Dec 29 09:30:09 imgur is le source Dec 29 09:30:17 well, the original convo was on facebook Dec 29 09:30:35 yeah Dec 29 09:30:43 but 5/7 gone viral on the imgur/reddit posts Dec 29 09:30:52 ok Dec 29 09:30:57 lol Dec 29 09:31:11 9gagging is bad napster. Dec 29 09:31:22 no it is not raoul11 Dec 29 09:31:29 even worse than buzzfeeding Dec 29 09:31:48 we have an army of single introverts who uses banana for a scale Dec 29 09:32:16 again stolen scale from imgur /: Dec 29 09:32:33 okey :/ Dec 29 09:32:40 \: Dec 29 09:33:22 looks like you are an imgurer Dec 29 09:33:26 or what is it called Dec 29 09:34:11 imgurian Dec 29 09:34:11 napster: oh myyy Dec 29 09:34:25 thepoosh heyy! Dec 29 09:34:26 not really Dec 29 09:34:31 hi hi Dec 29 09:34:58 but 9gaggers must be tamed Dec 29 09:35:26 we are pretty tames Dec 29 09:35:27 I guess Dec 29 09:40:57 9gag... HK startup! Dec 29 09:44:33 yep Dec 29 09:44:51 If I don't use any of these sites, does it mean I am not in sync with contemporary world? Dec 29 09:45:01 I like the cult being formed around websites like 9gag, imgur, reddit etc... Dec 29 09:45:25 Melatonina I don't think so. Dec 29 09:53:48 dont forget 4chan Dec 29 09:55:11 I think we're all trying to forget 4chan Dec 29 09:55:30 hmm. Dec 29 10:01:40 Is there a way to get the command line output (specifically the cmake/ninja output) of an android project with cpp inside android studio ? Dec 29 12:33:16 Question on "drawres" are they still okay.. I mean design wise? Dec 29 12:33:25 drawers Dec 29 12:36:09 <_rm> you mean like DrawerLayout? Dec 29 12:36:45 Yeah.. is it still okay to use? Dec 29 12:36:54 Or is it design death? Dec 29 12:36:55 <_rm> sure, why not? Dec 29 12:37:21 Hi! How come here databinding works the first time when binding event variable, but not the second time at the bottom of the layout trying to bind two boolean values? Dec 29 12:37:22 <_rm> if you're worried, then just check what the platform owner does Dec 29 12:37:23 http://pastebin.com/acpaSX7m Dec 29 12:37:28 <_rm> and google uses drawers all over the place Dec 29 12:37:42 <_rm> so i don't think there's any problem with using drawers Dec 29 12:37:53 except that it's a horrible concept Dec 29 12:37:58 but sure, it's commonly used Dec 29 12:38:05 <_rm> that's a different matter entirely :) Dec 29 12:38:13 When rendering the second include layout, I get an exception where isFirst and isLast are null. Dec 29 12:38:17 <_rm> yeah, it sucks, because it usually hides navigation Dec 29 12:39:00 Now Zharf.. I'm a back end dev by trade (website api), but I was feeling that way too. Dec 29 12:39:14 Then I look at googles apps and they have them all over. Dec 29 12:39:21 yeah Dec 29 12:39:42 But what to replace them with.. I want to give the user info and let them do things. Dec 29 12:39:44 <_rm> a lot of folks came to this conclusion on ios regarding "hamburger menus" Dec 29 12:39:46 I don't have a better solution that doesn't clutter the UI though Dec 29 12:39:54 <_rm> a tab bar is fine Dec 29 12:39:57 no, it's not Dec 29 12:40:03 it takes too much space Dec 29 12:40:13 and when there's many items it's cumbersome Dec 29 12:40:29 <_rm> if there are too many items then there may be something else wrong with the app Dec 29 12:40:34 Yeah.. I have a full screen text app (just playing with some concepts) Dec 29 12:40:50 And the way to get the file stats is to press the hamburger. Dec 29 12:41:01 I have a device with a 3" 480x320 screen :p Dec 29 12:41:30 Yeah.. I've got a small screened dev device. Dec 29 12:41:37 <_rm> isn't that like the original iphone, almost? :) Dec 29 12:41:46 <_rm> it was like 3,5" Dec 29 12:41:48 no clue, never had an iphone Dec 29 12:41:58 My work mates always borrow it to see what a crappy phone will look like. Dec 29 12:42:02 <_rm> the resolution was 320x480 anyway Dec 29 12:42:12 34 AUD. :) Dec 29 12:42:25 Rather happy about that outlay of cash Dec 29 12:42:30 <_rm> our devices are mostly terrible tablets because we need to use what our users use Dec 29 12:42:41 we have a few small display devices at work for that specific reason Dec 29 12:42:59 Yeah.. I figure if it works on a crappy phone, it will blow you away on a fast one. Dec 29 12:43:24 unless the fast one is a samsung Dec 29 12:43:42 Ha.. Dec 29 12:44:09 <_rm> it's what frustrates me about android dev, since we have to bend over backwards to support old, slow, terrible low-memory devices, but that's what people use Dec 29 12:44:15 So.. without the DrawerLayout.. what would you suggest for file stats and "share" buttons. Dec 29 12:44:28 _rm, I can't stand the new devices, they're too large Dec 29 12:44:37 <_rm> Zharf: i don't disagree Dec 29 12:44:37 and they don't have hardware keyboards Dec 29 12:44:48 <_rm> well that i can live without :) Dec 29 12:44:51 I can't Dec 29 12:44:57 baash05: Share buttons should be in the action bar, meanwhile I don't see the problem with drawer layouts. Dec 29 12:45:09 <_rm> anyway to me the iphone 5 was the perfect form factor, although it does feel quite cramped now Dec 29 12:45:21 I don't have space for share button in the action bar. Dec 29 12:46:04 I got space for one button, and that's either a hamburger or something like it. Dec 29 12:46:34 What about the right hand side? Dec 29 12:48:02 Humm.. do people know to use the slide? I've had one in other apps and my analyitics showed it was almost never accessed. Dec 29 12:48:08 it really depends on what and how you plan to share, you can place a share component at some many places in fact, could be top right actionbar/toolbar, in a FAB, in a bottomsheet, in a bottom nav, in a button somewhere in your main layout, etc Dec 29 12:48:50 adq: There should be only one share button, which brings up all the methods on how you can share the particular data. Dec 29 12:48:55 Be it twitter, facebook, gmail, etc. Dec 29 12:49:16 i never mentionned more than one share component (not necessarily a button tho) Dec 29 12:49:25 I use the Drawer to display edit stats, and the share button. The edit stats are comprehensive. Dec 29 12:49:37 i just mentionned you have many possibilities where you can place this share component Dec 29 12:50:13 baash05, when you don't know, look how great apps are doing, and visit often the guidelines like https://material.io/guidelines/components/ Dec 29 12:50:39 at the end you have to choose because you're the one knowing the context Dec 29 12:51:04 Well the problem is there are no great apps doing this.. it's why I wanted to make it.. So I could use it myself. Dec 29 12:51:18 I got tired of looking for others to do it. Dec 29 12:51:37 you're doing anti design pattern stuff Dec 29 12:51:39 it's your choice Dec 29 12:51:45 And the way to get the file stats is to press the hamburger. << like that Dec 29 12:52:14 most ppl would expect an icon like "(i)" or something saying "information" or "details" Dec 29 12:52:22 adq How would you design it.. I don't like the hamburger either. Dec 29 12:52:22 ^ Dec 29 12:52:23 but not pressing the burger menu to get file stats Dec 29 12:52:38 cool. Dec 29 12:52:45 burger menu is meant to deploy/hide a drawer view Dec 29 12:52:52 but you're free to use it for something else ofc Dec 29 12:53:07 but it's not cool for regular android users Dec 29 12:53:49 I don't like it either.. Dec 29 12:53:57 it's not about what you like sometimes ;) Dec 29 12:54:05 but how things should be done, even if you don't like them Dec 29 12:54:10 I mean I don't like the burger. Dec 29 12:54:15 ah ok Dec 29 12:54:20 I agree it's an anti-pattern. Dec 29 12:54:38 Which is why I came on.. to see what others suggest. Dec 29 12:54:41 usually, file details aren't much important, and are not high prio action Dec 29 12:54:44 I like the (i) idea. Dec 29 12:54:47 it could even been burried under a long press Dec 29 12:54:55 They are the whole purpose of the app. Dec 29 12:55:10 oh then it must be in front at 1 action ahead Dec 29 12:55:15 I've found that most users don't know how to use long press Dec 29 12:55:26 agreed Zharf Dec 29 12:55:31 hence "burried" Dec 29 12:55:36 It's a text editor that tells you how often you've edited the file, and how fast you're writing to it. Dec 29 12:55:49 Your rate of change. It charts it. Dec 29 12:56:22 by how fast you're writing to it I mean how fast the user is "typing" Dec 29 12:56:54 I've always wondered why users don't figure these things out Dec 29 12:57:07 but I guess there's nothing that tells them how they work Dec 29 12:57:15 I write on the bus, and wanted know how many words I type in a given amount of time. Dec 29 12:57:55 I think the long press isn't intuitive to desktop people because they have no "like" event. Dec 29 12:58:09 So they don't envision it. Dec 29 12:59:20 are you saying these people are proficient desktop users? Dec 29 12:59:21 ha Dec 29 12:59:47 Okay.. so I'll leave the drawer but leave it for extras (like send email), but remove the hamburger icon. I'll add an (i) Dec 29 13:00:03 Zharf: Ha. Dec 29 13:00:44 As I said earlier.. my day job is all API and json, so my users are rather smart.. Dec 29 13:00:59 I say that incase any of my co-workers are here.. Love you :) Dec 29 13:09:25 hi guys, need help with a code.. Dec 29 13:10:25 state your problem, pastebin some code, wait for response patiently Dec 29 13:10:39 i am trying to call this https://github.com/2dwarfs/FallAnimationSample in my main_activity .. i am not sure how to go about it ? Dec 29 13:11:25 android-dev461, it literally has an example right there? Dec 29 13:11:52 also that code seems to be veeery old Dec 29 13:12:00 it's likely there's a better way to achieve this nowadays Dec 29 13:12:03 what do you want to do Dec 29 13:14:04 i can run the sample that is provided alone.. Dec 29 13:14:25 i am not able to use it to overlap my Last_page_activity which ia basically a "play again" button and exit.. where this runs in the background Dec 29 13:14:28 I didn't say that it wouldn't work, I said there's likely a better way to do it Dec 29 13:17:14 ok.. tried searching.. maybe i am not searching for the correct term.. to find the better way.. Dec 29 13:17:25 what are you trying to accomplish Dec 29 13:18:30 simple.. its a quiz .. on the results page where we have a playagain button.. this "fall animation" activity runs as well. Dec 29 13:19:12 you want to transition to another activity with the current animation falling out or something? Dec 29 13:19:36 s/animation/activity/ Dec 29 13:19:50 i am using the same code.. just changed the leaf.png to my kids heads :P Dec 29 13:20:34 no.. the activity "results_page" has this animation running as a background.. like a running screensaver.. Dec 29 13:20:43 not a transistion.. Dec 29 13:20:52 ok.. Dec 29 13:21:16 or in other terms.. i want this falling animation with a button that i can play again.. Dec 29 13:22:58 http://stackoverflow.com/questions/34985320/android-using-animation-to-make-an-object-fall-towards-the-ground-using-gravity maybe do something like this then? Dec 29 13:24:10 hello! when I try to compile a project with clang from the Ndk I get this error "no member named 'round' in namespace 'std', did you mean simply 'round'?", it does not happen when compiling with clang for linux desktop Dec 29 13:24:24 what could be wrong? Dec 29 13:25:08 thanks Zharf.. ill try that Dec 29 13:25:17 I have tried building both libc++ and stlport toolchains and used them, same error Dec 29 13:27:29 android-dev461, it depends on what kind of falling you want too... it's hard to guess what exactly you want and it's best for you to explore the animations APIs and learn how to use them :) - here's another one https://gist.github.com/cutiko/91ff8bc494db96676fd2 Dec 29 13:28:47 zzarr, http://stackoverflow.com/questions/22922961/c11-cmath-functions-not-in-std-namespace-for-android-ndk-w-gcc-4-8-or-clang-3 Dec 29 13:29:29 thanks Zharf Dec 29 13:31:00 My app crashes under the debugger (Studio, emulated device), but not otherwise. I can't see anything relevant in the debug log. The first error is "Expected event thread"... what should I look for to track it down? Dec 29 13:31:44 adq: I just read that bottom button thing Dec 29 13:35:23 Reminds me of a break through article I read.. http://designingmlearning.com/resources/ZenOfPalm.pdf Dec 29 14:19:27 Hello. In my program I need to download an apk and install it. Where should I be downloading the apk? Dec 29 14:20:59 david89: You need to download /another/ APK from within your program? Dec 29 14:21:04 Why do you need to do this? Dec 29 14:21:33 Lvl4Sword: yes I need to do that Dec 29 14:21:55 Lvl4Sword: because it is a feature Dec 29 14:22:12 david89: That doesn't tell me anything about your program Dec 29 14:22:49 Lvl4Sword: my program needs to download an apk and install it. my question is regarding where to save the downloaded apk Dec 29 14:23:10 the reasoning behind downloading and installing the apk is pretty unrelevant Dec 29 14:23:34 It's pretty relevant though. I've never seen /any/ program do that, nor have I ever made anything that's needed to do that. Dec 29 14:23:38 Are you making malware? Dec 29 14:23:43 lol Dec 29 14:24:40 Lvl4Sword: no I'm not making malware. I've never made a picture sharing app Dec 29 14:24:59 That's what you're making? A picture sharing app? Dec 29 14:24:59 Lvl4Sword: and you certanly have seen the play store.. Dec 29 14:25:14 Lvl4Sword: no I'm making an app that downloads and installs apks Dec 29 14:25:24 So like an app store? Dec 29 14:25:28 yes Dec 29 14:25:59 Ok, now we're getting somewhere. Are you asking where on the device to save them to, or are you asking from what site to download them from? Dec 29 14:26:44 i'm asking where to download them to.. Dec 29 14:27:07 is there a temporary storage api or something? Dec 29 14:27:07 Depends. Do you want to give the user the option to save the apk files? Dec 29 14:27:27 no i don;t care for that Dec 29 14:28:05 /data/local/tmp/ works Dec 29 14:29:22 You're aware users can just go to /data/app/ if their device is rooted and copy the apk off their device, right? Dec 29 14:30:01 yes I'm aware. I need a temporary unsecure location to write to. I have no interest in what happens to the apk after it gets installed Dec 29 14:30:51 then yeah, /data/local/tmp/ Dec 29 14:57:58 hi Zharf, i figured out how to use the existing code.. just added the button directly to the xml and works.. Dec 29 15:07:15 Hi guys! I have an options menu in the bar of my AppCompatActivity and I want the only item in there to show always as a button, I use app:showAsAction="always" for that but it's ignored no mater what. Dec 29 15:07:54 How do I show menu item as an icon in the toolbar so it never goes to the dropdown menu? Dec 29 15:29:06 hi guys, Dec 29 15:29:08 ImageView leafImageView = (ImageView) inflate.inflate(R.layout.ani_image_view, null); leafImageView.setImageDrawable(d); mRootLayout.addView(leafImageView); Dec 29 15:29:26 presently all images starts from center of screen Dec 29 15:29:28 what do i add to change this ? Dec 29 15:29:45 top center* Dec 29 15:42:37 Does https://android-developers.googleblog.com/2016/07/changes-to-trusted-certificate.html mean that I cannot use Charles Proxy to debug network requests of random apps on my phone now? Dec 29 15:43:31 With 7.1.1 the wifi advanced settings changed quite a bit, and I'm still trying to figure out how to get it setup with Charles Dec 29 15:43:39 Currently it's not authenticating properly Dec 29 15:43:55 Don't know why, just says "Authentication failed" Dec 29 15:48:12 s/failed/problem/ Dec 29 16:15:29 Hmm guess I have to go through https://developer.android.com/training/articles/security-config.html now? **** BEGIN LOGGING AT Thu Dec 29 16:58:02 2016 Dec 29 17:02:26 have you tried setLeft, setTop Dec 29 17:03:41 dont have any set left .. set top Dec 29 17:04:14 ani_image_view is as follows > Dec 29 17:04:14 android:id="@+id/aniImageView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:scaleType="fitCenter" Dec 29 17:06:02 why have android:layout_centerHorizontal="true" Dec 29 17:06:10 also, paste your code to pastebin.com, not here Dec 29 17:07:29 sorry.. Dec 29 17:07:42 removed android:layout_centerHorizontal="true".. it dint help Dec 29 17:10:11 well i havent used much of setX setY properties. if i wanted to move something i just use its layoutParams and set the margin Dec 29 17:10:18 what is the root layout? Dec 29 17:10:30 maybe try to change to LinearLayout or FrameLayout Dec 29 17:14:13 LinearLayout doesnt work for this animation Dec 29 17:39:35 Does Android Studio provide any tools for working with SQLite databases in apps? **** BEGIN LOGGING AT Thu Dec 29 18:02:32 2016 Dec 29 18:24:07 totokaka: yes. Right click on the Android pane, "New", "Java class", then extend SQLiteOpenHelper and keep going on. Dec 29 18:24:24 totokaka: in other words: no. Dec 29 18:25:23 totokaka: but you can pull a database file and open it on your desktop, edit it and push it on the device Dec 29 18:25:46 totokaka: and you can run sqlite3 from the adb shell and run arbitrary queries on your database Dec 29 18:26:14 totokaka: can I ask you the meaning of your nick? Dec 29 18:53:10 Hey peeps, what the heck do the docs mean by this "Set whether home should be displayed as an "up" affordance." Dec 29 18:53:17 Context: https://developer.android.com/reference/android/support/v7/app/ActionBar.html setDisplayHomeAsUpEnabled Dec 29 18:53:26 also, what is home that they are referencing? Dec 29 18:53:47 the icon at the left of the actionbar Dec 29 18:54:44 it can work as as home button which teleports you the home activity no matter how many sub-activities you created Dec 29 18:55:04 ahh, I see Dec 29 18:55:36 I gave you the light Dec 29 18:56:16 atbe: how are you? Dec 29 18:56:26 you always do Melatonina Dec 29 18:56:52 I'm doing pretty well, just cracking away at the beast that is android. Dec 29 18:57:09 Melatonina and you? Dec 29 18:58:15 I'm ok. Thanks. My application is taking shape Dec 29 18:58:49 Where are you from? Dec 29 19:00:01 Italy Dec 29 19:01:09 Trieste? Dec 29 19:08:36 atbe: the failed attempt to track my location is quite rude Dec 29 19:09:30 Melatonina :/ my apologies. I have a bad habit of running a traceroute on ip's because I find it fascinating. No harm intended Dec 29 19:10:25 Melatonina, Thanks for the answer. Sorry for late reply. My nick contains elements from my first and middle names, each repeated twice. Dec 29 19:10:49 totokaka: thanks for satisfying my curiosity Dec 29 19:11:03 np Dec 29 19:12:14 Another question: Is there anything else I have to do besides adding nestedScrollingEnabled true on the inner recyclerview to enable nested scrolling on a recyclerview inside a recyclerview? Dec 29 19:14:02 no idea about that, sorry Dec 29 19:14:18 I can't seem to get it to work. The inner RecyclerView is within a few LinearLayouts and and FrameLayouts within a CardView, that is defined in its own layout file with a layout tag - for data binding, if that matters. Dec 29 19:15:01 totokaka you might have a view which is above the targeted one intercepting the click and not allowing other listeners to act upon the even. Dec 29 19:15:20 Melatonina: why are you still here? isn't after hours? Dec 29 19:15:49 atbe, sounds plausible... Dec 29 19:16:15 I would run a debug session on the topmost view and follow the event from there Dec 29 19:16:19 thepoosh: I work for myself, so to speak Dec 29 19:16:36 sux Dec 29 19:16:42 freelance was never my thing Dec 29 19:17:08 atbe, Could you explain some more about that? debug session as in running the debug mode from android-studio? Dec 29 19:17:40 totokaka yeah, and set some breakpoints on the onScroll listeners on your topmost view Dec 29 19:18:19 I don't have any custom views, though. Should I add onScroll listeners, just to see where the event chain stops? Dec 29 19:18:58 sure, you said you have a recycler in a recycler Dec 29 19:19:31 the recycler has an adapter which brings up your views, correct? Dec 29 19:19:36 Sure Dec 29 19:20:29 I really don't understand what you mean. Dec 29 19:21:20 I just inflate another layout when bringing up views Dec 29 19:22:06 I'm just saying you need to find which view on your activity is capturing the event Dec 29 19:22:20 idk where that would be in your hierarchy exactly unless I see the code Dec 29 19:22:28 Here's the relevant part of my view hierarchy: Anyways, I'll just add scroll listeners to each view and see, right? Dec 29 19:22:53 yes, that sounds good Dec 29 19:23:59 totokaka I'll be completely honest, not so sure how to read that hierarchy outline, is that a standard somewhere I can observe? Dec 29 19:25:14 No, I just came up with something to give the basics. It just shows how its nested. The last RecyclerView is within a FrameLayout, which is within a LinearLayout.... The | just signalizes that the layout beneath is an inflated layout. Dec 29 19:26:18 ah I see now, interesting approach, thanks! Dec 29 19:27:07 here is a page worth looking at totokaka https://developer.android.com/guide/topics/ui/ui-events.html Dec 29 19:29:41 whats the best place to look at possible app:layout_behaviour values? Dec 29 19:31:38 atbe: check the source code Dec 29 19:31:47 ok, thanks Melatonina Dec 29 19:31:57 atbe: "Go to" "Declaration" Dec 29 19:32:10 atbe: it has always worked for me Dec 29 19:32:21 :O :O didn't know I could do that on layout elements! Awesome Melatonina Dec 29 19:32:25 Ctrl + Q Dec 29 19:32:33 Command + B for me Dec 29 19:32:47 Ctrl + Q is javadoc, not go to declaration Dec 29 19:33:05 I like it better for just seeing possible values for an xml property Dec 29 19:33:35 right, javadoc have much information too often Dec 29 19:34:12 totokaka hmm, might be diff on mac Dec 29 19:34:18 First two lines for any xml attribute is something like this: Formats: dimension, enum \n Values: fill_parent, match_parent, wrap_content Dec 29 19:34:46 Any way to get an id name from an id int? Dec 29 19:35:32 atbe, I did this (excuse the language): https://dpaste.de/eJ68 Dec 29 19:35:49 It seems only one view recieves the event when I try to scroll Dec 29 19:36:24 which view is that? Dec 29 19:36:34 android.support.v7.widget.RecyclerView 2131558527 Dec 29 19:36:42 Any way to do reverse id lookup? Dec 29 19:38:49 getResources().getResourceEntryName(int resid); Dec 29 19:39:13 The inner recycler recieves the event Dec 29 19:39:45 is that above or below the intended resource? Dec 29 19:40:30 if it is below, the view you intended to intercept did not act upon the event Dec 29 19:40:31 That is the recycler that doesn't scroll Dec 29 19:40:58 if it is above, it has not gotten to the view yet and the recycler has prematurely marked the event as handled Dec 29 19:41:11 To recap: I have a recyclerview nested deep within another recycler view. Even with nestedScrollingEnabled, the inner recyclerview won't scroll, however, it does recieve the onTouch event Dec 29 19:42:12 which recycler received the event? inner or outter? or both? Dec 29 19:42:31 Only tested the inner, but it recieved it, however only the outer scrolls Dec 29 19:43:17 The outer recieves it too Dec 29 19:44:03 which one receives it first? And the code you pasted, was that for the inner or outter? You need to return true or false to indicate whether it was handled Dec 29 19:44:25 Inner recieves first. Dec 29 19:45:30 atbe, this is from the adapter for the outer recyclerview: https://dpaste.de/B7D6 Dec 29 19:45:51 I don't use the listeners for anything else besides checking whether the views recieves the events Dec 29 19:47:07 did you do anything to the layout manager for your recyclers? Dec 29 19:47:55 Its a StaggeredGridLayoutManager Dec 29 19:49:36 could you show me the initialization of that? Dec 29 19:50:48 Two sec Dec 29 19:51:16 https://dpaste.de/jQK4 Dec 29 19:51:32 That TouchHelper Callback is basically empty Dec 29 19:57:08 hmm, and so the outter recycler is moving ha? Dec 29 19:57:58 Does the NestedScrollView have a floatingactionbutton by default? It's nowhere in my xml yet I can't find where it's at Dec 29 19:58:00 Yeah Dec 29 19:58:59 ah, found it Dec 29 19:59:41 totokaka you want a ScrollThroughRecyclerView Dec 29 19:59:46 for the outter Dec 29 20:00:04 or the inner, I think Dec 29 20:00:22 THanks, I'll look into it in a bit Dec 29 20:00:35 sure thing Dec 29 20:16:35 atbe, That isn't a standard View? Dec 29 20:19:06 no, sorry, http://stackoverflow.com/questions/32291057/outer-recyclerview-not-receiving-scroll-events-of-inner-recyclerview Dec 29 21:31:15 Once you have published an alpha there is noone that can take the package name right? Dec 29 21:43:00 plantedseed that should be correct Dec 29 21:43:15 "Twitter’s Jack Dorsey is ‘thinking a lot about’ an edit-tweet button" ... so much innovation in 2016 ! Dec 29 21:49:48 Twitter employs thousands of people Dec 29 21:49:57 All I want is a simple timeline feed Dec 29 21:50:13 Show me what the people I subscribe to said in chronological order without any hassle Dec 29 21:50:30 Also, let me publicly follow someone but privately ignore them like Facebook allows Dec 29 21:51:54 I have a sliding fragment view with a FragmentPagerAdapter Dec 29 21:52:04 Ooh, google car dealer survey gave $1 Dec 29 21:52:22 (opinion rewards) Dec 29 21:52:27 Is there a good callback to listen to to know when a fragment is no longer the "active" fragment? Dec 29 21:52:52 what would that even mean Dec 29 21:52:57 It doesn't get destroyed until you scroll 2 away Dec 29 21:53:07 in viewpager? Dec 29 21:53:16 Ashiren: yes Dec 29 21:53:36 ViewPager.onPageChangeListener Dec 29 21:54:10 hey, how I can I keep two fragments alive that I'm constantly switching between from the same activity? Dec 29 21:54:15 does it make sense to do that? Dec 29 21:54:35 normally 3 fragments are loaded into memory, 1 active and left and right and all of their onResume is invoked at (almost) the same time Dec 29 21:54:49 fazjaxton: ^ Dec 29 21:55:24 Ashiren: thanks ... so does the application have to tell the fragment its position? Dec 29 21:55:35 I mean "activity", not application Dec 29 21:56:23 Hello guys Dec 29 21:56:52 well the fragment in viewpager gets destroyed but you dont know directly when, the onPageChangeListener will tell you when its likely to be destroyed Dec 29 21:58:52 I guess what I am asking is: should the activity be the listener and call a function on the fragment to notify it that it is no longer active? Or should the fragment be the listener (i.e. implement "onPageSelected") and somehow get its "position" from the activity? Dec 29 22:00:12 i would put that into fragment Dec 29 22:00:50 if you want to add method to fragment like onVisibleChanged() Dec 29 22:01:39 Ashiren: OK, thank you. I think I like the fragment being the listener too. Dec 29 22:04:58 If you search google play for a game name and it doesnt come up on top that means there is no game named like that? is the search service that accurate? like if you search for "word blah" and instead "word search" is on top. Dec 29 22:05:38 no, play search sucks Dec 29 22:05:50 exact hit could be #45432 Dec 29 22:06:15 its ranking by other heuristics Dec 29 22:06:21 gah, the design support library is so buggy :( Dec 29 22:06:37 yeah Dec 29 22:06:41 my fabs are vanishing left and right, lol Dec 29 22:06:57 fab sucks too Dec 29 22:07:22 Is there a way to color a substring (or multiple substrings) in a TextView that's compatible with older Android versions (14+)? Html.fromHtml works great, but only seems to work with recent Android versions. Dec 29 22:07:23 theres one bug I opened an issue with the android team for already, where you can't call "hide()" on a fab if it's anchored to the toolbar Dec 29 22:07:30 just minor things like that... ugh Dec 29 22:08:05 i also hate how fabs can't easily be apart of fragments and have to live at teh activity level Dec 29 22:10:37 Checking StackOverflow, I see posts dating back to 2011 that say that Html.fromHtml works... Yet I am seeing the literal html string e.g. some text rather than red text Dec 29 22:13:40 SilentByte: it does work, it just doesn't support all html tags Dec 29 22:13:42 join #ios-dev Dec 29 22:13:51 for example I don't think it supports list elements Dec 29 22:20:16 Disgregard, I am an idiot. I was only launching my updates on one phone. No wonder it didn't work on the other two. :p Dec 29 22:20:20 boomber No they dont Dec 29 22:20:39 They are just ImageButtons Dec 29 22:26:42 I've been advertising a lot over Christmas Dec 29 22:26:49 and my rankings for kitten wallpapers has risen Dec 29 22:29:59 orbyt_: you mean for fabs being a part of fragments? Dec 29 22:30:12 I mean sure I could use them there, but then I lose the ability to anchor them to the app bar without some really hacky code Dec 29 22:30:31 they're designed to be a part of activities, and that limitation makes it really hard to use them for fragments for reasons like that above unfortunately Dec 29 22:31:42 also if they're part of a fragment you lose the direct child to coordinatorlayout relationship, so they don't respond to snackbars appearing Dec 29 22:31:46 its quite annoying :/ Dec 29 22:32:57 Again, they are just ImageButtons, whether you use them inside an Activity or Fragment makes no difference. Is your anchoring elements and thus using a CoordinatorLayout, then obviously it needs to be a direct child, but that is not an issue with the FloatingActionButton Dec 29 22:51:51 orbyt_: i suppose, I guess the issues I'm having are more related to coordinatorlayouts then Dec 29 22:56:05 boomber yeah, i always thought that was a big design flaw with CL Dec 29 22:56:16 it has to be that way because of the layout_ params Dec 29 22:56:35 but its a case where the physical view hierarchy is != conceptual view hierarchy Dec 29 22:56:59 yeah, I really need to learn more about how the view hierarchy actually works Dec 29 22:57:13 like I've used views a bunch but never really understand how they work Dec 29 23:17:27 if I have 2 fragments in one activity, one a recyclerview, and another a page to add details for adding a new item to the list Dec 29 23:17:54 should I, in the second fragment where I create a new item, create a new instance of the list fragment? or use some other way to add the new item to the list and simply pop the current fragment off the stack? Dec 29 23:18:15 sorry if that doesn't make much sense, it's a bit hard to explain :S Dec 29 23:19:56 hello does anyone have a simple Github example that shows how to handle errors in retrofit calls Dec 29 23:21:17 things like respone 200, response 400 etc? Dec 29 23:22:19 boomber: Hmm, it seems a little strange to add another version of the list fragment. Dec 29 23:22:37 What if they add another item? Then you end up with five fragments in the stack. Dec 29 23:22:43 Then seven, and so on. Dec 29 23:22:49 right, and those are some of the issues I've seen Dec 29 23:23:02 and then after messing with the addToBackStack(null) calls created overlapping fragments :S Dec 29 23:23:17 what's the best way to handle this though, because can't the list fragment be garbage collected due to memory? Dec 29 23:23:27 or am I misunderstanding that part? Dec 29 23:24:06 No, not exactly. Though Views are not retained. They are recreated every time you perform a transaction. Dec 29 23:25:00 The activity remembers everything about the stack of fragments if your app is running in the background and your process is killed for memory reasons. Dec 29 23:25:21 The stack will still be there when you come back. Dec 29 23:27:22 ah, so if I'm switching between the two fragments how do I easily communicate that information between the two? Dec 29 23:27:37 i.e. the CreateListItemFragment finishes and is trying to send that list item information to the ListFragment Dec 29 23:28:11 I'm assuming the CreateListItemFragment will call a callback to the activity, and then what should the activity do? Dec 29 23:28:13 The usual way is to call back to the Activity, via the "listener" pattern. Dec 29 23:28:22 right Dec 29 23:28:45 from there I've been creating a new ListFragment with fragmentTransaction, but it seems like there should be a better alternative Dec 29 23:29:27 I think it's FragmentManager.popBackStack, but it's been a long time since I've seriously used Fragments. Dec 29 23:29:42 ah ok, that makes sense Dec 29 23:29:52 and then the activity can make a callback to the ListFragment to tell it to add the new list item Dec 29 23:29:56 or just reread from the DB I suppose Dec 29 23:30:05 Yeah. Dec 29 23:30:20 awesome, that helps a bunch thanks :) Dec 29 23:31:18 "Amazon floats the idea of drone-dropping airships" Dec 29 23:31:39 "proposes using airships as "airborne fulfillment centers" (AFCs) that would essentially drop cargo-carrying drones toward the buildings below." Dec 29 23:31:42 lol thats crazy Dec 29 23:31:53 if i was more crazy i could apply for patents too Dec 29 23:32:14 it'll be like that scene from dumbo Dec 29 23:32:18 with the pelicans Dec 29 23:57:25 I'd love to see that. Dec 30 02:12:08 Ologn great article from today https://www.theatlantic.com/technology/archive/2016/12/post-vr-sadness/511232/?single_page=true **** ENDING LOGGING AT Fri Dec 30 03:00:00 2016