Updated layout

This commit is contained in:
Denis 2014-11-05 17:04:11 +02:00
parent 80990295c5
commit 29b6cd520b
2 changed files with 19 additions and 5 deletions

View file

@ -4,11 +4,14 @@
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:padding="8dp" android:padding="8dp"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:background="@drawable/background">
<LinearLayout android:id="@+id/search" <LinearLayout android:id="@+id/search"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="wrap_content" android:layout_width="fill_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:background="@color/color_white"
android:layout_marginBottom="8dp">
<TextView android:text="@string/tip_search" <TextView android:text="@string/tip_search"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:gravity="center_horizontal" android:gravity="center_horizontal"
@ -17,6 +20,8 @@
<LinearLayout android:id="@+id/home" <LinearLayout android:id="@+id/home"
android:orientation="horizontal" android:orientation="horizontal"
android:background="@color/color_white"
android:layout_marginBottom="8dp"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<ImageView android:id="@+id/home_img" <ImageView android:id="@+id/home_img"
@ -32,8 +37,10 @@
</LinearLayout> </LinearLayout>
<LinearLayout android:orientation="vertical" <LinearLayout android:orientation="vertical"
android:layout_width="wrap_content" android:background="@color/color_white"
android:layout_height="fill_parent"> android:layout_marginBottom="8dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" <LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
@ -57,6 +64,8 @@
</LinearLayout> </LinearLayout>
<LinearLayout android:orientation="horizontal" <LinearLayout android:orientation="horizontal"
android:background="@color/color_white"
android:layout_marginBottom="8dp"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<TextView android:layout_width="0dp" <TextView android:layout_width="0dp"
@ -64,11 +73,13 @@
android:text="@string/my_data_Button" android:text="@string/my_data_Button"
android:layout_weight="1"/> android:layout_weight="1"/>
<Button android:id="@+id/btn_show_all" <Button android:id="@+id/btn_show_all"
android:text="show all"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"/> android:layout_height="wrap_content"/>
</LinearLayout> </LinearLayout>
<ListView android:id="@+id/list_favorites" <ListView android:id="@+id/list_favorites"
android:background="@color/color_white"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content"/> android:layout_height="wrap_content"/>
</LinearLayout> </LinearLayout>

View file

@ -2,6 +2,7 @@ package net.osmand.plus.activities;
import android.os.Bundle; import android.os.Bundle;
import android.view.View; import android.view.View;
import android.view.Window;
import com.actionbarsherlock.app.SherlockFragmentActivity; import com.actionbarsherlock.app.SherlockFragmentActivity;
import net.osmand.plus.R; import net.osmand.plus.R;
import net.osmand.plus.render.MapVectorLayer; import net.osmand.plus.render.MapVectorLayer;
@ -20,9 +21,11 @@ public class DashboardActivity extends SherlockFragmentActivity {
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.dashboard); setContentView(R.layout.dashboard);
prepareMapView(); prepareMapView();
} }
private void prepareMapView() { private void prepareMapView() {