change icons
git-svn-id: https://osmand.googlecode.com/svn/trunk@129 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
25900dca4a
commit
abef9a8eff
6 changed files with 9 additions and 9 deletions
BIN
OsmAnd/res/drawable/back_location.png
Normal file
BIN
OsmAnd/res/drawable/back_location.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6 KiB |
BIN
OsmAnd/res/drawable/back_menu.png
Normal file
BIN
OsmAnd/res/drawable/back_menu.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.5 KiB |
BIN
OsmAnd/res/drawable/reset.png
Normal file
BIN
OsmAnd/res/drawable/reset.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
|
@ -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>
|
||||||
|
|
|
@ -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" >
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue