How to make Cardview According to material design in android?

前端 未结 4 581
梦毁少年i
梦毁少年i 2021-02-09 08:44

I saw material design guidelines regarding but it little confusion ,while I design my card having Image on left and some text on right of Image.But I did n\'t satisfy whether it

4条回答
  •  走了就别回头了
    2021-02-09 09:36

    Card View The card container is the only required element in a card. All other elements shown here are optional.

    Card layouts can vary to support the types of content they contain. The following elements are commonly found among that variety.

    1. Container Card containers hold all card elements, and their size is determined by the space those elements occupy. Card elevation is expressed by the container.

    2. Thumbnail [optional] Cards can include thumbnails to display an avatar, logo, or icon.

    3. Header text [optional] Header text can include things like the name of a photo album or article.

    4. Subhead [optional] Subhead text can include text elements such as an article byline or a tagged location.

    5. Media [optional] Cards can include a variety of media, including photos, and graphics, such as weather icons.

    6. Supporting text [optional] Supporting text includes text like an article summary or a restaurant description.

    7. Buttons [optional] Cards can include buttons for actions.

    8. Icons [optional] Cards can include icons for actions.

    Code:

    
    
                
    
                    
    
                        
    
                        
                            
    
                            
                        
                    
    
                    
    
                    
    
    
                    
    
                        
    
                        
    
                    
    
                
    
            
    

    Read more: https://material.io/develop/android/components/cards

提交回复
热议问题