From d12ec5819453e323a7ee14b30d0ed1118fb7ed8e Mon Sep 17 00:00:00 2001 From: jiri hubacek Date: Sat, 31 Jan 2015 20:51:17 +0100 Subject: [PATCH] Simplified approach to write application. - no need for fragments - no need for complex approach to backward compatibility - usable drawables choosen - cs language added - help added - settings added --- orte/contrib/shape_android/.gitignore | 2 + .../contrib/shape_android/AndroidManifest.xml | 30 +- orte/contrib/shape_android/build.xml | 92 ---- orte/contrib/shape_android/lint.xml | 3 - orte/contrib/shape_android/project.properties | 3 +- .../res/drawable-hdpi/ic_action_cast.png | Bin 495 -> 0 bytes .../res/drawable-hdpi/ic_action_download.png | Bin 363 -> 0 bytes .../res/drawable-hdpi/ic_action_refresh.png | Bin 0 -> 663 bytes .../res/drawable-mdpi/ic_action_cast.png | Bin 353 -> 0 bytes .../res/drawable-mdpi/ic_action_download.png | Bin 313 -> 0 bytes .../res/drawable-mdpi/ic_action_refresh.png | Bin 0 -> 508 bytes .../res/drawable-xhdpi/ic_action_cast.png | Bin 574 -> 0 bytes .../res/drawable-xhdpi/ic_action_download.png | Bin 470 -> 0 bytes .../res/drawable-xhdpi/ic_action_refresh.png | Bin 0 -> 895 bytes .../res/drawable-xxhdpi/ic_action_cast.png | Bin 827 -> 0 bytes .../drawable-xxhdpi/ic_action_download.png | Bin 574 -> 0 bytes .../res/drawable-xxhdpi/ic_action_refresh.png | Bin 0 -> 1239 bytes .../res/layout/activity_help.xml | 124 +++++ .../res/layout/activity_main.xml | 6 - .../res/layout/activity_publisher.xml | 29 + .../res/layout/activity_settings.xml | 17 + .../res/layout/fragment_main.xml | 16 - .../res/layout/fragment_publisher.xml | 16 - .../res/layout/fragment_subscriber.xml | 16 - orte/contrib/shape_android/res/menu/help.xml | 5 + orte/contrib/shape_android/res/menu/main.xml | 19 - .../shape_android/res/menu/publisher.xml | 24 +- .../shape_android/res/menu/subscriber.xml | 32 +- .../shape_android/res/values-cs/strings.xml | 54 ++ .../shape_android/res/values-v11/styles.xml | 2 +- .../shape_android/res/values-v14/styles.xml | 2 +- .../shape_android/res/values/strings.xml | 50 +- .../shape_android/res/values/styles.xml | 2 +- .../org/ocera/orte/shape4a/MainActivity.java | 342 ------------ .../ocera/orte/shape4a/PublisherFragment.java | 337 ------------ .../orte/shape4a/SubscriberFragment.java | 246 --------- .../{shape4a => shape_android}/BoxType.java | 16 +- .../orte/shape_android/HelpActivity.java | 75 +++ .../orte/shape_android/PublisherActivity.java | 494 ++++++++++++++++++ .../PublisherShape.java | 10 +- .../PublisherView.java | 10 +- .../orte/shape_android/SettingsActivity.java | 54 ++ .../SubscriberElement.java | 30 +- .../SubscriberView.java | 10 +- 44 files changed, 1011 insertions(+), 1157 deletions(-) delete mode 100644 orte/contrib/shape_android/build.xml delete mode 100644 orte/contrib/shape_android/lint.xml delete mode 100644 orte/contrib/shape_android/res/drawable-hdpi/ic_action_cast.png delete mode 100644 orte/contrib/shape_android/res/drawable-hdpi/ic_action_download.png create mode 100644 orte/contrib/shape_android/res/drawable-hdpi/ic_action_refresh.png delete mode 100644 orte/contrib/shape_android/res/drawable-mdpi/ic_action_cast.png delete mode 100644 orte/contrib/shape_android/res/drawable-mdpi/ic_action_download.png create mode 100644 orte/contrib/shape_android/res/drawable-mdpi/ic_action_refresh.png delete mode 100644 orte/contrib/shape_android/res/drawable-xhdpi/ic_action_cast.png delete mode 100644 orte/contrib/shape_android/res/drawable-xhdpi/ic_action_download.png create mode 100644 orte/contrib/shape_android/res/drawable-xhdpi/ic_action_refresh.png delete mode 100644 orte/contrib/shape_android/res/drawable-xxhdpi/ic_action_cast.png delete mode 100644 orte/contrib/shape_android/res/drawable-xxhdpi/ic_action_download.png create mode 100644 orte/contrib/shape_android/res/drawable-xxhdpi/ic_action_refresh.png create mode 100644 orte/contrib/shape_android/res/layout/activity_help.xml delete mode 100644 orte/contrib/shape_android/res/layout/activity_main.xml create mode 100644 orte/contrib/shape_android/res/layout/activity_publisher.xml create mode 100644 orte/contrib/shape_android/res/layout/activity_settings.xml delete mode 100644 orte/contrib/shape_android/res/layout/fragment_main.xml delete mode 100644 orte/contrib/shape_android/res/layout/fragment_publisher.xml delete mode 100644 orte/contrib/shape_android/res/layout/fragment_subscriber.xml create mode 100644 orte/contrib/shape_android/res/menu/help.xml delete mode 100644 orte/contrib/shape_android/res/menu/main.xml create mode 100644 orte/contrib/shape_android/res/values-cs/strings.xml delete mode 100644 orte/contrib/shape_android/src/org/ocera/orte/shape4a/MainActivity.java delete mode 100644 orte/contrib/shape_android/src/org/ocera/orte/shape4a/PublisherFragment.java delete mode 100644 orte/contrib/shape_android/src/org/ocera/orte/shape4a/SubscriberFragment.java rename orte/contrib/shape_android/src/org/ocera/orte/{shape4a => shape_android}/BoxType.java (89%) create mode 100644 orte/contrib/shape_android/src/org/ocera/orte/shape_android/HelpActivity.java create mode 100644 orte/contrib/shape_android/src/org/ocera/orte/shape_android/PublisherActivity.java rename orte/contrib/shape_android/src/org/ocera/orte/{shape4a => shape_android}/PublisherShape.java (95%) rename orte/contrib/shape_android/src/org/ocera/orte/{shape4a => shape_android}/PublisherView.java (93%) create mode 100644 orte/contrib/shape_android/src/org/ocera/orte/shape_android/SettingsActivity.java rename orte/contrib/shape_android/src/org/ocera/orte/{shape4a => shape_android}/SubscriberElement.java (89%) rename orte/contrib/shape_android/src/org/ocera/orte/{shape4a => shape_android}/SubscriberView.java (84%) diff --git a/orte/contrib/shape_android/.gitignore b/orte/contrib/shape_android/.gitignore index 943202a..5808629 100644 --- a/orte/contrib/shape_android/.gitignore +++ b/orte/contrib/shape_android/.gitignore @@ -14,6 +14,8 @@ gen/ libs/ obj/ +.settings/ + # Gradle files .gradle/ build/ diff --git a/orte/contrib/shape_android/AndroidManifest.xml b/orte/contrib/shape_android/AndroidManifest.xml index 6b0fcf3..2aa7a53 100644 --- a/orte/contrib/shape_android/AndroidManifest.xml +++ b/orte/contrib/shape_android/AndroidManifest.xml @@ -1,32 +1,40 @@ + android:versionName="1.2" > - - - - + + + + - + android:name=".PublisherActivity" + android:configChanges="screenSize|orientation" + android:label="@string/title_activity_publisher" > + + + + + diff --git a/orte/contrib/shape_android/build.xml b/orte/contrib/shape_android/build.xml deleted file mode 100644 index a64a1ea..0000000 --- a/orte/contrib/shape_android/build.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/orte/contrib/shape_android/lint.xml b/orte/contrib/shape_android/lint.xml deleted file mode 100644 index ee0eead..0000000 --- a/orte/contrib/shape_android/lint.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/orte/contrib/shape_android/project.properties b/orte/contrib/shape_android/project.properties index f970a6c..0675cec 100644 --- a/orte/contrib/shape_android/project.properties +++ b/orte/contrib/shape_android/project.properties @@ -12,5 +12,4 @@ # Project target. target=android-15 -android.library.reference.1=../../../../../workspace/appcompat_v7 -android.library.reference.2=../../libaorte +android.library.reference.1=../../dev/orte/orte/libaorte diff --git a/orte/contrib/shape_android/res/drawable-hdpi/ic_action_cast.png b/orte/contrib/shape_android/res/drawable-hdpi/ic_action_cast.png deleted file mode 100644 index 066ddd59dd0f8314c50c1c8f6ea131660204ceee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 495 zcmVE)hOol2m_ z_Fm_R9;w>iGvE6ZG6F_mK@}3!Il|;TXuTr<)sdh}nqNBrX&bazq_Y}x#Jg4l2~#J7 zy@Sx1t%bKm-1kKwablC_HUTzO&uk$Y^=eBZk<$ba;0`VZkqc}`BCSfVhmjbYLMekR zg^Uov^WhtblMgiz!*VHNrjjPH!T8=)0vAf?O%YR0k7_(yI+a!dNU% l$7(Pb3y#uNte2F5uD7-bq*3mC)` z7$hCUKE$#&u*Lv|82l#NDQYrJzwqkkq}gh`OP_yvzs=EsL$PJT(|}9%YhGJ96~27q zvod1W{;BVc9hgnP=zng4?u63CVWk;A?Ov|Xo3QYHcZ{k+M)RYt8-0I{@;*A>eXlhk zDcy(XX{&{wWbH&-21b98n;pwuhI~w#E#br^apROsFkcQ07M z=BgXhr^74esZOv^yi~;SMN&i7P~fwx8_@j%pFEWhFer<8TW?joum~7>44$rjF6*2U FngF7Si<$rc diff --git a/orte/contrib/shape_android/res/drawable-hdpi/ic_action_refresh.png b/orte/contrib/shape_android/res/drawable-hdpi/ic_action_refresh.png new file mode 100644 index 0000000000000000000000000000000000000000..dae27903e9ba3415808d48e6ac20afd6de64907b GIT binary patch literal 663 zcmV;I0%-k-P)RI}s=BK%nX zlUx%QIv80pc1(T;vVlKX)Vx1|;n|hBVn^gfP_BsCW76<^*ogv|EgstVEbOtsZ1pcL zlxj9#id5*3d^awHe#@2VtpWK|BL5rURme>gU_=6$qQDWzPtV~B!U*IqVR%)hjSibG zF(9lNt2zE$$Ws;Inv@y!NrBNhD?o{X4`u2aT&VO^Bm7vu&Si}ifX%KvRAn3LHwRJA zK{?2bDkKL`Py3=(5PK%CyUdksvyg9$oLazhXCl!YoOz!tFw=B0`k{c-AdqorI&+xC zhq8*yp{t}GfxzBiUv8QKZHjtMT(>kJzo@7;8Z)4c1vZ4bl~k#r+oYOGO%y$Mlq-vk z1)4V963KHUugm)>^}ZE5j>X2Tf#vC}#uZm}Z5bCXG>2hMSei>CC&W*QLGQjMwp73b zImV6gwZ%mY6qrVBdZZ#)*VOKYD+>rW$RzTjz%Q|DH%2!}2ywEbrrE9(_#u(8(Eag-u5WH=93TeTn_d-j4g{6hvB|;R}Ym4mz&+>^knBY)=?^H}(ZAUe4?=t#Q+Qc>#Hbq&S6n zp1JN1yjzY1{E?9ojbEU6k-Nl2WJAsmpKNxW_Fqy@k^?5n@TRVIl-(rrVuFd%n+Zy* zjhLk5IG6A-6$+YYH!VsQyJC30QSkwH$Y!2+L+{L3hD|11QTz(->>4jr7w%ldDCK3+ w*`(_cS}1R3b|HMbTeJztw@hA)4h@V9Me1I$rUeI>fMLeq>FVdQ&MBb@0DX0Ol>h($ diff --git a/orte/contrib/shape_android/res/drawable-mdpi/ic_action_download.png b/orte/contrib/shape_android/res/drawable-mdpi/ic_action_download.png deleted file mode 100644 index 84b43d34c3b365925e4c46230e8b791e4db9abbd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 313 zcmV-90mlA`P)mKcmTnG!T0Rp^%!C|+mfd1EB*b6~c7 zM(u3KizVwJ1DM=rAdaSb6hI4_SwtvpB-ZyNrvaeBAP3+p@s=xbgFfi*a1LB4OD@1^nOF^q<`nCtq(gSr% zLTHILlSYA-j^1z?@VbDJnC2E00jR9_%rKb1XtR9O0R!#;fB*vkkjyrTKyhbt00000 LNkvXXu0mjfg57w% diff --git a/orte/contrib/shape_android/res/drawable-mdpi/ic_action_refresh.png b/orte/contrib/shape_android/res/drawable-mdpi/ic_action_refresh.png new file mode 100644 index 0000000000000000000000000000000000000000..94ab6f4c5dd8f3a082b2a84d6e08f2564a589d94 GIT binary patch literal 508 zcmV-z^uNgfEYJ?X0v;e4!2PF!d%e@SmQ!PVe6+gr*@umuEKASwcC)f< z|GWWrF_jO)uwTspfWO^ZxARn*Qddzc&{8(7&^q)l<2?OSBuUZ-8$gO4se3R$x#Vc0 zf!eXo&j9TD2<2QfcDex=pHGFcp8*2+=+0Nutyp`amRUUWKGy>W20re%Az(?_vju$q z5zvlG>PiOwMBqwTTjT6);!MTFVL-=r)DrmFaZI@g;K%^c1Ee%(;8zJ802*px6z zlwg&mXlX(#B5nCr5nu)5G*ZoW6*o6x#QO-Y29R_M_BPg=Ye0`&o~~q2>vvI_8SAE^ yG?c!76r+gfb>ugXi>NOna_8m$aT-&;1Q-A|?2p+^qB;uz0000S->P)VAy4&37c;sz)H3Ltmq4H`?s$`^hVWAFQ|^GQcirm| zLI@#*5JCtcgm^}9>AOL?*-`J=zF$^c|&uUAjVA#a6s)9 zP0Su%G-L@-017|>C;$cc|2DXh_J@!*6nZBB`u+}wFAbJ}Hv-5i5b=XpA~Hnms|Umy z2}IcAxIkH~eJz0j;uS)yuYEReg8;JV$+ZL23GtzuCEY9mUG){}2O}u~ZG{%`i3s=3 zx@dwCB2+PQ-GWMWPrx$9eX}l>fNVZ|YZsVQS%G-gha*>ntg9v%yT+#}|K{A6XsL9z z3!E6AwnF#mFssU@OI@H>V|h+a5FZ+g1X8ik& z7EzH3eEf6HeJ{|zaN-AD45jMyc2`z>L4L>%$BnrbifNjs#b3mzjU^xxT2;oT#%I$# zH0i!@#y*{0{{R3 diff --git a/orte/contrib/shape_android/res/drawable-xhdpi/ic_action_download.png b/orte/contrib/shape_android/res/drawable-xhdpi/ic_action_download.png deleted file mode 100644 index 702ad476c581de01b5b27caf175da3a9214a4a71..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 470 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+7%Mzo978H@y_s>=_ppP2TkaHXRtH9t32Yh+TpX+um=-V; zvA^5Vu!CX8WF`-0JqGa!OlQ(F`))*9-|Kx_>o1kNC)dqZ7wYX9>h*8QK~#!OhY!qnN`$|gwT zNBd0`r?RGW*>8VOzcF&mF5exK`o65;oRMhVHuF12ruXOMn=oC8OggSxT?vzFPsc4@dsOt#+NtLm3gm*0@2#5u<^6{_+{>4o z+NxSM)#A%%x3*yR&TSQMm~^akmgn?EgM)}c!RsH31jAAJICtB&r7J*Up00i_>zopr E076E-F8}}l diff --git a/orte/contrib/shape_android/res/drawable-xhdpi/ic_action_refresh.png b/orte/contrib/shape_android/res/drawable-xhdpi/ic_action_refresh.png new file mode 100644 index 0000000000000000000000000000000000000000..ab4ab9da697b8c68c0c7ba498dc3bb3dc3da9c2b GIT binary patch literal 895 zcmV-_1AzRAP)CckPh%V0R3M2y&0fcAOnyAGC(sxGXNQY0rI3fagVyT<9`H*tvelU4-CJbC0VlE z2Nt+IL;@lKk$^}*Bp?znO}ShyPr=R{fM0=r1!(~QJcrAhkFk;)esl(xN6J>A;2~0ia@Ib@6GAwB|VR1RG@nRSrhnA zj=0q28)rQNFIpg;WKR~v1AYN=j-#;v0FN{N*L7wDA|n&6W_SW<);~ICJPAoWfk)rm zX!tp!Acr$nQ_yS3T5ybvt_y?Lr-Kq82~4~o$Xy%EB=;P+6=O-RbWIk65kO|I0^b7P z0q{mUGXIbGqjv!ncr@=<#f+2FLTJs0&G z3HWij0IkoW=!})yA%q>FN6FuJQ{7lGB|zx=Q=NTZ1WXpZ5dob@{mcJ@AV87z)l(+G zxf*m`hdq|#Dd(a`ot>hD-G>x{__Wn=&)_>lCKhleR?j2!`>b~YsI=XVbRy@H31fHf z0*Xqo4uSwC--SMfLcmG{UbixxdV4&RBxu^%>C`PiwryVBJpr^cwUkt++SzI1=|erm@*+zKXNh0OrE?o zV)}{!ZLjZ{Iri^6;~Aec(Gf4_1i3T2KLQgSXkIe?6CeD_(H@j+`Y@?J2#_9J?6lTZ zfvydZ$G$-KQJGap0-oTWT2<*Q2-XywDi)&L>PTCZ9wh$HP$VD{5DAC`ge?CA7yzOq VDq)Usy-@%F002ovPDHLkV1gKjk--1} literal 0 HcmV?d00001 diff --git a/orte/contrib/shape_android/res/drawable-xxhdpi/ic_action_cast.png b/orte/contrib/shape_android/res/drawable-xxhdpi/ic_action_cast.png deleted file mode 100644 index f394a3492d97aeef1359db547786e0aa260915f5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 827 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7OGok|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+nC^PIIEGZ*dNcce?jr|*_P4=tnhKf?Y&)1HeLuZ-GLr}6 z&hkm$0~kaY-Zug{A_80;+zS};o*7LuJH76tXSVa3_mkaDWZZQ5e0#2aw)JVCwP-*= zvr=~QyYIiXfBv|dv_JQg&HW`aUMyNx{~;*nN)lt5mQz<}odAm;H;T^55OCtOvlpSsSXRNe!XY;8A0RQJD<;HUi0LNa%X5t$GUfo;$2R%pJN~F4tKinuuDE->E-V& z6>9_z#(!LBo}tHl_NEl$qp9ca9O~3}dLj1oz+KjvwyuH?7A)*O^Zo6L*DE<}`*s)| zpPtcF$Jx4Q6IamjQ}3@e{*XJRd|LQfUG^;~WrC;*iG2FN_%Kel;h)bX7 wp9)Lv7LochDh~?evKi459Rowd<3FMa3@R!dt{=MJ>4Bs@UHx3vIVCg!0NSNz8~^|S diff --git a/orte/contrib/shape_android/res/drawable-xxhdpi/ic_action_download.png b/orte/contrib/shape_android/res/drawable-xxhdpi/ic_action_download.png deleted file mode 100644 index 6bcd83134a01ad5b656d02facc08024500e96849..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 574 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7OGok|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+7$11LIEGZ*dUNNZZ?l60dx60|s|LOYOnMI(cD2bakab{R z@xF}V_d3}Fj3teH3G4+7e>!GJOxDuXmHG1BTW`;lpndk`?Cpl9f%bub#Hu~~_M0@i zUf+nxElH}hdv$oH?Dr>5mc3<$N8}1p1OyrwaG@LX{o+rFyB1EqT7A8GTJ2u(dq<+r zp7;G^^WWkMgJ05Tk+(}0&o}6Obe_MAW7WDnp6>1SFL(X$Ji{2+QnVstw?OKLa&~+6 zKT>^i$;J0BJ#-8G@UE%OukGs8o%x$Xy5@&41Wx%b*4Db+;@p|y1HS~~k~T~H+A;rE z^9_?*Mf~@x!@n9aUfE%~_wL6UgY{L@mv+ojoMM|0p8VBlU;eCDK`xuJ9j`hEU0(fd zw|OeljiNh!+p;$Nue~~(>uNq53&pCc;uz%JZ zDc^lR`y#jA;=OLw0ln{>B;2ioIT;r0W#9OTPbK^P`--6LU!%9H{ok-s=U?kB`Dc?i sfPyt+-AR=_A$D6KQNfU~*PoG%;p5-r&?B3bKna4u)78&qol`;+0Do)tcmMzZ diff --git a/orte/contrib/shape_android/res/drawable-xxhdpi/ic_action_refresh.png b/orte/contrib/shape_android/res/drawable-xxhdpi/ic_action_refresh.png new file mode 100644 index 0000000000000000000000000000000000000000..44ee117ee91541ed71f27685dde0b03b51b89f7f GIT binary patch literal 1239 zcmV;|1StE7P) z5dr`J0000000000003wMK0iOlU?Cj&OWC$yA{_Z2)WC*+^3#HR9|H6uA>~fK3{<1{ zx9TJMcVE5FWjmGLALzB$>t!`#{^HAzC-VQuuTB6-#z?*lWgC?UZweA&FWb8$^H76) z!mN&nQ463fJ(caDWZAAk*8D0--5QX89Reugr;2!Apm6o7yyK}t@QoB;(@6m&@zm+L zXX5LERe&ULj9)N@8dqSwza)^=FVx@~0|uQDK$1_LS#ozOCiFa$|7_vXxk@E}=lGX$ zb9tSisuhN+*`}~Zd988O0$7lrt4w7tNjO<#STx9wn~EW?eIKm=4av_`_K`WdhrYUp zLE8jKT1Gxu{Fb+Mkv?Z6e-TR| zcH_A714GMutBO%J^{XIKHqUZ+Pi82)Wa2B=Cc9ad>)`Hx-zc06bN9JrtLsAQx;^H{e0&r zy5Iq3)}MiVUIBD7p2&PcdjM$mQwLna5j08F}_ENY*|b4D(*pbw1z z_Z=a7T`}HKqA_b@2$k5EUi_T?zSj zn$Hix1h^9DLeL2U@IqJZH;w{5aBE-d2#eWXcz~Y#k!}FCneBxDdguhOnrwss)z(i1 zm~Nrj9s=+oHTVuZfYJJO0_<#`_CbKlpoM0-IUwuvgph`ww|<&_elf^?tanc)9y;^2 zh#6E^R$o+ahWO`r8jf|QD)cN3zUpM5nU7tPZ^Hd_E>)g0ru_v=gUrX--eDhOfa}S+ z6C?SlFx%g-balESWzp8qF%rjSyd#J{w&Cwng{~| z2mtZ}3D5`m;YApM1poj50000000000fS~v#zyO={=$CR|bEp6S002ovPDHLkV1lVS BMRNcE literal 0 HcmV?d00001 diff --git a/orte/contrib/shape_android/res/layout/activity_help.xml b/orte/contrib/shape_android/res/layout/activity_help.xml new file mode 100644 index 0000000..28d11a2 --- /dev/null +++ b/orte/contrib/shape_android/res/layout/activity_help.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/orte/contrib/shape_android/res/layout/activity_main.xml b/orte/contrib/shape_android/res/layout/activity_main.xml deleted file mode 100644 index 57bafec..0000000 --- a/orte/contrib/shape_android/res/layout/activity_main.xml +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/orte/contrib/shape_android/res/layout/activity_publisher.xml b/orte/contrib/shape_android/res/layout/activity_publisher.xml new file mode 100644 index 0000000..df7af63 --- /dev/null +++ b/orte/contrib/shape_android/res/layout/activity_publisher.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/orte/contrib/shape_android/res/layout/activity_settings.xml b/orte/contrib/shape_android/res/layout/activity_settings.xml new file mode 100644 index 0000000..e367bb3 --- /dev/null +++ b/orte/contrib/shape_android/res/layout/activity_settings.xml @@ -0,0 +1,17 @@ + + + + + + + + diff --git a/orte/contrib/shape_android/res/layout/fragment_main.xml b/orte/contrib/shape_android/res/layout/fragment_main.xml deleted file mode 100644 index fcb917b..0000000 --- a/orte/contrib/shape_android/res/layout/fragment_main.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - diff --git a/orte/contrib/shape_android/res/layout/fragment_publisher.xml b/orte/contrib/shape_android/res/layout/fragment_publisher.xml deleted file mode 100644 index 83d4697..0000000 --- a/orte/contrib/shape_android/res/layout/fragment_publisher.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - diff --git a/orte/contrib/shape_android/res/layout/fragment_subscriber.xml b/orte/contrib/shape_android/res/layout/fragment_subscriber.xml deleted file mode 100644 index eff30d5..0000000 --- a/orte/contrib/shape_android/res/layout/fragment_subscriber.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - diff --git a/orte/contrib/shape_android/res/menu/help.xml b/orte/contrib/shape_android/res/menu/help.xml new file mode 100644 index 0000000..30e85b8 --- /dev/null +++ b/orte/contrib/shape_android/res/menu/help.xml @@ -0,0 +1,5 @@ + + + diff --git a/orte/contrib/shape_android/res/menu/main.xml b/orte/contrib/shape_android/res/menu/main.xml deleted file mode 100644 index 3671a87..0000000 --- a/orte/contrib/shape_android/res/menu/main.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/orte/contrib/shape_android/res/menu/publisher.xml b/orte/contrib/shape_android/res/menu/publisher.xml index 090b25d..33cad24 100644 --- a/orte/contrib/shape_android/res/menu/publisher.xml +++ b/orte/contrib/shape_android/res/menu/publisher.xml @@ -1,14 +1,30 @@ + tools:context="org.ocera.orte.shape_android.PublisherActivity" > + + + android:icon="@drawable/ic_action_new" /> + + diff --git a/orte/contrib/shape_android/res/menu/subscriber.xml b/orte/contrib/shape_android/res/menu/subscriber.xml index 1e0a5b0..3bcc931 100644 --- a/orte/contrib/shape_android/res/menu/subscriber.xml +++ b/orte/contrib/shape_android/res/menu/subscriber.xml @@ -1,27 +1,43 @@ - + tools:context="org.ocera.orte.shape_android.SubscriberActivity" > + + + android:showAsAction="never" /> + android:showAsAction="never" /> + android:showAsAction="never" /> + android:showAsAction="never" /> + android:showAsAction="never" /> + + + diff --git a/orte/contrib/shape_android/res/values-cs/strings.xml b/orte/contrib/shape_android/res/values-cs/strings.xml new file mode 100644 index 0000000..0fa5e2f --- /dev/null +++ b/orte/contrib/shape_android/res/values-cs/strings.xml @@ -0,0 +1,54 @@ + + + + ORTE demo aplikace + + Subscribers + Publishers + Nápověda + Nastavení + + Přepni + Nový + Nastavení + Nápověda + + Modrá + Zelená + Červená + Černá + Žlutá + + OK + ZruÅ¡it + Smazat + Přidat + Barva pro nový Publisher? + Publisher # + + O projektu ORTE + Open Real-Time Ethernet (ORTE) je open source implementace Real-Time Publish-Subscribe (RTPS) komunikačního protokolu. RTPS je nový protokol aplikační vrstvy cílící na oblast real-time komunikace, postavené na UDP protokolu. Protože existuje mnoho implementací TCP/IP v mnoha operačních systémech a RTPS protokol nemá žádné speciální HW/SW nároky, měl by být lehce portovatelný na mnoho cílových HW/SW platforem. Protože používá pouze UDP protokol, zachovává řízení časování a spolehlivosti. [zdroj] + O programu Shape + Shape je zkuÅ¡ební aplikace dodávaná se zdrojovým kódem ORTE. + + Ikony + Přepne z Publisherů na Subscribery a zpátky. + Vytvoří nový Publisher. + + Základní menu + Nastavení - nastavení parametrů jako IP adresy Managerů, scaling, … + Nápověda - zobrazí tuto nápovědu. + + Publisher menu + #n Color Shape (např. #1 Red Circle) je označení Publisherů. #n je sekvenční číslo následované barvou a tvarem. Po kliknutí se objeví menu, kde se nastavuje síla (strength) Publishera. Pokud je přidáno dva a více Publisherů stejné barvy, je Subscribery preferován ten s největší silou. + + Subscriber menu + Modrá, Zelená, Červená, Černá, Žlutá - ve výchozím nastavení je nastavené odebírání každé barvy. Nicméně odebírání určité barvy může být vymazáno (a znovu přidáno) a může být nastaven čas pro minimální zpoždění aktualizací Publisherů. + + Scaling + Povolí normování velikosti mezi implementací programu Shape pro Android a základní verzí. + Managers + IP adresy Managerů oddělené čárkou (,) + + + diff --git a/orte/contrib/shape_android/res/values-v11/styles.xml b/orte/contrib/shape_android/res/values-v11/styles.xml index a4a95bc..3c02242 100644 --- a/orte/contrib/shape_android/res/values-v11/styles.xml +++ b/orte/contrib/shape_android/res/values-v11/styles.xml @@ -4,7 +4,7 @@ Base application theme for API 11+. This theme completely replaces AppBaseTheme from res/values/styles.xml on API 11+ devices. --> - diff --git a/orte/contrib/shape_android/res/values-v14/styles.xml b/orte/contrib/shape_android/res/values-v14/styles.xml index 664f4f1..a91fd03 100644 --- a/orte/contrib/shape_android/res/values-v14/styles.xml +++ b/orte/contrib/shape_android/res/values-v14/styles.xml @@ -5,7 +5,7 @@ AppBaseTheme from BOTH res/values/styles.xml and res/values-v11/styles.xml on API 14+ devices. --> - diff --git a/orte/contrib/shape_android/res/values/strings.xml b/orte/contrib/shape_android/res/values/strings.xml index 3a3b40b..1fc4ef7 100644 --- a/orte/contrib/shape_android/res/values/strings.xml +++ b/orte/contrib/shape_android/res/values/strings.xml @@ -1,20 +1,54 @@ - shape4a - OK - Cancel - Color for new Publisher? - Publisher # - Delete - Add + ORTE demo application + + Subscribers + Publishers + Help + Settings + + Switch + New Settings Help + Blue Green Red Black Yellow - New + + OK + Cancel + Delete + Add + Color for new Publisher? + Publisher # + + About ORTE + The Open Real-Time Ethernet (ORTE) is an open source implementation of Real-Time Publish-Subscribe (RTPS) communication protocol. RTPS is new application layer protocol targeted to real-time communication area, which is build on the top of standard UDP stack. Since there are many TCP/IP stack implementations under many operating systems and RTPS protocol does not have any other special HW/SW requirements, it should be easily ported to many HW/SW target platforms. Because it uses only UDP protocol, it retains control of timing and reliability. [source] + About Shape + Shape is demo application delivered with ORTE source code. + + Icons + Goes from Publishers to Subscribers and back. + Create new Publisher. + + Generic menu + Settings - set up parameters like IP addresses of Managers, scaling, … + Help - shows this help. + + Publisher menu + #n Color Shape (i.e. #1 Red Circle) is how Publishers are denoted. #n is sequence number followed by color and shape. When Publisher is clicked, settings menu appear, where strength of Publisher may be changed. If two and more Publishers of same color are added, the one with the greatest strength is preferred by Subscribers. + + Subscriber menu + Blue, Green, Red, Black, Yellow - subscribing to each color is set to enabled by default. However, the subscription may be deleted (and added again) for certain color and minimum separation time may be set. + + Scaling + Allow scaling for shapes + Managers + Comma separated Manager\'s IP addresses + diff --git a/orte/contrib/shape_android/res/values/styles.xml b/orte/contrib/shape_android/res/values/styles.xml index 845fb57..6ce89c7 100644 --- a/orte/contrib/shape_android/res/values/styles.xml +++ b/orte/contrib/shape_android/res/values/styles.xml @@ -4,7 +4,7 @@ Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devices. --> -