Added icon to error layout
This commit is contained in:
parent
7cf7db1b8c
commit
2fb651dcab
8 changed files with 22 additions and 12 deletions
BIN
OsmAnd/res/drawable-hdpi/ic_crashlog.png
Normal file
BIN
OsmAnd/res/drawable-hdpi/ic_crashlog.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
OsmAnd/res/drawable-mdpi/ic_crashlog.png
Normal file
BIN
OsmAnd/res/drawable-mdpi/ic_crashlog.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
OsmAnd/res/drawable-xhdpi/ic_crashlog.png
Normal file
BIN
OsmAnd/res/drawable-xhdpi/ic_crashlog.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
OsmAnd/res/drawable-xxhdpi/ic_crashlog.png
Normal file
BIN
OsmAnd/res/drawable-xxhdpi/ic_crashlog.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
|
@ -5,13 +5,24 @@
|
||||||
android:background="@drawable/bg_cardui"
|
android:background="@drawable/bg_cardui"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
<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"
|
<TextView android:id="@+id/error_header"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="@dimen/dashFavIconMargin"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:gravity="center_horizontal"
|
android:layout_marginBottom="@dimen/subHeaderPadding"
|
||||||
|
android:layout_marginTop="@dimen/subHeaderPadding"
|
||||||
android:textColor="@color/dashboard_black"
|
android:textColor="@color/dashboard_black"
|
||||||
android:layout_gravity="center_horizontal"/>
|
android:layout_gravity="center_horizontal"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<View android:layout_width="match_parent"
|
<View android:layout_width="match_parent"
|
||||||
android:background="@color/dashboard_divider"
|
android:background="@color/dashboard_divider"
|
||||||
android:layout_height="1dp"/>
|
android:layout_height="1dp"/>
|
||||||
|
|
|
@ -44,9 +44,9 @@
|
||||||
android:src="@drawable/background"
|
android:src="@drawable/background"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/dashMapHeight"
|
android:layout_height="@dimen/dashMapHeight"
|
||||||
android:layout_marginLeft="@dimen/dashMapMargin"
|
android:layout_marginLeft="@dimen/subHeaderPadding"
|
||||||
android:layout_marginRight="@dimen/dashMapMargin"
|
android:layout_marginRight="@dimen/subHeaderPadding"
|
||||||
android:layout_marginBottom="@dimen/dashMapMargin"
|
android:layout_marginBottom="@dimen/subHeaderPadding"
|
||||||
android:visibility="gone"/>
|
android:visibility="gone"/>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
<dimen name="dashFavIconMargin">12dp</dimen>
|
<dimen name="dashFavIconMargin">12dp</dimen>
|
||||||
<dimen name="dashFavDirectionSize">10dp</dimen>
|
<dimen name="dashFavDirectionSize">10dp</dimen>
|
||||||
<dimen name="dashMapHeight">110dp</dimen>
|
<dimen name="dashMapHeight">110dp</dimen>
|
||||||
<dimen name="dashMapMargin">2dp</dimen>
|
|
||||||
<dimen name="dashNoteIconSize">28dp</dimen>
|
<dimen name="dashNoteIconSize">28dp</dimen>
|
||||||
<dimen name="dashPluginPadding">4dp</dimen>
|
<dimen name="dashPluginPadding">4dp</dimen>
|
||||||
<dimen name="dashPluginMargin">8dp</dimen>
|
<dimen name="dashPluginMargin">8dp</dimen>
|
||||||
|
|
|
@ -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
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
startMapActivity();
|
startMapActivity();
|
||||||
|
|
Loading…
Reference in a new issue