Add tipeee to AboutFragment

This commit is contained in:
Schoumi 2019-03-29 16:52:57 +01:00
parent 92a5e15a49
commit 9cb7bb6bd1
5 changed files with 34 additions and 6 deletions

View File

@ -52,8 +52,8 @@ public class AboutFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, final ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.about, container, false);
ImageView donate = v.findViewById(R.id.donate);
donate.setOnClickListener(new View.OnClickListener() {
ImageView liberapay = v.findViewById(R.id.donate);
liberapay.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String url = "https://fr.liberapay.com/Schoumi";
@ -63,6 +63,17 @@ public class AboutFragment extends Fragment {
}
});
ImageView tipeee = v.findViewById(R.id.donate_tipeee);
tipeee.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String url = "https://tipeee.com/schoumi";
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(url));
startActivity(intent);
}
});
TextView tv = v.findViewById(R.id.licence);
tv.setOnClickListener(new View.OnClickListener() {
@Override

View File

@ -363,6 +363,7 @@ public class MapsFragment extends Fragment implements OnMapReadyCallback {
@Override
public void onMapReady(AnyMap anyMap) {
map = anyMap;
userCenter = null;
askWritePermission();
map.animateCamera(CameraUpdateFactory.getInstance().newLatLngZoom(previousLocation,previousZoom));
startUpdateLocations();

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -7,7 +7,6 @@
>
<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
@ -27,7 +26,6 @@
android:background="@drawable/logo"/>
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
@ -37,7 +35,6 @@
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/textView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
@ -58,7 +55,6 @@
android:background="@drawable/ic_launcher"/>
<TextView
android:id="@+id/textView5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
@ -77,6 +73,25 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginBottom="15dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:gravity="center_horizontal"
android:text="@string/or_donate"
android:textAppearance="?android:attr/textAppearanceMedium" />
<ImageView
android:layout_marginTop="20dp"
android:src="@drawable/tipeee_tip"
android:id="@+id/donate_tipeee"
android:contentDescription="@string/liberapay"
android:layout_width="wrap_content"
android:layout_height="60dp" />
<TextView
android:id="@+id/licence"
android:layout_width="wrap_content"

View File

@ -93,6 +93,7 @@
<string name="need_write">La Carte à besoin des droits en écriture/lecture sur le stockage externe</string>
<string name="retry">Réessayer</string>
<string name="home">Accueil</string>
<string name="or_donate">ou grâce à Tipeee</string>
<string-array name="gender_array">