Fix avoid roads
This commit is contained in:
parent
b168de340a
commit
44875d1f03
2 changed files with 16 additions and 11 deletions
|
@ -1,11 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="12dip"
|
||||
android:layout_marginLeft="dip"
|
||||
android:layout_marginTop="12dip"
|
||||
android:gravity="center_vertical"
|
||||
android:textSize="20sp" >
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
</TextView>
|
||||
<TextView
|
||||
android:id="@+id/Text"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="12dip"
|
||||
android:layout_marginLeft="dip"
|
||||
android:layout_marginTop="12dip"
|
||||
android:gravity="center_vertical"
|
||||
android:textSize="20sp" >
|
||||
</TextView>
|
||||
|
||||
</LinearLayout>
|
|
@ -21,7 +21,6 @@ import android.app.AlertDialog;
|
|||
import android.app.AlertDialog.Builder;
|
||||
import android.content.DialogInterface;
|
||||
import android.os.AsyncTask;
|
||||
import android.util.TypedValue;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ArrayAdapter;
|
||||
|
@ -58,9 +57,9 @@ public class AvoidSpecificRoads {
|
|||
// User super class to create the View
|
||||
View v = convertView;
|
||||
if (position == 0) {
|
||||
TextView tv = (TextView) ctx.getLayoutInflater().inflate(R.layout.list_bigtextview, null);
|
||||
v= ctx.getLayoutInflater().inflate(R.layout.list_bigtextview, null);
|
||||
TextView tv = (TextView) v.findViewById(R.id.Text);
|
||||
tv.setText(app.getString(R.string.select_impassable_road));
|
||||
v = tv;
|
||||
} else {
|
||||
if (v == null || v.findViewById(R.id.info_close) == null) {
|
||||
v = ctx.getLayoutInflater().inflate(R.layout.waypoint_reached, null);
|
||||
|
|
Loading…
Reference in a new issue