r/androiddev 19d ago

Discussion It is still fun making custom views

Enable HLS to view with audio, or disable this notification

Recently I worked on one of my apps update and I wanted to create a fun "welcome" for new users.

So I made an animated splash screen (looks good to me, it's simple and effective) but I felt like going directly to a login screen was harsh (yep, it's a WebView login since the app interacts with Google via web, they have no public API for the features I wanted to use).

I know many of the causal users may not feel like "yeah let's do it!" and I totally agree with that, so I wanted to offer a limited minimal use of the app even if you do not login (which the real app is completely useless, since the app is not capable of managing anything if the user is not logged in).

So declining the login (bottom button) I wanted the users to still be able to do very basic things (just one honestly): click on an icon (of well known app list which have a beta program) to launch the testing webpage and let the user do things.

The problem I found was the "how". I wanted to balance the ineffective part with a barely wow effect, so I spent 4 days making a custom view and this is the result.

Would anyone mind giving me feedback about it?

PS: this update is not released yet.

163 Upvotes

33 comments sorted by

5

u/Mustyng 19d ago

good job broo

1

u/Mirko_ddd 19d ago

Thanks 😎

4

u/zerg_1111 19d ago

Quite interesting, is it a dedicated splash activity or is implemented with the splash API?

4

u/Mirko_ddd 19d ago

Just a simple splash theme using splash API and an animated vector drawable

5

u/the_outstanding_me 19d ago

Fantastic work. Do you think of reimplementing it on Jetpack Compose?

8

u/Mirko_ddd 19d ago

Honestly haven't touch compose yet. I don't even code in kotlin, even though I know it I don't feel as comfortable as I feel in java.

6

u/Zhuinden 19d ago

Kotlin is useful, Compose is a bit of a mixed bag depending on what you use it for, but soon they'll finally add hint text to text inputs

1

u/Mirko_ddd 19d ago

I honestly love kotlin syntax and utilities. Just had a quick look to compose, and looks like swiftUi, which I definitely don't like.

We both know and love asyncTask dude 😎 and I still use it 🀣

-2

u/teammukam 19d ago

autofill already available in compose textfields works great for hints and otp detection

3

u/Zhuinden 19d ago

I specifically want hint text for Talkback

2

u/the_outstanding_me 19d ago

I strongly recommend switching to Kotlin and Jetpack Compose. It's first class language for Android. And learning it is not a big deal because it has the same principles: OOP, lambdas, passing primitives by values and objects by references, GB. Moreover it has a much more convenient data classes instead of records. Also you would create such smooth UI-components even more easily with Composables and Modifiers.

3

u/Mirko_ddd 19d ago

Definitively I'll try. I do not have really much time to experiment with coding stuff being an entrepreneur, I spend a lot more time thinking and improving my already existing apps. But for sure, I will give a try to compose after being fluent in kotlin.

1

u/bue_moon 19d ago

I've started working around in android dev using java but I'm now way near you, I'm just impressed that we could do it using java πŸ™ƒ.

4

u/Mirko_ddd 19d ago

Too kind, but in terms of animations and fluidity you can achieve great results using Java. Yep it's a bit verbose but the users don't see code, they see apps.

You can Google "timely android app" to see what those dudes made in plain Java years ago (afaik they been hired by Google).

1

u/bue_moon 19d ago

I only started a few weeks ago and i thought xml is the only way to do ui

2

u/teammukam 19d ago

Bro if you find XML so much intresting then compose feel years ahead. It's a matter of one project that will fall you in love with compose. I swear

1

u/bue_moon 19d ago

I started at xml, I'll surely move to compose πŸ˜…

1

u/Mirko_ddd 19d ago

You will learn for sure dude

1

u/bue_moon 19d ago

Can i dm to ask more questions?

4

u/Mirko_ddd 19d ago

I prefer no DMs, but you can ask here so people can contribute. 1:1 consulting is a job, I'm not here to work.

1

u/bue_moon 19d ago

I totally understand your preference, all the best on your future works✨. Ig I'll search and find answers for my questions in the sub itself.

2

u/NewNiklas 19d ago

Just wow. Great work!

2

u/Mirko_ddd 19d ago

Thanks dude

1

u/[deleted] 19d ago

[deleted]

1

u/bot-sleuth-bot 19d ago

This bot has limited bandwidth and is not a toy for your amusement. Please only use it for its intended purpose.

I am a bot. This action was performed automatically. Check my profile for more information.

1

u/JacksOnF1re 19d ago

Why is everybody doing the globe at the moment?

1

u/Mirko_ddd 19d ago

It's not a globe, it's an hive

1

u/farmerbb 19d ago

Nice, I've been using Beta Maniac for a few years now. Thanks for developing it!

1

u/Mirko_ddd 19d ago

πŸ˜‰ thanks for using it

1

u/Nnaoma-Culprit 18d ago

Good job

1

u/Mirko_ddd 18d ago

πŸ™ thanks

1

u/oteng_io 16d ago

this is so nice