Initial login screen design

git-svn-id: https://osmand.googlecode.com/svn/trunk@120 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
andrei.adamian 2010-06-02 17:19:51 +00:00
parent 3833f018f2
commit 962b79e948
9 changed files with 54 additions and 12 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
OsmAnd/res/drawable/map.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -2,18 +2,59 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:orientation="vertical" android:layout_width="fill_parent" android:orientation="vertical"
android:layout_height="fill_parent" android:background="@color/menu_background"> android:layout_height="fill_parent" android:background="@drawable/background"
android:gravity="center">
<TableLayout android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow>
<Button
android:id="@+id/MapButton"
android:text="@string/map_Button"
android:background="@drawable/btn_orange"
android:textColor="#FFFFFF"
android:textStyle="bold"
android:layout_width="140dip"
android:layout_height="70dip"
android:drawableLeft="@drawable/map"/>
<Button
android:id="@+id/SearchButton"
android:text="@string/search_button"
android:background="@drawable/btn_orange"
android:textColor="#FFFFFF"
android:textStyle="bold"
android:layout_width="140dip"
android:layout_height="70dip"
android:drawableLeft="@drawable/find"/>
</TableRow>
<TableRow>
<Button
android:id="@+id/FavoritesButton"
android:text="@string/favorites_Button"
android:background="@drawable/btn_orange"
android:textColor="#FFFFFF"
android:textStyle="bold"
android:layout_width="140dip"
android:layout_height="70dip"
android:drawableLeft="@drawable/favorites"/>
<Button
android:id="@+id/SettingsButton"
android:text="@string/settings_Button"
android:background="@drawable/btn_orange"
android:textColor="#FFFFFF"
android:textStyle="bold"
android:layout_width="140dip"
android:layout_height="70dip"
android:drawableLeft="@drawable/settings"/>
</TableRow>
</TableLayout><!--
<Button android:layout_height="85dp"
android:layout_gravity="center" android:id="@+id/MapButton"
android:text="@string/map_Button" android:layout_width="200dp" android:layout_marginTop="30dp"></Button>
<Button android:layout_height="85dp" android:id="@+id/SearchButton" android:text="@string/search_button"
android:layout_width="200dp" android:layout_gravity="center" android:layout_marginTop="20dp"></Button>
<Button android:layout_height="85dp"
android:layout_gravity="center" android:id="@+id/SettingsButton"
android:text="@string/settings_Button" android:layout_width="200dp" android:layout_marginTop="20dp"></Button>
<FrameLayout android:id="@+id/FrameLayout01" <FrameLayout android:id="@+id/FrameLayout01"
android:layout_height="fill_parent" android:layout_width="fill_parent"> android:layout_height="fill_parent" android:layout_width="fill_parent">
<Button android:layout_width="wrap_content" <Button android:layout_width="wrap_content"
@ -25,4 +66,4 @@
</LinearLayout> --></LinearLayout>

View file

@ -36,6 +36,7 @@
<string name="exit_Button">Exit</string> <string name="exit_Button">Exit</string>
<string name="map_Button">Map</string> <string name="map_Button">Map</string>
<string name="settings_Button">Settings</string> <string name="settings_Button">Settings</string>
<string name="favorites_Button">Favorites</string>
<string name="search_button">Search</string> <string name="search_button">Search</string>
<color name="menu_background">#CFFACD</color> <color name="menu_background">#CFFACD</color>
<string name="search_activity">Search</string> <string name="search_activity">Search</string>

View file

@ -132,7 +132,7 @@ public class MainMenuActivity extends Activity {
startActivity(search); startActivity(search);
} }
}); });
/*
exitButton = (Button) findViewById(R.id.ExitButton); exitButton = (Button) findViewById(R.id.ExitButton);
exitButton.setOnClickListener(new OnClickListener() { exitButton.setOnClickListener(new OnClickListener() {
@Override @Override
@ -140,7 +140,7 @@ public class MainMenuActivity extends Activity {
mNotificationManager.cancel(APP_NOTIFICATION_ID); mNotificationManager.cancel(APP_NOTIFICATION_ID);
MainMenuActivity.this.finish(); MainMenuActivity.this.finish();
} }
}); });*/
startApplication(); startApplication();
} }