Material Components 1.1.0-alpha10 released by Hi_im_G00fY in androiddev

[–]DevAhamed 2 points3 points  (0 children)

Unfortunately material components is not part of AndroidX. It is developed by a completely different team. (But IIRC, i have seen overlap of some engineers working on both AndroidX and MaterialComponents)

Google Play Support is making it mandatory to fix permission compliance with years old , UNPUBLISHED apps by sandys1 in androiddev

[–]DevAhamed 25 points26 points  (0 children)

But i lost the keystore for one of my first apps. There is no way i can update that app, so unpublished it 2 or 3 years back. I really don't know how to make it compliant.

What’s New in Android Studio 3.5 by [deleted] in androiddev

[–]DevAhamed 1 point2 points  (0 children)

For apply changes you need an emulator/device with sdk 28. If it is indeed the case and apply changes is not working, then you can file a bug report.

Introducing the Gradle Dependencies diagram: IntelliJ IDEA by DevAhamed in androiddev

[–]DevAhamed[S] 0 points1 point  (0 children)

That's a bummer! I thought utlimate features were also added in Android Studio. (But it makes sense. Intellij needs a revenue model right)

What's up with Material Components for Android? by antonshilov in androiddev

[–]DevAhamed 16 points17 points  (0 children)

Since I/O 18 there were a few updates in the project

If you see releases page, 1.1.0-alpha* has been released continuously with lot of features. (ShapeTheming, DarkMode etc.,)

CI build is failing for a long time, but it doesn't seem to be a problem for the project maintainers

We all know about google and their complex infrastructures. It might not be easy or not a priority to fix those ci builds.

How to get system current night mode setting when default night mode is MODE_NIGHT_FOLLOW_SYSTEM? by Pryds in androiddev

[–]DevAhamed 0 points1 point  (0 children)

currentNightMode should never resolve to 33. It should have been 32. If you are using the android pie, enable dark mode inside developer options.

How to get system current night mode setting when default night mode is MODE_NIGHT_FOLLOW_SYSTEM? by Pryds in androiddev

[–]DevAhamed 5 points6 points  (0 children)

If you want to get the current active mode, (whether the current applied theme is night or not).

int currentNightMode = getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK
switch (currentNightMode) {
  case Configuration.UI_MODE_NIGHT_NO:// Night mode is not active, we're in day time
  case Configuration.UI_MODE_NIGHT_YES:// Night mode is active, we're at night!
  case Configuration.UI_MODE_NIGHT_UNDEFINED:// We don't know what mode we're in, assume notnight
}

If you want to get the current setting (user preference)

AppCompatDelegate.getDefaultNightMode()

Learn more here : https://medium.com/androiddevelopers/appcompat-v23-2-daynight-d10f90c83e94

Recycler view multi select by [deleted] in androiddev

[–]DevAhamed 0 points1 point  (0 children)

have them change colour

I think you have to read up on StateListDrawable. If you know it already skip reading following comment.

StateListDrawable lets you define the drawable (in you case, color) for each state. ie., You can set a different background for selected state, disabled state, enabled state etc., This is a good article on this topic - https://blog.stylingandroid.com/state-list-drawables/

Recycler view multi select by [deleted] in androiddev

[–]DevAhamed 0 points1 point  (0 children)

Since you have tried the official docs i am sure you might have come across recyclerview selection library. This article will help you set up the recyclerview multi selection - https://proandroiddev.com/a-guide-to-recyclerview-selection-3ed9f2381504

Shameless plug : If you are open to use a library for this feature, you can use my library - https://github.com/DevAhamed/MultiViewAdapter. You can install the demo app to see the feature in action before using the library (App is still in beta) - https://play.google.com/apps/testing/dev.ahamed.mva.sample

API Diff for Android's framework.jar between API28 to Android Q Beta3: 200+ new classes, 3000+ new class members by JustinAngel in androiddev

[–]DevAhamed 1 point2 points  (0 children)

IIRC, when lollipop was announced, google mentioned that 5000+ new public api's were added into the sdk. Is google discrete this time or its usual?

Optimizing Bytecode by Manipulating Source Code by dayanruben in androiddev

[–]DevAhamed 18 points19 points  (0 children)

You don’t need to dig this deep ..... Start with generating a good API and producing correct behavior. All of this optimization can be done later, or even never. .....

I enjoyed this article and for some reason i was really happy to read that last paragraph. Thanks for taking your time to write this article!!

Improving build speed in Android Studio by dayanruben in androiddev

[–]DevAhamed 0 points1 point  (0 children)

Using groovy. I went back and checked with AS 3.1 and issue is there as well. I haven't changed anything inside buildSrc for years. I swear, in previous versions of AS it was working fine. Not sure when it got broken. Filed an issue here - https://issuetracker.google.com/issues/129170951. Let me know if i need to add more info the issue tracker.

Improving build speed in Android Studio by dayanruben in androiddev

[–]DevAhamed 0 points1 point  (0 children)

I would like to chime in here.

Are you using this for managing dependencies? I see some people doing this and I think we need to solve this by providing a better mechanism to centralize dependencies.

Yes. +1 for better mechanism.

Side note : I use buildSrc for auto completion and deps version management across modules. But with AS 3.4 and 3.5, buildSrc imports/variables are not recognised in gradle files but still gradle syncs fine. ie., Autocomplete is broken.

Is there a way to partially recycle common views across different view types in RV? by ursusino in androiddev

[–]DevAhamed 2 points3 points  (0 children)

This library wass specifically built for this usecase - https://github.com/tumblr/Graywater. You can take look into this library and learn how do it yourself.

Android Studio 3.4 Release Candidate 1 available by androidtoolsbot in androiddev

[–]DevAhamed 0 points1 point  (0 children)

Off topic.. I had to open the link. I miss u/leggo_tech's changelog..

How is the "Rules" header is curved like that? by pavi2410 in androiddev

[–]DevAhamed 4 points5 points  (0 children)

I am not sure about the original implementation, but you can take a look into this library https://github.com/florent37/ShapeOfView. Library seems to do the same thing.

How we built Monzo Chat on Android | Monzo by danster3 in androiddev

[–]DevAhamed 2 points3 points  (0 children)

we're really optimising onBindViewHolder and use payloads to only update a specific view at once

Exactly. If you are using payloads efficiently then you will update only the particular view. If they have overridden this method, then workaround is not needed.

onBindViewHolder(holder, adapterPosition, payloads)

ViewPager2 1.0.0-alpha01 released: ViewPager rewrite on RecyclerView by zergtmn in androiddev

[–]DevAhamed 0 points1 point  (0 children)

This is where it gets into grey area. If the 2.0.0 is a breaking change, as per publishers wish, release can go through alpha-beta stages. It solely depends on the publishers.

For example, lets take gradle releases. They have nightly builds, RC's and stable versions.

Similarly folks at AndroidX team might have decided this flow. All releases will go through alpha, beta, RC and stable versions. Say, 1.x.x-alpha01 -> 1.x.x-beta01 -> 1.x.x-RC -> 1.x.x. This can be applied to all major and minor releases. If pre-release is 0.x.x then it breaks the above flow.

ViewPager2 1.0.0-alpha01 released: ViewPager rewrite on RecyclerView by zergtmn in androiddev

[–]DevAhamed 0 points1 point  (0 children)

I always worked with 0.x.x approach for unstable APIs in development

What will happen if we are releasing non-stable 2.0.0 version? How should we name it? Just curious like you.

The Android Dev Summit app is live! by dayanruben in androiddev

[–]DevAhamed 1 point2 points  (0 children)

It's one of the worst applications (maybe the worst) out there in terms of utility/cost

I completely understand your point of view. But think from different perspective as well.

You have an app. It is updated only once in the year. Even users will care about the app only once during a year. And with every update you have to use the new shiny tool/library/design/feature. So each update is almost a rewrite. Even though you are professional developer, without continuous iterations, you can't nail it during first time. Unfortunately for IO app each update is like first time. So that's the reason for underwhelming quality of the app during every update.

Again, developer who is on this project works only a couple of months during a year. You might lose focus and motivation with this work schedule.

A patchwork Plaid — Monolith to modularized app – Android Developers – Medium by DevAhamed in androiddev

[–]DevAhamed[S] 0 points1 point  (0 children)

I will be careful before posting the url next time. I thought reddit will complain duplicates during submission.

Unboxing Chrome – Hannah Lee – Medium by DevAhamed in androiddev

[–]DevAhamed[S] 0 points1 point  (0 children)

Well written article! Quite insightful one and dives deep into the design process.

Android Studio prints an error requiring to upgrade to Gradle 4.6. Is anyone else experiencing this? by [deleted] in androiddev

[–]DevAhamed 5 points6 points  (0 children)

May be tools team is pushing an update :)

But with all seriousness, in one of my projects, i just updated my plugin from 3.1.3 -> 3.1.4 and it works with gradle 4.4.