文件名称:Cards-UI-master
介绍说明--下载内容均来自于网络,请自行研究使用
卡片式View,支持单个卡片,item为卡片的ListView
使用:
CardListView list = ...
list.setCardTheme(CardTheme.Dark)
CardAdapter adapter = new CardAdapter(this, android.R.color.holo_blue_dark)
list.setAdapter(adapter)
// Alternatively, you can pass a context and string resources in place of strings
// CardHeader has an optional second parameter for a subtitle
CardHeader header = new CardHeader( I m a header )
// You can optionally set an action to the header
// Specifying no action title will default to See More
header.setAction( See More , new CardHeader.ActionListener() {
@Override
public void onHeaderActionClick(CardHeader header) {
// Do whatever you want
}
})
// Add the header to the adapter, automatically notifies the list
adapter.add(header)
// Again, you can pass a context and string resources in place of strings
Card card = new Card( Hello , My name is Aidan )
adapter.add(card) -This library is no longer maintained, as this implementation is generally frowned upon in the new Google Material design guidelines, excluding certain situations (like Google Keep type UI). See the new CardView APIs in the Support Library.
使用:
CardListView list = ...
list.setCardTheme(CardTheme.Dark)
CardAdapter adapter = new CardAdapter(this, android.R.color.holo_blue_dark)
list.setAdapter(adapter)
// Alternatively, you can pass a context and string resources in place of strings
// CardHeader has an optional second parameter for a subtitle
CardHeader header = new CardHeader( I m a header )
// You can optionally set an action to the header
// Specifying no action title will default to See More
header.setAction( See More , new CardHeader.ActionListener() {
@Override
public void onHeaderActionClick(CardHeader header) {
// Do whatever you want
}
})
// Add the header to the adapter, automatically notifies the list
adapter.add(header)
// Again, you can pass a context and string resources in place of strings
Card card = new Card( Hello , My name is Aidan )
adapter.add(card) -This library is no longer maintained, as this implementation is generally frowned upon in the new Google Material design guidelines, excluding certain situations (like Google Keep type UI). See the new CardView APIs in the Support Library.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Cards-UI-master
...............\.gitignore
...............\README.md
...............\build.gradle
...............\proguard-rules.pro
...............\src
...............\...\androidTest
...............\...\...........\java
...............\...\...........\....\com
...............\...\...........\....\...\afollestad
...............\...\...........\....\...\..........\cardsui
...............\...\...........\....\...\..........\.......\ApplicationTest.java
...............\...\main
...............\...\....\AndroidManifest.xml
...............\...\....\java
...............\...\....\....\com
...............\...\....\....\...\afollestad
...............\...\....\....\...\..........\cardsui
...............\...\....\....\...\..........\.......\Card.java
...............\...\....\....\...\..........\.......\CardAdapter.java
...............\...\....\....\...\..........\.......\CardBase.java
...............\...\....\....\...\..........\.......\CardCenteredHeader.java
...............\...\....\....\...\..........\.......\CardCompressed.java
...............\...\....\....\...\..........\.......\CardCursorAdapter.java
...............\...\....\....\...\..........\.......\CardHeader.java
...............\...\....\....\...\..........\.......\CardListView.java
...............\...\....\....\...\..........\.......\CardTheme.java
...............\...\....\res
...............\...\....\...\drawable-hdpi
...............\...\....\...\.............\ic_launcher.png
...............\...\....\...\.............\ic_overflow_normal.png
...............\...\....\...\.............\ic_overflow_pressed.png
...............\...\....\...\.............\list_focused.9.png
...............\...\....\...\drawable-mdpi
...............\...\....\...\.............\ic_launcher.png
...............\...\....\...\.............\ic_overflow_normal.png
...............\...\....\...\.............\ic_overflow_pressed.png
...............\...\....\...\.............\list_focused.9.png
...............\...\....\...\drawable-xhdpi
...............\...\....\...\..............\ic_launcher.png
...............\...\....\...\..............\ic_overflow_normal.png
...............\...\....\...\..............\ic_overflow_pressed.png
...............\...\....\...\..............\list_focused.9.png
...............\...\....\...\drawable-xxhdpi
...............\...\....\...\...............\ic_launcher.png
...............\...\....\...\...............\ic_overflow_normal.png
...............\...\....\...\...............\ic_overflow_pressed.png
...............\...\....\...\drawable
...............\...\....\...\........\activated_background.xml
...............\...\....\...\........\blank_drawable.xml
...............\...\....\...\........\blank_selector.xml
...............\...\....\...\........\card_header_selector.xml
...............\...\....\...\........\card_header_selector_dark.xml
...............\...\....\...\........\card_menu_button.xml
...............\...\....\...\........\card_selector.xml
...............\...\....\...\........\card_selector_dark.xml
...............\...\....\...\........\pressed_background.xml
...............\...\....\...\........\pressed_background_dark.xml
...............\...\....\...\........\pressed_background_header.xml
...............\...\....\...\........\pressed_background_header_dark.xml
...............\...\....\...\........\unpressed_background.xml
...............\...\....\...\........\unpressed_background_dark.xml
...............\...\....\...\layout
...............\...\....\...\......\list_item_card.xml
...............\...\....\...\......\list_item_card_compressed.xml
...............\...\....\...\......\list_item_card_nocontent.xml
...............\...\....\...\......\list_item_header.xml
...............\...\....\...\......\list_item_header_centered.xml
...............\...\....\...\values
...............\...\....\...\......\colors.xml
...............\...\....\...\......\dimens.xml
...............\...\....\...\......\strings.xml
...............\...\....\...\......\styles.xml