Init main layout and strings
This commit is contained in:
parent
8deca9aec8
commit
3a7bee0bff
|
@ -6,13 +6,67 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<EditText
|
||||
android:layout_width="321dp"
|
||||
android:layout_height="48dp"
|
||||
android:inputType="textUri"
|
||||
android:ems="10"
|
||||
android:hint="@string/https_example_com"
|
||||
android:minHeight="48dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/header"
|
||||
app:layout_constraintBottom_toTopOf="@+id/buttonGet"
|
||||
android:textAlignment="center"
|
||||
android:importantForAutofill="no"
|
||||
android:autoText="false"
|
||||
android:id="@+id/url"
|
||||
android:text="@string/https_example_com"
|
||||
app:layout_constraintVertical_bias="1.0"/>
|
||||
|
||||
<TextView
|
||||
android:text="@string/ouinet_tester"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" android:id="@+id/header"
|
||||
app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.519" app:layout_constraintVertical_bias="0.023"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Display1"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/buttonGet"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.498"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.294"
|
||||
android:text="@string/get"
|
||||
android:clickable="false"
|
||||
android:onClick="getURL"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="349dp"
|
||||
android:layout_height="429dp"
|
||||
android:id="@+id/log_viewer"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/buttonGet"
|
||||
app:layout_constraintVertical_bias="0.527"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Hello World!"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
android:id="@+id/ouinetStatus"
|
||||
app:layout_constraintTop_toTopOf="@+id/header"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/url"
|
||||
app:layout_constraintVertical_bias="0.385"
|
||||
android:textAlignment="center"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:textSize="16sp"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -1,3 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">java-android</string>
|
||||
<string name="app_name">ouitest1</string>
|
||||
<string name="ouinet_tester">Ouinet Tester</string>
|
||||
<string name="fetch">Fetch</string>
|
||||
<string name="https_example_com">https://censorship.no</string>
|
||||
<string name="get">Get</string>
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user