Blurr border of component in Kotlin - android

I need to reproduce this.
I've made the code for the blue rectangle so far but I can't find a way to add that white blurr around the rectangle.
Does anyone know how to do it?
It's easy in all languages except Kotlin...

You need to make use of third party libraries. Such designs patterns are called neumorphisms . These can be achieved easily using these library :
Fornewid-Neumorphism
https://github.com/fornewid/neumorphism
Synth-CRED
https://github.com/CRED-CLUB/synth-android

Thank you all for your answers.
I've finally found Jetpack Compose (don't know why I didn't see it sooner) and I will be using that going forward.
It seems to be the better way of building an app's UI in Kotlin.

Related

How can I code Custom Bottom Navigator Bar in Flutter with painter

I want to code below design in my flutter app.But i don't know how to make middle icon overflow the container?
Thanks in Advance for help 😀😀
You might want to try a package if your Custom Clipper is struggling
Check out this package, there lot feature you can build for custom bottom bar in easy way.
https://pub.dev/packages/convex_bottom_bar
You can use a CustomClipper to create any shape you want. Clippers are what shapes such as RoundedRectangleBorder use, for a custom shape you'll have to create a custom clipper. There's lot's of articles that'll explain how they work in detail.
There's also some packages that do something similar. While I don't know one that does exactly what you're looking for, you might get a head start looking at their code.

Android timeline aka lines between two views

I am trying to implement a layout which is able to draw lines between views. Here is a sample picture of a library that does the job but seems outdated, just like other solutions I've found:
Any ideas or code samples?
As #SígvardrÓlavrsson pointed out, google material steppers represent the best solution here: https://material.io/guidelines/components/steppers.html

How would I draw this shape in Android using xml?

I'm porting one of my iOS apps over to Android (which I'm pretty new to), and I was wondering how I would draw this shape in Android using XML:
I want to recreate the shape (the white object) at the bottom of a tableView. The image attached is a screenshot of the bottom of a UITableView.
Any help would be greatly appreciated if you need any more info just let me know.
Thanks
EDIT:
Sorry I wasn't totally clear, I'm actually trying to recreate the slight arch at the bottom of the table. Since it's so slight, you may not be able to see it with a quick glance.
It seams to me that you want to "lift" your table up a little bit. If so, you have to implement this attribute to your tableView:
android:elevation="2dp"
or in java:
tableview.setElevation(2);
My opinion when reading this question: Stop trying to make your android apps look like iOS apps !!!
If you still want to do it.
Just have the background color for your activity to that color and set the layout_margin to either 2 or 4.
It should give you your desired effect.

How to get boxes with shadow on an Android application UI?

I'm going to develop a UI something like the image below, but I don't know how can I get boxes likes this with shadows behind ?
How can I achieve this ? I'm wondering if TableLayout may be a good tool for this but I don't know where to start and how to add shadows. Any helps appreciated.
Take a look at this blog spot, "Definitely the most helpful post on this subject, 10x." :
http://www.uifuel.com/android-creating-a-drop-shadow-in-xml-layout/
You can also use 9-patched images. Here you can find a good tutorial.

How can I suggest a feature to the Google Android team?

I have been looking for a easy way to add borders to custom made Views (Compounds or whatever), and the only answer I found was that there is no built-in support for that. Instead there are suggestions that you should add Views on top/below the View you want borders on and a bunch of others really messy ways to get borders.
Coming from the .NET-environment that is pretty brutal to have to do ugly workaround and "hacks" to get something as simple as borders.
Thus, I want to suggest that feature to the Android team. I'm not sure how they can have missed it, but it is surely missed =)
So, is there any official way to suggest a feature in the SDK/framework? I have looked around a bit, but can't comment on their blogs, no e-mail addresses as far as I can see.
Put your suggestion at google code.
You can easily create a Drawable subclass that draws whatever border you want and reports the padding for that border, and sets it as the background of the view you want to have drawn with a border. Or set it on a FrameLayout to have the border placed around the other views inside of the frame.
sorry, 8 years later. At the link below there's a Feedback section with a link to Feature Requests
https://source.android.com/source/community.html

Categories

Resources