improved About activity

This commit is contained in:
Juha Heinanen
2018-08-07 21:22:57 +03:00
parent 2daee5f82d
commit 1a929d8c36
3 changed files with 24 additions and 13 deletions

View File

@ -2,6 +2,7 @@ package com.tutpro.baresip
import android.app.Activity
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.MenuItem
@ -12,9 +13,9 @@ class AboutActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_about)
val aboutView = findViewById(R.id.aboutText) as TextView
aboutView.isEnabled = false
aboutView.text = getText(R.string.aboutText)
val aboutText = findViewById(R.id.aboutText) as TextView
aboutText.text = getText(R.string.aboutText)
aboutText.setTextColor(Color.BLACK)
}
override fun onOptionsItemSelected(item: MenuItem): Boolean {

View File

@ -1,17 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.tutpro.baresip.AboutActivity">
tools:context=".AboutActivity">
<EditText
<ScrollView
android:id="@+id/aboutView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical"
android:fillViewport="true" >
<TextView
android:id="@+id/aboutText"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
android:layout_height="wrap_content" />
</RelativeLayout>
</ScrollView>
</LinearLayout>

View File

@ -9,9 +9,9 @@
- start by creating an account (click item titles for help)\n
- usually there is no need to edit the config\n
- in config, dns_server by default points to 8.8.8.8:53 for Android 8+ usage\n
- contacts and history entries can be removed and added to contacts by long clicks\n
- contacts can be removed by long clicks\n
- call click when callee has not been given can be used for re-dial\n\n
- peers of calls and messages can be added to contacts by long clicks\n
- long clicks can also be used to remove calls, messages, and contacts\n
- call click when callee has not been given can be used for re-dial\n
</string>
<string name="noAccounts">No accounts</string>
<string name="dispName">Name (if any) used in From URI of outbound requests.</string>