File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
src/cn/trinea/android/common/util Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1717 android : id =" @+id/drop_down_list_footer_button"
1818 style =" @style/drop_down_list_footer_font_style"
1919 android : layout_width =" wrap_content"
20- android : layout_height =" match_parent "
20+ android : layout_height =" @dimen/drop_down_list_footer_button_height "
2121 android : layout_centerInParent =" true"
22+ android : layout_marginLeft =" @dimen/drop_down_list_footer_button_margin_left"
2223 android : background =" @android:color/transparent"
2324 android : gravity =" center"
2425 android : text =" @string/drop_down_list_footer_default_text" />
Original file line number Diff line number Diff line change 55 <dimen name =" drop_down_list_header_release_min_distance" >20dp</dimen >
66 <dimen name =" drop_down_list_header_progress_bar_height" >36dp</dimen >
77 <dimen name =" drop_down_list_footer_progress_bar_height" >36dp</dimen >
8+ <dimen name =" drop_down_list_footer_button_margin_left" >8dp</dimen >
9+ <dimen name =" drop_down_list_footer_button_height" >48dp</dimen >
810
911</resources >
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ public class ListUtils {
1313 /** default join separator **/
1414 public static final String DEFAULT_JOIN_SEPARATOR = "," ;
1515
16+ public static <V > int getSize (List <V > sourceList ) {
17+ return ListUtils .isEmpty (sourceList ) ? 0 : sourceList .size ();
18+ }
19+
1620 /**
1721 * is null or its size is 0
1822 *
You can’t perform that action at this time.
0 commit comments