Add new app mode
BIN
OsmAnd/res/drawable-hdpi/ic_action_motorcycle_dark.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
OsmAnd/res/drawable-hdpi/ic_action_motorcycle_light.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
OsmAnd/res/drawable-hdpi/ic_action_trekking_dark.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
OsmAnd/res/drawable-hdpi/ic_action_trekking_light.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
OsmAnd/res/drawable-hdpi/ic_motorcycle.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
OsmAnd/res/drawable-hdpi/ic_trekking.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 3.6 KiB |
BIN
OsmAnd/res/drawable-large/ic_action_motorcycle_dark.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
OsmAnd/res/drawable-large/ic_action_motorcycle_light.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
OsmAnd/res/drawable-large/ic_action_trekking_dark.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
OsmAnd/res/drawable-large/ic_action_trekking_light.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
OsmAnd/res/drawable-mdpi/ic_action_motorcycle_dark.png
Normal file
After Width: | Height: | Size: 701 B |
BIN
OsmAnd/res/drawable-mdpi/ic_action_motorcycle_light.png
Normal file
After Width: | Height: | Size: 861 B |
BIN
OsmAnd/res/drawable-mdpi/ic_action_trekking_dark.png
Normal file
After Width: | Height: | Size: 723 B |
BIN
OsmAnd/res/drawable-mdpi/ic_action_trekking_light.png
Normal file
After Width: | Height: | Size: 866 B |
BIN
OsmAnd/res/drawable-mdpi/ic_motorcycle.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
OsmAnd/res/drawable-mdpi/ic_trekking.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
OsmAnd/res/drawable-xhdpi/ic_action_motorcycle_dark.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
OsmAnd/res/drawable-xhdpi/ic_action_motorcycle_light.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
OsmAnd/res/drawable-xhdpi/ic_action_trekking_dark.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
OsmAnd/res/drawable-xhdpi/ic_action_trekking_light.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
OsmAnd/res/drawable-xhdpi/ic_motorcycle.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
OsmAnd/res/drawable-xhdpi/ic_trekking.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
|
@ -31,9 +31,10 @@ import android.view.ViewGroup;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.CheckBox;
|
import android.widget.CheckBox;
|
||||||
import android.widget.CompoundButton;
|
import android.widget.CompoundButton;
|
||||||
import android.widget.FrameLayout;
|
|
||||||
import android.widget.HorizontalScrollView;
|
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
|
import android.widget.LinearLayout.LayoutParams;
|
||||||
|
import android.widget.HorizontalScrollView;
|
||||||
|
import android.widget.ScrollView;
|
||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
@ -285,6 +286,9 @@ public class NavigateAction {
|
||||||
HorizontalScrollView scroll = new HorizontalScrollView(ctx);
|
HorizontalScrollView scroll = new HorizontalScrollView(ctx);
|
||||||
|
|
||||||
topLayout.addView(scroll);
|
topLayout.addView(scroll);
|
||||||
|
LinearLayout ll = new LinearLayout(ctx);
|
||||||
|
ll.setOrientation(LinearLayout.HORIZONTAL);
|
||||||
|
scroll.addView(ll);
|
||||||
|
|
||||||
int k = 0;
|
int k = 0;
|
||||||
int left = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, ctx.getResources().getDisplayMetrics());
|
int left = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, ctx.getResources().getDisplayMetrics());
|
||||||
|
@ -296,10 +300,9 @@ public class NavigateAction {
|
||||||
tb.setTextOff("");
|
tb.setTextOff("");
|
||||||
tb.setContentDescription(ma.toHumanString(ctx));
|
tb.setContentDescription(ma.toHumanString(ctx));
|
||||||
tb.setButtonDrawable(ma.getIconId());
|
tb.setButtonDrawable(ma.getIconId());
|
||||||
FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(metrics, metrics);
|
LayoutParams lp = new LinearLayout.LayoutParams(metrics, metrics);
|
||||||
lp.setMargins(left, 0, 0, 0);
|
lp.setMargins(left, 0, 0, 0);
|
||||||
scroll.addView(tb, lp);
|
ll.addView(tb, lp);
|
||||||
|
|
||||||
}
|
}
|
||||||
return buttons;
|
return buttons;
|
||||||
}
|
}
|
||||||
|
|