Fixed headers and favorites size
This commit is contained in:
parent
2dccfa3db6
commit
bb3348dc24
3 changed files with 5 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
||||||
android:layout_height="1dp"/>
|
android:layout_height="1dp"/>
|
||||||
<LinearLayout android:orientation="horizontal"
|
<LinearLayout android:orientation="horizontal"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="match_parent">
|
||||||
<ImageView android:id="@+id/icon"
|
<ImageView android:id="@+id/icon"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_marginLeft="12dp"
|
android:layout_marginLeft="12dp"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<item name="android:layout_width">0dp</item>
|
<item name="android:layout_width">0dp</item>
|
||||||
<item name="android:layout_weight">1</item>
|
<item name="android:layout_weight">1</item>
|
||||||
<item name="android:layout_height">fill_parent</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:gravity">center_vertical</item>
|
||||||
<item name="android:textColor">@color/dashboard_black</item>
|
<item name="android:textColor">@color/dashboard_black</item>
|
||||||
<item name="android:layout_marginLeft">15dp</item>ll
|
<item name="android:layout_marginLeft">15dp</item>ll
|
||||||
|
|
|
@ -101,6 +101,9 @@ public class DashboardActivity extends SherlockFragmentActivity {
|
||||||
startActivityForResult(mapIndent, 0);
|
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);
|
favorites.addView(view);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue