I need to recreate something exactly like this. A bar with a slider and with various colors, exactly the same. I was looking for a bit 'but I can not find a way to do it or anything like that. Can anyone give me a track to work on? Thank you!
What you're looking for is
Android seekbar
And then to style it you would probably end up doing like this so answer
https://stackoverflow.com/a/27035469/2880747
or this one
Custom seekbar (thumb size, color and background)
I personally used the latter, and it was working great :)
Related
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.
I searched for it, but couldn't find any result.
What I want to know is the transparency background like on iPhone when you open menu from down for android.
It looks like this.
https://s-media-cache-ak0.pinimg.com/236x/8a/22/d3/8a22d35bb4983778fea3d3c9845c61a8.jpg
http://orig15.deviantart.net/50e5/f/2013/217/9/0/ios_7_like_background_by_kyroapps-d6gudzf.png
Actually you need blur effect for background (not only transparent)
here is some libs that can help you:
https://android-arsenal.com/tag/176
hope it helps
I am having troubles with a seek bar, i am trying to create an audio settings fragment but when i customize my seekbar thumb i noticed that the progress does not start and end in where i would like to.
I tried lot of things but i cannot find the solution.
I would also like to add white lines in the background like from 1 to 10.
Thanks for the help
seems like this simple line fixed the thing:
android:thumbOffset="5dp"
Thanks anyway and hope this can help someone.
Going straight forward..
1.what i achieved so far (thanks to pakerfeldt- https://github.com/pakerfeldt/android-viewflow)
2.what i need actually
so almost done..but you can see bottom shadow functionality (at viewflow) in iphone screen (and it can pull down and can see entire image). so does anyone achieved something similar in android ?
any other library for reference ?
Thanks in advance. answer will be appreciated.
Thanks.
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.