Skip to content

Commit eb79e22

Browse files
committed
modify drop_down_list_footer_button
1 parent 02c0f08 commit eb79e22

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

res/layout/drop_down_list_footer.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
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" />

res/values/dimens.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
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>

src/cn/trinea/android/common/util/ListUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*

0 commit comments

Comments
 (0)