change icons

git-svn-id: https://osmand.googlecode.com/svn/trunk@129 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
frolovmo 2010-06-03 13:28:15 +00:00
parent 25900dca4a
commit abef9a8eff
6 changed files with 9 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View file

@ -7,8 +7,8 @@
<ZoomControls android:id="@+id/ZoomControls01" <ZoomControls android:id="@+id/ZoomControls01"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right"></ZoomControls> android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right"></ZoomControls>
<ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|left" android:id="@+id/BackToMenu" android:background="@drawable/back"></ImageButton> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|left" android:id="@+id/BackToMenu" android:background="@drawable/back_menu"></ImageButton>
<ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top|right" android:id="@+id/BackToLocation" android:background="@drawable/icon"></ImageButton> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top|right" android:id="@+id/BackToLocation" android:background="@drawable/back_location"></ImageButton>
</FrameLayout> </FrameLayout>

View file

@ -15,7 +15,7 @@
</TextView> </TextView>
<Button android:id="@+id/CountryButton" android:text="@string/ChooseCountry"> <Button android:id="@+id/CountryButton" android:text="@string/ChooseCountry">
</Button> </Button>
<ImageButton android:id="@+id/ResetCountry" android:background="@drawable/icon" android:layout_marginRight = "5dp"> <ImageButton android:id="@+id/ResetCountry" android:layout_marginRight = "5dp" android:background="@drawable/reset">
</ImageButton> </ImageButton>
</TableRow> </TableRow>
<TableRow android:id="@+id/TableRow" android:layout_marginLeft = "5dp" > <TableRow android:id="@+id/TableRow" android:layout_marginLeft = "5dp" >
@ -23,7 +23,7 @@
</TextView> </TextView>
<Button android:id="@+id/CityButton" android:text="@string/choose_city"> <Button android:id="@+id/CityButton" android:text="@string/choose_city">
</Button> </Button>
<ImageButton android:id="@+id/ResetCity" android:background="@drawable/icon" android:layout_marginRight = "5dp"> <ImageButton android:id="@+id/ResetCity" android:layout_marginRight = "5dp" android:background="@drawable/reset">
</ImageButton> </ImageButton>
</TableRow> </TableRow>
<TableRow android:id="@+id/TableRow" android:layout_marginLeft = "5dp"> <TableRow android:id="@+id/TableRow" android:layout_marginLeft = "5dp">
@ -31,7 +31,7 @@
</TextView> </TextView>
<Button android:id="@+id/StreetButton" android:text="@string/choose_street"> <Button android:id="@+id/StreetButton" android:text="@string/choose_street">
</Button> </Button>
<ImageButton android:id="@+id/ResetStreet" android:background="@drawable/icon" android:layout_marginRight = "5dp"> <ImageButton android:id="@+id/ResetStreet" android:layout_marginRight = "5dp" android:background="@drawable/reset">
</ImageButton> </ImageButton>
</TableRow> </TableRow>
<TableRow android:id="@+id/TableRow" android:layout_marginLeft = "5dp"> <TableRow android:id="@+id/TableRow" android:layout_marginLeft = "5dp">
@ -39,7 +39,7 @@
</TextView> </TextView>
<Button android:id="@+id/BuildingButton" android:text="@string/choose_building"> <Button android:id="@+id/BuildingButton" android:text="@string/choose_building">
</Button> </Button>
<ImageButton android:id="@+id/ResetBuilding" android:background="@drawable/icon" android:layout_marginRight = "5dp"> <ImageButton android:id="@+id/ResetBuilding" android:layout_marginRight = "5dp" android:background="@drawable/reset">
</ImageButton> </ImageButton>
</TableRow> </TableRow>
<TableRow android:id="@+id/TableRow" android:layout_marginLeft = "5dp" > <TableRow android:id="@+id/TableRow" android:layout_marginLeft = "5dp" >

View file

@ -133,7 +133,7 @@ public class MapActivity extends Activity implements LocationListener, IMapLocat
backToLocation.setOnClickListener(new OnClickListener(){ backToLocation.setOnClickListener(new OnClickListener(){
@Override @Override
public void onClick(View v) { public void onClick(View v) {
backToLocation.setVisibility(View.INVISIBLE); backToLocation.setVisibility(View.VISIBLE);
if(!isMapLinkedToLocation()){ if(!isMapLinkedToLocation()){
getPreferences(MODE_WORLD_READABLE).edit().putBoolean(BACK_TO_LOCATION, true).commit(); getPreferences(MODE_WORLD_READABLE).edit().putBoolean(BACK_TO_LOCATION, true).commit();
if(locationLayer.getLastKnownLocation() != null){ if(locationLayer.getLastKnownLocation() != null){
@ -213,8 +213,8 @@ public class MapActivity extends Activity implements LocationListener, IMapLocat
} }
} }
} else { } else {
if(backToLocation.getVisibility() != View.INVISIBLE){ if(backToLocation.getVisibility() != View.VISIBLE){
backToLocation.setVisibility(View.INVISIBLE); backToLocation.setVisibility(View.VISIBLE);
} }
} }
} }