Android timeline aka lines between two views - android

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

Related

Blurr border of component in Kotlin

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.

Android PagerTabStrip - Remove spacing

Has anyone managed to bring the items in a V4 PagerTabStrip together, more like Google Play Store?
http://developer.android.com/reference/android/support/v4/view/PagerTabStrip.html
This is what I want:
This is what i get (the space between segments):
These images are not mine but its just to explain what I mean.
Additionally the underline for the Strip, is it possible to have a different color then the selected item underline (v4).
Thanks
Edit: For all those asking if I ever found a solution, I never did. Sorry :-(
I'm also searching the answers to this questions and it seems not exist the api to do such thing in android-support-v4. But as an alternative, we can try this https://github.com/xiaopansky/PagerSlidingTabStrip . Not a perfect but time-saving solution.
So it's been a while on this topic but I believe there are people still searching for this answer so I wanted to put here what I've found.
https://developer.android.com/samples/SlidingTabsBasic/src/com.example.android.common/view/SlidingTabStrip.html
On Android's developer website, they have sample code on how to accomplish it yourself. I personally haven't tested it yet so not sure if it supports that exact look and feel or whether it supports customization but at least the code is there for yourself and you can play around with it. I'd really wish that v4 PagerTitleStrip and PagerTabStrip supported the above features by default.
The default PagerTitleStrip has only 3 textviews initialized. So if You wish to remove spacing create a custom PagerTitleStrip class and add more textviews so that space is reduced.

sliding layout like google maps v7

Im trying to get the same result as new google maps, when you "tap" on any "marker" you get a little layout in bottom of the screen, all the info about the srteet view and other details shown there, when you hold and move your finger to top of the screen the layout moves and c over all screen or half of the screen. i was thinking use slidingDrawer but seems google depreceate this method on api 17. so how i can achieve this?
Im attaching the image of example:
you could look into using this SlidingUpPanel which appears to be exactly what you are looking for
Now from with Android Support Library 23.2 we can use Design Support Library: Bottom Sheets
Something that might be worth looking into is the answer to this question.
More specifically the answer that links here.
Basically the idea is that They realized that the sliding drawer left some things to be desired and they created a custom component with similar functionality. This will give you more freedom and a way around using deprecated classes. Let me know in comments if there's anything else that would be helpful to know.
Happy coding!

How to move objects across layouts using Drag and Drop

I can move objects in their parent layout but I could not find how to move them to another layout. Does anyone know it?
Edit: This tutorial shows how to do. fupeg.blogspot.com/2011/03/honeycomb-drag-and-drop-basics.html
This is a buit-in functionnality coming with Android honeycomb, see this specific article.
If you want to do that on earlier versions, try that 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