You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
194 lines
7.1 KiB
194 lines
7.1 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/default_margin" >
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical" >
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Headline"
|
|
android:text="@string/phoneCall" />
|
|
|
|
<TableLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:shrinkColumns="1"
|
|
android:stretchColumns="1" >
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/state" />
|
|
|
|
<RadioGroup
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<RadioButton
|
|
android:id="@+id/rbTriggerPhoneCallStateRinging"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:text="@string/ringing" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/rbTriggerPhoneCallStateStarted"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/started" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/rbTriggerPhoneCallStateStopped"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/stopped" />
|
|
|
|
</RadioGroup>
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:layout_span="2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_margin="10dp"
|
|
android:background="#aa000000" />
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/phoneDirection" />
|
|
|
|
<RadioGroup
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<RadioButton
|
|
android:id="@+id/rbTriggerPhoneCallDirectionAny"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:text="@string/any" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/rbTriggerPhoneCallDirectionIncoming"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/incoming" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/rbTriggerPhoneCallDirectionOutgoing"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/outgoing" />
|
|
|
|
</RadioGroup>
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:layout_span="2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_margin="10dp"
|
|
android:background="#aa000000" />
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/phoneNumber" />
|
|
|
|
<EditText
|
|
android:id="@+id/etTriggerPhoneCallPhoneNumber"
|
|
android:inputType="text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical" />
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_span="2"
|
|
android:text="@string/phoneNumberExplanation" />
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:layout_span="2"
|
|
android:text="@string/urlRegex" />
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<Button
|
|
android:id="@+id/bTriggerPhoneCallImportFromContacts"
|
|
android:drawableLeft="@drawable/contacts"
|
|
android:layout_marginVertical="@dimen/default_margin"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_span="2"
|
|
android:text="@string/importNumberFromContacts" />
|
|
|
|
</TableRow>
|
|
|
|
</TableLayout>
|
|
|
|
<Button
|
|
android:id="@+id/bSaveTriggerPhoneCall"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/save" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
</ScrollView> |