improved About activity
This commit is contained in:
@@ -2,6 +2,7 @@ package com.tutpro.baresip
|
|||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
|
import android.graphics.Color
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.support.v7.app.AppCompatActivity
|
import android.support.v7.app.AppCompatActivity
|
||||||
import android.view.MenuItem
|
import android.view.MenuItem
|
||||||
@@ -12,9 +13,9 @@ class AboutActivity : AppCompatActivity() {
|
|||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
setContentView(R.layout.activity_about)
|
setContentView(R.layout.activity_about)
|
||||||
val aboutView = findViewById(R.id.aboutText) as TextView
|
val aboutText = findViewById(R.id.aboutText) as TextView
|
||||||
aboutView.isEnabled = false
|
aboutText.text = getText(R.string.aboutText)
|
||||||
aboutView.text = getText(R.string.aboutText)
|
aboutText.setTextColor(Color.BLACK)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||||
|
|||||||
@@ -1,17 +1,27 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:orientation="vertical"
|
||||||
android:layout_height="match_parent"
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||||
android:paddingTop="@dimen/activity_vertical_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:id="@+id/aboutText"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</ScrollView>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
- start by creating an account (click item titles for help)\n
|
- start by creating an account (click item titles for help)\n
|
||||||
- usually there is no need to edit the config\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
|
- 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
|
- peers of calls and messages can be added to contacts by long clicks\n
|
||||||
- contacts can be removed 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\n
|
- call click when callee has not been given can be used for re-dial\n
|
||||||
</string>
|
</string>
|
||||||
<string name="noAccounts">No accounts</string>
|
<string name="noAccounts">No accounts</string>
|
||||||
<string name="dispName">Name (if any) used in From URI of outbound requests.</string>
|
<string name="dispName">Name (if any) used in From URI of outbound requests.</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user