parent
42d69fd5e3
commit
0315b3b5c2
|
@ -11,7 +11,9 @@ import android.os.Bundle;
|
|||
import android.support.annotation.NonNull;
|
||||
import android.support.design.widget.Snackbar;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
import android.text.method.LinkMovementMethod;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
import org.osmdroid.api.IGeoPoint;
|
||||
import org.osmdroid.util.GeoPoint;
|
||||
|
@ -105,6 +107,8 @@ public class ShareLocationActivity extends LocationActivity implements LocationL
|
|||
}
|
||||
toggleFixedLocation();
|
||||
});
|
||||
|
||||
binding.openstreetmapCredit.setMovementMethod(LinkMovementMethod.getInstance());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -26,6 +26,18 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/openstreetmap_credit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|start"
|
||||
android:layout_margin="4dp"
|
||||
android:text="@string/openstreetmap_credit"
|
||||
android:background="@color/white50"
|
||||
android:paddingLeft="4dp"
|
||||
android:paddingRight="4dp"
|
||||
app:elevation="4dp" />
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
<color name="white87">#deffffff</color>
|
||||
<color name="white70">#b2ffffff</color>
|
||||
<color name="white12">#1fffffff</color>
|
||||
<color name="white50">#80FFFFFF</color>
|
||||
<color name="grey50">#fffafafa</color>
|
||||
<color name="grey200">#ffeeeeee</color>
|
||||
<color name="grey300">#ffe0e0e0</color>
|
||||
|
|
|
@ -882,4 +882,5 @@
|
|||
<string name="pref_channel_discovery">Channel discovery method</string>
|
||||
<string name="backup">Backup</string>
|
||||
<string name="category_about">About</string>
|
||||
<string name="openstreetmap_credit">© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors</string>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue