Compare commits

..

No commits in common. "master" and "v1.2.0" have entirely different histories.

4 changed files with 23 additions and 9 deletions

View File

@ -72,6 +72,7 @@ dependencies {
implementation("androidx.preference:preference-ktx:1.2.1")
implementation("com.takisoft.preferencex:preferencex:1.1.0")
implementation("com.google.android.material:material:1.12.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.4")
implementation("androidx.lifecycle:lifecycle-service:2.8.4")
testImplementation("junit:junit:4.13.2")

View File

@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
tools:context=".activities.MainActivity">
<com.google.android.material.button.MaterialButton
@ -12,30 +11,42 @@
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:paddingLeft="10pt"
android:paddingTop="5pt"
android:paddingRight="10pt"
android:paddingBottom="5pt"
android:textAllCaps="false"
android:textSize="24sp"
app:layout_constraintBottom_toTopOf="@+id/status_text"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
tools:text="@string/vpn_connect" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/status_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/status_button"
android:layout_marginTop="8dp"
android:layout_centerHorizontal="true"
app:layout_constraintBottom_toTopOf="@+id/proxy_address"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/status_button"
app:layout_constraintVertical_chainStyle="packed"
tools:text="@string/vpn_disconnected" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/proxy_address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/status_text"
android:layout_centerHorizontal="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/status_text"
app:layout_constraintVertical_chainStyle="packed"
tools:text="127.0.0.1:1080" />
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -6,6 +6,7 @@
<Preference
android:key="byedpi_readme"
android:title="Documentation"
android:textColor="?attr/textFillColor"
android:icon="@drawable/ic_github_36">
<intent
android:action="android.intent.action.VIEW"

View File

@ -6,6 +6,7 @@
<Preference
android:key="byedpi_readme"
android:title="@string/byedpi_readme_link"
android:textColor="?attr/textFillColor"
android:icon="@drawable/ic_github_36">
<intent
android:action="android.intent.action.VIEW"