Android - creating a simplified spotify-like layout - android

I am developing an Android app and am a bit stuck on how I go about creating the layout I'm after. I said spotify-like (website not app) as I dont want the parallax effect. It's actually closer to http://www.poormet.com/.
What I have tested so far is a RelativeLayout with an ImageView and Listview (with transparent dividers) within it. This layout shows the image in the background between rows which is a step in the right direction. The issue is I'm at a loss as to how to get the images to change smoothly depending on what listrows are on screen.
Also, if I want to replicate the text over the images like poormet example mentioned above, then it seems to me I am going to have to have alternating transparent and not transparent rows.
Am I on the right track or am I approaching this problem the wrong way?
Any guidance will be greatly appreciated!!!
(also, please let me know if what I have described doesn't make sense - more than happy to clarify)

Related

Passlock design in Android

I am stuck in app locker.
Pleas help me to figure out.
Here I use a background image in that there are 9 holes. I need to put images on each hold for password. I try much but each time images are not on the same places on different screens or display devices. Please give me some demo or tutorial. Thank you!
Actually I want to design like the below picture, where the background image is constant with holes, and I want to put on each hole with different pig image. But the problem is I don't know how to design layout for accurate pig position and another important thing is that if the display screen is different, does the layout design work?

auto layout in android

Good day, i am developing an android app which generates comic like albums, i need to fit this comic to any screen width but i have trouble doing it coz of the layouts, its very odd and doesn't seem to be aligned with one another, here :
those boxe are composed of FrameLayouts which contains and ImageView (back), the frame which is a PNG (middle) and a TextView on top of the frame image. So basically the design is very complex and odd, I've heard that there is a way to make this fit automatically on every screen on IOS, they called it auto layout i guess. Is there a counter part of this on android? Thank you.
Try using a GridLayout. You should be able to achieve what you're trying to do. There's a good blog post here.

Android FrameLayout with image slide in

I need to create a gauge. The first image will be static and holds the measurements and markings. The second image will slide in from bottom to top. To simulate a water tank.
What will be the best way to handle this problem?
At the moment I am trying to use a framelayout to hold the two images but not sure if its the right approach.
I have done this in css and jquery but cant seen to find a way around it in android native.
any ideas?
In general you'll have better luck here if you make the title of your question more descriptive. It doesn't seem like you are actually asking anything about FrameLayout.
Anywho, if I am understanding you correctly you should be able to adapt ProgressBar to fit your needs for creating a water tank. Note if you want it to be vertical instead of horizontal you can find a solution on this question: Android - set a ProgressBar to be a vertical bar instead of horizontal?

How to animate the opacity of android gridLayout?

Actually, I got a little problem while building my Android App. I want to create a mini-game in my app. It will works like this:
At the begining an image appears
then the app ask the user to zoom-in the picture
then a grid will appear and seperate the picture into pixels (like the one million pixel wall for example)
the user will have to choose one "pixel" of the grid and he will win (or not) some points.
It seems quite simple but i got some issues:
How can i create this grid? (GridLayout? )
How can i put an invisible Grid (opacity=0) on a picture ? (Grid Layout Option Maybe ? )
How can i use the zoom-in option to be as smooth(natural and simple) as possible?
What should i do in order to turn the Grid opacity to 1 when "the Zoom in" effect has been done ?
I know that some several questions are likely answering to the grid problem but I need some personal advices in order to build my own game. General tips and tricks are welcomed. Explanations will be great.
Thanks in advance.
P.S.: Sorry for my English. It's not really my main language but I hope that I am still understandable.
Actually i've found The GridLayout.setalpha(alpha) Option so i know now how to build a grid and to manipulate his opacity.
I just Need now some informations about how to animate this grid with the zoom-in effect and the Zoom-out effect !

Android Layout On Top of an Image

I am struggling with a Layout Problem on Android. This is very simple to do on the iPhone, but with the various screen sizes and the Layout classes available. I am having a hard time doing this.
One thing that I have noticed is that setting backgrounds on objects in the xml really messes up the layout on the device. I generally have to put in a FrameLayout and an ImageView to get a background.
So Am trying to get to this. http://www.calidadsystems.com/images/AndroidListItem.png (Sorry I don't have enough pts to post the image)
his is a status view and is an item in a List View. There are 8 TextViews that need to be set. Each of the 222 fields will change. The current background has the colors in there at specific locations and I am trying to line up the Labels and TextViews to get the picture below. I built this one with AbsoluteLayout which is deprecated, but it also does not work very well on the device.
I have constantly struggled with the layouts on Android. Does someone have some good sample code that could do this?
You're probably going to want to use a RelativeLayout. You can use the android:layout_alignTop="id" attribute to make the rows be in line correctly. And android:layout_alignLeft="id" for the columns. Other than that its just a matter of playing with the android:layout_marginLeft="XXdip" attribute to get the space between them how you want it. Check out this page for an overview and examples of all of the Layout types. Here is some more sample RelativeLayout code. And one more page with another example. RelativeLayout is a bit tricky to get used to but once you've used it a few times its pretty easy to understand and get the Layout that you want. The benefit of it is that your UIs look nice on several different screen sizes when you define them this way.
Why not just composed the layout in a table layout and set the table layout's background to a custom made graphic you make? This should work well with you. Specifically the design of your design would be like 4 columns with x rows. Then using the strechcolumn property, you should be able to accomplish what you are trying to do!
If you scale the graphic properly, then you shouldn't have this problem overall.

Categories

Resources