Added icon to error layout

This commit is contained in:
Denis 2014-12-23 18:58:28 +02:00
parent 7cf7db1b8c
commit 2fb651dcab
8 changed files with 22 additions and 12 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

@ -5,13 +5,24 @@
android:background="@drawable/bg_cardui"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView android:id="@+id/error_header"
android:layout_height="wrap_content"
android:padding="@dimen/dashFavIconMargin"
android:layout_width="match_parent"
android:gravity="center_horizontal"
android:textColor="@color/dashboard_black"
android:layout_gravity="center_horizontal"/>
<LinearLayout android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView android:src="@drawable/ic_crashlog"
android:layout_marginLeft="@dimen/dashFavIconMargin"
android:layout_marginRight="@dimen/dashFavIconMargin"
android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView android:id="@+id/error_header"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginBottom="@dimen/subHeaderPadding"
android:layout_marginTop="@dimen/subHeaderPadding"
android:textColor="@color/dashboard_black"
android:layout_gravity="center_horizontal"/>
</LinearLayout>
<View android:layout_width="match_parent"
android:background="@color/dashboard_divider"
android:layout_height="1dp"/>

View file

@ -44,9 +44,9 @@
android:src="@drawable/background"
android:layout_width="match_parent"
android:layout_height="@dimen/dashMapHeight"
android:layout_marginLeft="@dimen/dashMapMargin"
android:layout_marginRight="@dimen/dashMapMargin"
android:layout_marginBottom="@dimen/dashMapMargin"
android:layout_marginLeft="@dimen/subHeaderPadding"
android:layout_marginRight="@dimen/subHeaderPadding"
android:layout_marginBottom="@dimen/subHeaderPadding"
android:visibility="gone"/>
</RelativeLayout>

View file

@ -10,7 +10,6 @@
<dimen name="dashFavIconMargin">12dp</dimen>
<dimen name="dashFavDirectionSize">10dp</dimen>
<dimen name="dashMapHeight">110dp</dimen>
<dimen name="dashMapMargin">2dp</dimen>
<dimen name="dashNoteIconSize">28dp</dimen>
<dimen name="dashPluginPadding">4dp</dimen>
<dimen name="dashPluginMargin">8dp</dimen>

View file

@ -62,7 +62,7 @@ public class DashMapFragment extends DashBaseFragment implements IMapDownloader
});
((ImageView) view.findViewById(R.id.map_image)).setOnClickListener(new View.OnClickListener() {
view.findViewById(R.id.map_image).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startMapActivity();