Fixed headers and favorites size

This commit is contained in:
Denis 2014-11-14 15:52:25 +02:00
parent 2dccfa3db6
commit bb3348dc24
3 changed files with 5 additions and 2 deletions

View file

@ -10,7 +10,7 @@
android:layout_height="1dp"/>
<LinearLayout android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="match_parent">
<ImageView android:id="@+id/icon"
android:layout_gravity="center_vertical"
android:layout_marginLeft="12dp"

View file

@ -12,7 +12,7 @@
<item name="android:layout_width">0dp</item>
<item name="android:layout_weight">1</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:paddingTop">11dp</item>
<item name="android:paddingTop">2dp</item>
<item name="android:gravity">center_vertical</item>
<item name="android:textColor">@color/dashboard_black</item>
<item name="android:layout_marginLeft">15dp</item>ll

View file

@ -101,6 +101,9 @@ public class DashboardActivity extends SherlockFragmentActivity {
startActivityForResult(mapIndent, 0);
}
});
int height = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 50, getResources().getDisplayMetrics());
LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, height);
view.setLayoutParams(lp);
favorites.addView(view);
}
}