Detailed design of Android product details page

This example shares the specific code of Android product details for your reference. The specific contents are as follows

First, let's take a look at the rendering (the style and layout can be changed according to the product requirements). First, roughly speaking, the overall structure is implemented by LinearLayout, which is divided into upper and lower parts. The upper part is the user-defined layout we can slide, and the lower part is the two irrelevant layouts of "enter the store" and "buy now"; The following is changed according to the requirements of the product. Each app is almost different, so it doesn't matter;

Layout file skeleton:

The biggest difficulty of a real page is the custom layout file: scrollviewcontainer, but it's very cool that you don't have to write it yourself. You can copy the scrollviewcontainer from the demo to your own project, which is very convenient; The renderings are really used in our project. The scrollviewcontainer is also divided into upper and lower parts, separated from "dragging items"; In the top part of the upper part, there is usually a rotation chart, and then there are some product details below to let you choose some attribute information; These can be added according to your needs; In the second half, there is usually a WebView, but "JD" has three; We don't have to worry about placing a few, because we can change the following WebView to Scrollview, and then put what we want in it;

Click open link @ L for free_ 419_ 0@

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>