forked from hush/SilentDragonAndroid-old
8 changed files with 188 additions and 63 deletions
@ -0,0 +1,20 @@ |
|||||
|
// Copyright 2019 The Hush developers |
||||
|
package org.myhush.silentdragon |
||||
|
|
||||
|
import android.support.v7.app.AppCompatActivity |
||||
|
import android.os.Bundle |
||||
|
import kotlinx.android.synthetic.main.activity_about.lblVersionName |
||||
|
|
||||
|
class AboutActivity : AppCompatActivity() { |
||||
|
|
||||
|
override fun onCreate(savedInstanceState: Bundle?) { |
||||
|
super.onCreate(savedInstanceState) |
||||
|
setContentView(R.layout.activity_about) |
||||
|
|
||||
|
updateUI() |
||||
|
} |
||||
|
|
||||
|
fun updateUI() { |
||||
|
lblVersionName.text = BuildConfig.VERSION_NAME |
||||
|
} |
||||
|
} |
@ -0,0 +1,104 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<android.support.constraint.ConstraintLayout |
||||
|
xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
xmlns:tools="http://schemas.android.com/tools" |
||||
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="match_parent" |
||||
|
tools:context="org.myhush.silentdragon.AboutActivity"> |
||||
|
|
||||
|
<android.support.constraint.ConstraintLayout |
||||
|
android:id="@+id/scrollView2" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="match_parent" |
||||
|
app:layout_constraintBottom_toBottomOf="parent" |
||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||
|
app:layout_constraintHorizontal_bias="0.0" |
||||
|
app:layout_constraintStart_toStartOf="parent" |
||||
|
app:layout_constraintTop_toTopOf="parent" |
||||
|
app:layout_constraintVertical_bias="1.0"> |
||||
|
|
||||
|
<LinearLayout |
||||
|
android:id="@+id/linearLayout" |
||||
|
android:layout_width="0dp" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:orientation="vertical" |
||||
|
app:layout_constraintBottom_toTopOf="parent" |
||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||
|
app:layout_constraintStart_toStartOf="parent" |
||||
|
app:layout_constraintTop_toTopOf="parent" /> |
||||
|
|
||||
|
<TextView |
||||
|
android:id="@+id/textView" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_marginStart="16dp" |
||||
|
android:layout_marginTop="16dp" |
||||
|
android:text="SilentDragon version" |
||||
|
android:textStyle="bold" |
||||
|
app:layout_constraintStart_toStartOf="parent" |
||||
|
app:layout_constraintTop_toTopOf="parent" /> |
||||
|
|
||||
|
<TextView |
||||
|
android:id="@+id/lblVersionName" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_marginStart="16dp" |
||||
|
android:layout_marginTop="8dp" |
||||
|
android:text="version" |
||||
|
app:layout_constraintStart_toStartOf="parent" |
||||
|
app:layout_constraintTop_toBottomOf="@+id/textView" /> |
||||
|
|
||||
|
<View |
||||
|
android:id="@+id/divider" |
||||
|
android:layout_width="0dp" |
||||
|
android:layout_height="2dp" |
||||
|
android:layout_marginStart="8dp" |
||||
|
android:layout_marginTop="16dp" |
||||
|
android:layout_marginEnd="8dp" |
||||
|
android:background="?android:attr/listDivider" |
||||
|
android:visibility="visible" |
||||
|
app:layout_constraintStart_toStartOf="parent" |
||||
|
app:layout_constraintTop_toBottomOf="@+id/lblVersionName" /> |
||||
|
tools:layout_editor_absoluteY="56dp" /> |
||||
|
|
||||
|
<TextView |
||||
|
android:id="@+id/Copyright" |
||||
|
android:layout_width="0dp" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_marginStart="16dp" |
||||
|
android:layout_marginTop="16dp" |
||||
|
android:layout_marginEnd="16dp" |
||||
|
android:text="Copyright" |
||||
|
android:textStyle="bold" |
||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||
|
app:layout_constraintStart_toStartOf="parent" |
||||
|
app:layout_constraintTop_toBottomOf="@id/divider" /> |
||||
|
|
||||
|
<TextView |
||||
|
android:id="@+id/CopyrightText" |
||||
|
android:layout_width="0dp" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_marginStart="16dp" |
||||
|
android:layout_marginTop="8dp" |
||||
|
android:layout_marginEnd="16dp" |
||||
|
android:text="2019 The Hush developers" |
||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||
|
app:layout_constraintStart_toStartOf="parent" |
||||
|
app:layout_constraintTop_toBottomOf="@+id/Copyright" /> |
||||
|
|
||||
|
<View |
||||
|
android:id="@+id/divider2" |
||||
|
android:layout_width="0dp" |
||||
|
android:layout_height="2dp" |
||||
|
android:layout_marginStart="8dp" |
||||
|
android:layout_marginTop="16dp" |
||||
|
android:layout_marginEnd="8dp" |
||||
|
android:background="?android:attr/listDivider" |
||||
|
android:visibility="visible" |
||||
|
app:layout_constraintStart_toStartOf="parent" |
||||
|
app:layout_constraintTop_toBottomOf="@+id/CopyrightText" /> |
||||
|
tools:layout_editor_absoluteY="56dp" /> |
||||
|
|
||||
|
</android.support.constraint.ConstraintLayout> |
||||
|
</android.support.constraint.ConstraintLayout> |
Loading…
Reference in new issue