mirror of
https://framagit.org/tom79/nitterizeme
synced 2025-02-03 02:37:48 +01:00
Some changes with layout
This commit is contained in:
parent
8eab09cf30
commit
0ce6fa8a2f
@ -23,6 +23,7 @@ import android.text.SpannableString;
|
||||
import android.text.style.ForegroundColorSpan;
|
||||
import android.text.style.UnderlineSpan;
|
||||
import android.view.MenuItem;
|
||||
import android.widget.Button;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
@ -92,13 +93,10 @@ public class AboutActivity extends AppCompatActivity {
|
||||
});
|
||||
|
||||
//Developer donation
|
||||
TextView developer_donation = findViewById(R.id.developer_donation);
|
||||
content = new SpannableString(developer_donation.getText().toString());
|
||||
content.setSpan(new ForegroundColorSpan(ContextCompat.getColor(AboutActivity.this,R.color.colorAccent)), 0, content.length(), 0);
|
||||
content.setSpan(new UnderlineSpan(), 0, content.length(), 0);
|
||||
developer_donation.setText(content);
|
||||
developer_donation.setOnClickListener(v -> {
|
||||
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://fedilab.app/page/donations/"));
|
||||
Button donate = findViewById(R.id.donate);
|
||||
|
||||
donate.setOnClickListener(v -> {
|
||||
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.paypal.me/Mastalab"));
|
||||
startActivity(browserIntent);
|
||||
});
|
||||
|
||||
|
@ -96,6 +96,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:textSize="16sp"
|
||||
android:id="@+id/developer_mastodon"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -103,11 +104,12 @@
|
||||
android:text="\@fedilab@toot.fedilab.org"
|
||||
tools:ignore="HardcodedText" />
|
||||
<LinearLayout
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:textSize="16sp"
|
||||
android:id="@+id/framagit"
|
||||
android:text="Framagit"
|
||||
android:layout_width="0dp"
|
||||
@ -115,6 +117,7 @@
|
||||
android:layout_weight="1"
|
||||
tools:ignore="HardcodedText" />
|
||||
<TextView
|
||||
android:textSize="16sp"
|
||||
android:id="@+id/github"
|
||||
android:text="Github"
|
||||
android:layout_width="0dp"
|
||||
@ -122,6 +125,7 @@
|
||||
android:layout_weight="1"
|
||||
tools:ignore="HardcodedText" />
|
||||
<TextView
|
||||
android:textSize="16sp"
|
||||
android:id="@+id/codeberg"
|
||||
android:text="Codeberg"
|
||||
android:layout_width="0dp"
|
||||
@ -129,24 +133,25 @@
|
||||
android:layout_weight="1"
|
||||
tools:ignore="HardcodedText" />
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:layout_marginTop="5dp"
|
||||
android:textStyle="bold"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/developer_donation"
|
||||
android:text="@string/donations"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
<!-- Idea from info -->
|
||||
|
||||
|
||||
<Button
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/Donate"
|
||||
android:id="@+id/donate"
|
||||
/>
|
||||
|
||||
<!-- About the app -->
|
||||
<TextView
|
||||
android:layout_margin="5dp"
|
||||
android:layout_margin="10dp"
|
||||
android:textStyle="bold"
|
||||
android:textSize="16sp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
|
@ -15,4 +15,5 @@
|
||||
<string name="instances_saved">Custom instances have been saved!</string>
|
||||
<string name="custom_invidious">Custom Invidious instance</string>
|
||||
<string name="no_apps">No applications by default</string>
|
||||
<string name="Donate">Donate</string>
|
||||
</resources>
|
||||
|
Loading…
x
Reference in New Issue
Block a user