File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
java/info/zamojski/soft/towercollector/views Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 9
9
import android .location .Location ;
10
10
import android .os .AsyncTask ;
11
11
import android .os .Bundle ;
12
+ import android .text .method .LinkMovementMethod ;
12
13
import android .view .InputDevice ;
13
14
import android .view .LayoutInflater ;
14
15
import android .view .MotionEvent ;
15
16
import android .view .View ;
16
17
import android .view .ViewGroup ;
17
18
import android .widget .ImageButton ;
19
+ import android .widget .TextView ;
18
20
import android .widget .Toast ;
19
21
20
22
import androidx .annotation .DrawableRes ;
@@ -152,6 +154,9 @@ protected void configureControls(View view) {
152
154
myLocationButton = view .findViewById (R .id .main_map_my_location_button );
153
155
myLocationButton .setOnLongClickListener (IMAGE_BUTTON_LONG_CLICK_LISTENER );
154
156
157
+ TextView copyrightTextView = view .findViewById (R .id .main_map_copyright );
158
+ copyrightTextView .setMovementMethod (LinkMovementMethod .getInstance ());
159
+
155
160
mainMapView .setTileSource (TileSourceFactory .MAPNIK );
156
161
mainMapView .setMultiTouchControls (true );
157
162
mainMapView .setMinZoomLevel (5.0 );
Original file line number Diff line number Diff line change 56
56
android : paddingVertical =" 10dp"
57
57
android : src =" @drawable/map_follow_me" />
58
58
59
+ <TextView
60
+ android : id =" @+id/main_map_copyright"
61
+ android : layout_width =" wrap_content"
62
+ android : layout_height =" wrap_content"
63
+ android : layout_alignParentEnd =" true"
64
+ android : layout_alignParentBottom =" true"
65
+ android : background =" ?attr/icon_background_color"
66
+ android : paddingHorizontal =" 5dp"
67
+ android : text =" @string/map_copyright"
68
+ android : textColor =" ?attr/icon_color"
69
+ android : textSize =" @dimen/smallest_font" />
70
+
59
71
</RelativeLayout >
60
72
61
73
</LinearLayout >
Original file line number Diff line number Diff line change 10
10
<string name =" upload_url_opencellid_org" translatable =" false" >https://www.opencellid.org/measure/uploadCsv</string >
11
11
<string name =" upload_url_mls" translatable =" false" >https://location.services.mozilla.com/v2/geosubmit?key=<xliff : g id =" api_key" >%s</xliff : g ></string >
12
12
13
+ <string name =" map_copyright" translatable =" false" >© <a href =" https://www.openstreetmap.org/copyright/" >OpenStreetMap</a > contributors</string >
14
+
13
15
<string name =" file_provider_authority" translatable =" false" >info.zamojski.soft.towercollector.fileprovider</string >
14
16
15
17
<string name =" preferences_current_value_summary_format" translatable =" false" ><![CDATA[ <br/><b>[%s]</b>]]> </string >
You can’t perform that action at this time.
0 commit comments