From fb76812bffe7e1afa8506aeab3be594883c60f17 Mon Sep 17 00:00:00 2001 From: zengfantian Date: Fri, 30 Oct 2015 20:45:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=B1=E9=80=9A=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E5=AF=B9=E8=AF=9D=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- res/drawable-xxhdpi/arrow_normal.png | Bin 0 -> 1171 bytes .../common_nav_close_grally_n.png | Bin 0 -> 352 bytes .../common_nav_close_grally_p.png | Bin 0 -> 380 bytes res/drawable-xxhdpi/ic_list_white_48dp.png | Bin 0 -> 230 bytes res/drawable-xxhdpi/item_choose_icon.png | Bin 0 -> 1908 bytes .../selector_common_btn_transparent_gray.xml | 5 + ...or_common_btn_transparent_white_nobold.xml | 7 + .../selector_common_btn_white_grally_bold.xml | 8 + ...elector_common_btn_white_grally_nobold.xml | 8 + .../selector_common_grally_close_btn.xml | 10 + .../shape_common_btn_grally_bold_p.xml | 19 ++ .../shape_common_btn_white_bold_n.xml | 19 ++ res/layout/common_operation_dialog.xml | 80 +++++ res/layout/common_operation_dialog_item.xml | 90 ++++++ res/values/colors_common.xml | 3 + res/values/styles_views.xml | 25 ++ .../library/widget/OperationDialog.java | 295 ++++++++++++++++++ .../sample/basic/BasicTestActivity.java | 47 ++- 18 files changed, 614 insertions(+), 2 deletions(-) create mode 100644 res/drawable-xxhdpi/arrow_normal.png create mode 100644 res/drawable-xxhdpi/common_nav_close_grally_n.png create mode 100644 res/drawable-xxhdpi/common_nav_close_grally_p.png create mode 100644 res/drawable-xxhdpi/ic_list_white_48dp.png create mode 100644 res/drawable-xxhdpi/item_choose_icon.png create mode 100644 res/drawable/selector_common_btn_transparent_gray.xml create mode 100644 res/drawable/selector_common_btn_transparent_white_nobold.xml create mode 100644 res/drawable/selector_common_btn_white_grally_bold.xml create mode 100644 res/drawable/selector_common_btn_white_grally_nobold.xml create mode 100644 res/drawable/selector_common_grally_close_btn.xml create mode 100644 res/drawable/shape_common_btn_grally_bold_p.xml create mode 100644 res/drawable/shape_common_btn_white_bold_n.xml create mode 100644 res/layout/common_operation_dialog.xml create mode 100644 res/layout/common_operation_dialog_item.xml create mode 100644 src/com/zftlive/android/library/widget/OperationDialog.java diff --git a/res/drawable-xxhdpi/arrow_normal.png b/res/drawable-xxhdpi/arrow_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..6a6c04af34c27b59cef33e5f7943be524078d61a GIT binary patch literal 1171 zcmeAS@N?(olHy`uVBq!ia0vp^VnD3M!3HD`oXegDq$EpRBT9nv(@M${i&7aJQ}UBi z6+Ckj(^G>|6H_V+Po~;1FfeOphD4M^`1)8S=jZArg4F0$^BXQ!4Z zB&DWj=GiK}-@RW+Av48RDcsc8z_-9TH6zobswg$M$}c3jDm&RSMakYy!KT6rXh3di zNuokUZcbjYRfVk**jy_h8zii+qySb@l5ML5aa4qFfP!;=QL2Keo~drKfuV_lxuu?= zsiBF5p^k!)fuXU!fw8`!v96(!m4T&|p{W8CC;@FNN=dT{a&d#&1?1T(Wt5Z@Sn2DR zmzV368|&p4rRy77T3YHG80i}s=>k>g7FXt#Bv$C=6)VF`a7isrF3Kz@$;{7F0GXJW zlwVq6s|0i@#0$9vzP@mS^NOJX1q?F%io^naLp=li++2{qz^aQ&f>IIAz^b}9q_QAY zKPa_0zqBYB7$0fMFwMZQ!*3BtA<#8eF8Rr&xv6<2o-VdZKoPx^%oHnQH#Z|^H)B^9 zM@ut9Lst_^7dI0ZOA9AQQwuXULvuHnUeCPZlEl2^RG8jOgkBfCdaay`QWHz^i$e1A zb6~L-kda@KU!0L&py2GRpy8XCoS6sWYl6ZS>eSSt%(B!Jx1#)91#sY4WuiF%{%Nt>x5$&9L z4({icCoH_;f6z^H1ION`qZ#~R3w0xUuO$d?xue~-rL#hJR{sqV*BdgfKeBt3_LN(7 z2DC)aJ(>}>XYG%RVGEy@L|^_o^Pj`fjJIc^H;b=$qgTe~ HDWM4fhjE%9 literal 0 HcmV?d00001 diff --git a/res/drawable-xxhdpi/common_nav_close_grally_n.png b/res/drawable-xxhdpi/common_nav_close_grally_n.png new file mode 100644 index 0000000000000000000000000000000000000000..dec0c5d0062930e5665abe0e97da19a2a7ae3c9c GIT binary patch literal 352 zcmeAS@N?(olHy`uVBq!ia0vp^(|~vd3p0@X5YNQ}q=W)|LR^9L8C0+_^mdKI;Vst0PNYJegFUf literal 0 HcmV?d00001 diff --git a/res/drawable-xxhdpi/common_nav_close_grally_p.png b/res/drawable-xxhdpi/common_nav_close_grally_p.png new file mode 100644 index 0000000000000000000000000000000000000000..6c40eb5869dce66e97e378fa6ebf97c3a578bc39 GIT binary patch literal 380 zcmeAS@N?(olHy`uVBq!ia0vp^(|~vd3p0@X5YNQ}q(lRJLR^9L84U17Sxp)!!Cn&N z7tAn|F+R>}Momnt5(5Jxzo(01NXEUlHw?KBIWVwZRDHoHcGPNxxIvr)Yc;q2gTMNU z8b++s|#;zt2Np%aSQUUYbim#MfK3b9NfUcqgAep8D)mU9onq?yIUlXRWRW zXJ%VmIh`LC+q-n*U2eAxYH^$rI^4}q6E~RfOlv>*$sj_G?eyV@y31ALLg_K#P82@3hX>GEJnGvl|6IX9My!qbu8+X(HSE^Z6hs7V~kvk^d(q716 zaF!`8Qs!0UoL7-j$L<}Tku8zUpS&h9$F^r>`^GN@ZF0xX9iCAsq0OKCBr(S(=irmq vzJ6!--(9|Q_We8me$ID-dIspD<+hCG=M7j6m&z{yh8BaTtDnm{r-UW|$A6%V literal 0 HcmV?d00001 diff --git a/res/drawable-xxhdpi/ic_list_white_48dp.png b/res/drawable-xxhdpi/ic_list_white_48dp.png new file mode 100644 index 0000000000000000000000000000000000000000..6b7e78f83f46fc0e40457ebae088c83b0cad08c4 GIT binary patch literal 230 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY0wn)GsXhaw6p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9;eUJonf*W>XMsm#F#`j)FbFd;%$g$s z6pZt9aSX}0_x8FWAA^7Z%K__;|Mf3xt%y-Hie9A_d2*8SJuhwrI9M?I%h{X1-km>O z85)%8aKHIdxD>~UX)Ad^7|7V^?6A!z)d3DlXIjnR>fdNC_6ledgQu&X%Q~loCIE-< BM#KOB literal 0 HcmV?d00001 diff --git a/res/drawable-xxhdpi/item_choose_icon.png b/res/drawable-xxhdpi/item_choose_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..9f383167187b06923a24cf98b588d500d95bb5fe GIT binary patch literal 1908 zcmbVNdsI_(9G_`~$YUy4u)@2m9TC}f@3y-a4BXv7NQM)pB9?Twdk0IlJGKjKkdI_q z>LH2LN%&x?Crz*f&5EhX%QsQ-&>%cY2;>9pdB8{AsaU6D{n0(=-tX`6`M$rObJuB7 z<^=eK`7s!bfTToKDlJj(>+3^*d$o)KT7**Z=~NnNpb9W6!BF6&jsTKOSQe2=V7Mdq zG!esKjI|lH=~TKpS*9mVT+EB%+D#T(o56^Qvs*CzGJ*nhM3&Jk2Z!p8gMbm2gNqO~ zq_!xDY-3`fl}Ia0(drAA>7_Ur7YoGLWwZekL1BR1lw-EZ>~ip-T^YUh9`iupA%t2c z2OkBMuGRob(n6Dwm$YW_V5wBfgZMl?pF<-!HiwzQ>>RUg+NcE;VbfcU z7RpGP0k1_&N9Iv-kdE|G3MPwM{lu`@_P9`V$#{0m!h^XG&t&rE^$=~NQi;F9cq-ba zbyx^qDq$n@ta`d1hH0b9bnX7zkrzluBb#S6(oMl~RHQ!7M3|{0l^mpRxVRCQNgy#S zG++=%D%2qyAub>|Itfm2^dgZE!6gV`z=WfAo~ke6Bd7urN#n&57>*aBN`+X(SH+7G z1VV{YDH_#HGTSK3tS3f&8@;}j2%m-srST%szv{}ARsy3)tCl2lMyEiNO;V&So3sE* zB@m&;^hUFHKhxWzM=7fat1+Lz6Re~Ocvxha@hJgF^?H#27V9`tNGIh8AxugqkLWmJ z1CH<^ff&IB2Jo>y{(p?B~5aG zrfN;&l;I;&UcU3X$#lt8?KrWeBPORpo%6!w_XS9h;P-omYdz6|De}? zbXIf*!*@gF^R52uA*9XsK4l7jZw$I=<%5>HHB%3+VsDz@7^*Cc=vTY~&Gij-xeZf+ zbHz*1TBj#`Z(!K@e*8ofJL0#WJ1cL7qgxx8kxox+wp>^?G`@H-n&`9mJ65Y92+%^# zFVLlNhXTX$dv~V*(>oJBxlFkF7oPj!11R$pYZa*JuAUtIR(5;D`u8vOwSRtl>6y@a zl+9~quI={t?+H_!f2FQe$sK}OJ6_exidHqDJy~m^f!_)@&DPY`xR%$Ym44&!ThMnq zygp~k7C%R^$3M<7e|z3%^M1NsXCI&F%6B!7q?GLQ|1{$i>*_4_wRX{->rtm`%)M{i z3a)i8((Gx5mEE(egMYf}k9{@wLRm@EgQl*&CG1biFiEI;X6xAO!N}p{ob}*m=ow~*oX{?H-g}*8>lYzpH9LRTkxHME{ReiiW?lw&7VXS*Bd-d!t=9*17L%dy+uh+Z(J z;e2`Db3GZg<&(bIdo;eG-WBWxC2OcrShITfbqZ= + + + + \ No newline at end of file diff --git a/res/drawable/selector_common_btn_transparent_white_nobold.xml b/res/drawable/selector_common_btn_transparent_white_nobold.xml new file mode 100644 index 0000000..8416358 --- /dev/null +++ b/res/drawable/selector_common_btn_transparent_white_nobold.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/res/drawable/selector_common_btn_white_grally_bold.xml b/res/drawable/selector_common_btn_white_grally_bold.xml new file mode 100644 index 0000000..91d27c2 --- /dev/null +++ b/res/drawable/selector_common_btn_white_grally_bold.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/res/drawable/selector_common_btn_white_grally_nobold.xml b/res/drawable/selector_common_btn_white_grally_nobold.xml new file mode 100644 index 0000000..54e6766 --- /dev/null +++ b/res/drawable/selector_common_btn_white_grally_nobold.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/res/drawable/selector_common_grally_close_btn.xml b/res/drawable/selector_common_grally_close_btn.xml new file mode 100644 index 0000000..30070c7 --- /dev/null +++ b/res/drawable/selector_common_grally_close_btn.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/res/drawable/shape_common_btn_grally_bold_p.xml b/res/drawable/shape_common_btn_grally_bold_p.xml new file mode 100644 index 0000000..093478f --- /dev/null +++ b/res/drawable/shape_common_btn_grally_bold_p.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/drawable/shape_common_btn_white_bold_n.xml b/res/drawable/shape_common_btn_white_bold_n.xml new file mode 100644 index 0000000..82d29a7 --- /dev/null +++ b/res/drawable/shape_common_btn_white_bold_n.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/common_operation_dialog.xml b/res/layout/common_operation_dialog.xml new file mode 100644 index 0000000..489c29e --- /dev/null +++ b/res/layout/common_operation_dialog.xml @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/common_operation_dialog_item.xml b/res/layout/common_operation_dialog_item.xml new file mode 100644 index 0000000..4deb007 --- /dev/null +++ b/res/layout/common_operation_dialog_item.xml @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/values/colors_common.xml b/res/values/colors_common.xml index b787121..a27e525 100644 --- a/res/values/colors_common.xml +++ b/res/values/colors_common.xml @@ -150,4 +150,7 @@ #70000000 #0C000000 #EFEFF4 + #f4f4f4 + #cc000000 + diff --git a/res/values/styles_views.xml b/res/values/styles_views.xml index 98abd5f..702a321 100644 --- a/res/values/styles_views.xml +++ b/res/values/styles_views.xml @@ -45,6 +45,31 @@ @anim/view_kb_dialog_exit + + + + +