Added call details activity that can be accessed by touching time in call history list
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout 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:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
tools:context=".CallDetailsActivity">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/peer"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:textSize="16sp"
|
||||
android:gravity="center_horizontal" >
|
||||
</TextView>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/headings"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/peer"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<TextView android:id="@+id/direction"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:textSize="16sp"
|
||||
android:text="@string/direction" >
|
||||
</TextView>
|
||||
|
||||
<TextView android:id="@+id/time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginStart="76dp"
|
||||
android:textSize="16sp"
|
||||
android:text="@string/time" >
|
||||
</TextView>
|
||||
|
||||
<TextView android:id="@+id/duration"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:textSize="16sp"
|
||||
android:text="@string/calls_duration">
|
||||
</TextView>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/calls"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/headings"
|
||||
android:layout_marginTop="12dp"
|
||||
android:divider="#00000000"
|
||||
android:dividerHeight="10dp" >
|
||||
</ListView>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -14,6 +14,7 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:textSize="16sp"
|
||||
android:gravity="center_horizontal" >
|
||||
</TextView>
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/direction"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginStart="12dp"
|
||||
android:contentDescription="@string/direction" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginStart="76dp"
|
||||
android:text="" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/duration"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:text="" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -1,13 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_marginBottom="0dp"
|
||||
android:layout_marginTop="0dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:descendantFocusability="blocksDescendants" >
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/TextAvatar"
|
||||
@@ -30,7 +26,7 @@
|
||||
app:cardCornerRadius="18dp" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/CardImageAvatar"
|
||||
android:id="@+id/ImageAvatar"
|
||||
android:contentDescription="@string/avatar_image"
|
||||
android:layout_height="36dp"
|
||||
android:layout_width="36dp"
|
||||
|
||||
@@ -242,6 +242,10 @@
|
||||
<string name="call">Soita</string>
|
||||
<string name="calls_calls">puhelut</string>
|
||||
<string name="calls_call">puhelun</string>
|
||||
<string name="direction">Suunta</string>
|
||||
<string name="peer">Pääri</string>
|
||||
<string name="time">Aika</string>
|
||||
<string name="calls_duration">Kesto</string>
|
||||
<string name="calls_call_message_question">Haluatko soittaa tai lähettää viestin kohteeseen
|
||||
\'%1$s\'?
|
||||
</string>
|
||||
|
||||
@@ -215,9 +215,14 @@
|
||||
<string name="tap_to_start">Tap to start application</string>
|
||||
<!-- Calls Activity -->
|
||||
<string name="call_history">Call History</string>
|
||||
<string name="call_details">Call Details</string>
|
||||
<string name="call">Call</string>
|
||||
<string name="calls_calls">calls</string>
|
||||
<string name="calls_call">call</string>
|
||||
<string name="peer">Peer</string>
|
||||
<string name="direction">Direction</string>
|
||||
<string name="time">Time</string>
|
||||
<string name="calls_duration">Duration</string>
|
||||
<string name="calls_call_message_question">Do you want to call or send message to \'%1$s\'?</string>
|
||||
<string name="calls_add_delete_question">Do you want to add \'%1$s\' to contacts or delete
|
||||
%2$s from call history?
|
||||
|
||||
Reference in New Issue
Block a user