From bed99dc1ead7a619deedc61e2bf763cc462f07c0 Mon Sep 17 00:00:00 2001 From: Denis Date: Thu, 29 Jan 2015 14:10:32 +0200 Subject: [PATCH 1/7] Fixed osmo layout --- OsmAnd/res/layout/osmo_group_list.xml | 30 +++++++++++++++++++ .../osmand/plus/osmo/OsMoGroupsActivity.java | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 OsmAnd/res/layout/osmo_group_list.xml diff --git a/OsmAnd/res/layout/osmo_group_list.xml b/OsmAnd/res/layout/osmo_group_list.xml new file mode 100644 index 0000000000..1b4095476c --- /dev/null +++ b/OsmAnd/res/layout/osmo_group_list.xml @@ -0,0 +1,30 @@ + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java b/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java index 25fa730842..6c1c32dcc6 100644 --- a/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java +++ b/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java @@ -138,7 +138,7 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements new OsMoIntentHandler(app, osMoPlugin).execute(getIntent()); } } - setContentView(R.layout.expandable_list); + setContentView(R.layout.osmo_group_list); getSupportActionBar().setTitle(R.string.osmo_activity); setSupportProgressBarIndeterminateVisibility(false); setupHeader(); From 1aee28df26de15dd2c4c756b626ce2ac1bf08f02 Mon Sep 17 00:00:00 2001 From: Denis Date: Thu, 29 Jan 2015 14:47:48 +0200 Subject: [PATCH 2/7] Added flag for action bar back button. Added back button for actionmode --- OsmAnd/res/drawable-hdpi/action_mode_back.png | Bin 0 -> 667 bytes OsmAnd/res/drawable-xhdpi/action_mode_back.png | Bin 0 -> 706 bytes OsmAnd/res/drawable-xxhdpi/action_mode_back.png | Bin 0 -> 924 bytes OsmAnd/res/drawable-xxxhdpi/action_mode_back.png | Bin 0 -> 1437 bytes OsmAnd/res/values/styles.xml | 4 ++++ .../osmand/plus/activities/MainMenuActivity.java | 1 + .../plus/activities/OsmandActionBarActivity.java | 14 +++++++++++--- 7 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 OsmAnd/res/drawable-hdpi/action_mode_back.png create mode 100644 OsmAnd/res/drawable-xhdpi/action_mode_back.png create mode 100644 OsmAnd/res/drawable-xxhdpi/action_mode_back.png create mode 100644 OsmAnd/res/drawable-xxxhdpi/action_mode_back.png diff --git a/OsmAnd/res/drawable-hdpi/action_mode_back.png b/OsmAnd/res/drawable-hdpi/action_mode_back.png new file mode 100644 index 0000000000000000000000000000000000000000..6c36eae2f4aee9ca8665b7436f3317042e6dcc97 GIT binary patch literal 667 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbBSkfJR9T^xl_H+M9WCijWi-X*q z7}lMWc?skwBzpw;GB8xBF)%c=FfjZA3N^f7U???UV0e|lz+eS5K)hhiu0R{01Y44~ zy9>jA5L~c#`DCC7XMsm#F_88EW4Dvpc0l8^JzX3_A`ZWuaWLqRfr#sQZH;$-Vq>>j z7d-vJ_>bA@asAG~kSVVhCH6F4GFzHC^WoW)7gJQ`+?oAE^?;?H&KmDz&)?Qtf8;HW zt}=M`RXKdo!cEE=$p?;!u3m9@zEh)-Ef&BFrnYw4D zZ=aRMSN2S;__otqg+E^Nj9eK$-&nEv#Er;#@7#Ng)So&q)-VSru-;+LKOp*4@9rsv z1g1UA{0G<*(zey79ITmP?RssJnU!D8@5-qqd-Km*O^Fd!S$ucKKV<{wOJ>>kEj&NZ z)A_w-y={|cEl1Xm)Obcwt*K?nYXY-oT)B8*-t|3w<}Au$8PZ+mA3PN+pk}YUF!Zl{jjBlzt{7+P2vnp&9}0=ZTO23Ho$jzZCp zo1c=IR*74~(!a{jfEpx0HU#IVm6RtIr7}3CNS%G}U;vjb? zhIQv;UIIA^$sR$z3=CCj3=9n|3=F@3LJcn%7)pVryh>nTu$sZZAYL$MSD+10f-TA0 z-G$*l2rk&Wd@@jkv%n*=7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$1O>vXk5cyw9C_a^+jx{Z}V8 zPTjcS#9c*qfweJ=KlSA!F)tG5(>4+Q%yf3eEUx!*h6&o4 zy>4MsOs0DNy311O$#}c7DtS}Zb-C@_40X&uxE`ES@qL$X_x|$i=C!9}HR8U_Ns>9z z_-Mb!Dch?R#ccHxnyge_rj$AadEI$dx^uDfB)u7`UO{)*R5bHACy8u#@$9&u2yYo&u(h7J;Oy zKa5$j(g$lko!S9RgsLU35hW>!C8<`)MX5lF!N|bSMAyJv*T^`;(89{l)XLNl$h9&s zxUyh&6pDu2{FKbJO57Tj{#AYk)F276Aviy+q&%@GmBBG3KPgqgGdD3kH7GSPrLyp3 RDkzsQc)I$ztaD0e0swE)fB^si literal 0 HcmV?d00001 diff --git a/OsmAnd/res/drawable-xxxhdpi/action_mode_back.png b/OsmAnd/res/drawable-xxxhdpi/action_mode_back.png new file mode 100644 index 0000000000000000000000000000000000000000..70c2040210887f654dfea3b13ca7758424c5f070 GIT binary patch literal 1437 zcmbVLeM}o=7=H_uGz?6mI00EWOP0W9dmsI}yV22)Ye$`B2+d%bQLfhmE^v3<^;ipz zK#*l2nL?IM_|J-q#>8kAV@S4u!XFz#{KG|@*4U z8jvj$wasDJPO33bi+E&(N315Rk;4cau~R18YN2ra6@XPzF;mQJl9d(|rzi@=2$Ud<(83t)lvFlul%i!B4-6mW z6d|GtvV^2OvLU%cbr@i#+a-vRKw!tQ6ipKaDMRCI1jS7lDvGJPwydLS9sh3{yIMzs zoe>_bSr7V_{S6$!n7G9yoAN< z_L2l)BXJxGm&Z%GyqMKYVVEW3V>c}BB5jn}OJbCb!Evv}ZS&wBi;p2Z9?a^tkQuCB zimI%{@tL>+jGM;VpNgeD3eT#t5|rik%mmc7%Bmb~l_QA9gOmqYPLNW1MXEpBatG0Y!y*X@ApQF6w)cyIBx_dK&xsOWS z)2n059Y^=XZ*@color/actionbar_light_color @style/Widget.Styled.ActionBarLight @style/Widget.Styled.ActionBarLight + @drawable/action_mode_back + @drawable/action_mode_back - + + + + + - + + + + diff --git a/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java b/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java index 6c1c32dcc6..72c34ed565 100644 --- a/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java +++ b/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java @@ -952,13 +952,13 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements 0, 0,/*R.drawable.ic_action_marker_light,*/ MenuItemCompat.SHOW_AS_ACTION_IF_ROOM | MenuItemCompat.SHOW_AS_ACTION_WITH_TEXT); createMenuItem(menu, SHARE_SESSION, R.string.osmo_share_session, - R.drawable.ic_action_gshare_light, R.drawable.ic_action_gshare_dark, + R.drawable.ic_action_gshare_dark, R.drawable.ic_action_gshare_dark, MenuItemCompat.SHOW_AS_ACTION_IF_ROOM); createMenuItem(menu, CREATE_GROUP, R.string.osmo_create_group, - R.drawable.ic_action_plus_light, R.drawable.ic_action_plus_dark, + R.drawable.ic_action_plus_dark, R.drawable.ic_action_plus_dark, MenuItemCompat.SHOW_AS_ACTION_IF_ROOM | MenuItemCompat.SHOW_AS_ACTION_WITH_TEXT); createMenuItem(menu, SETTINGS_ID, R.string.settings, - R.drawable.ic_action_settings_light, R.drawable.ic_action_settings_dark, + R.drawable.ic_action_settings_dark, R.drawable.ic_action_settings_dark, MenuItemCompat.SHOW_AS_ACTION_IF_ROOM); return super.onCreateOptionsMenu(menu); }