Commit a8a30b35 authored by Oliver Adams's avatar Oliver Adams

Closed #166

parent 9b281fb9
......@@ -3,6 +3,12 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" android:baselineAligned="false" android:id="@+id/addNewUser">
<ImageView
android:src="@drawable/microphone"
android:id="@+id/recordingType"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="15sp"
android:layout_height="wrap_content"
......@@ -12,26 +18,15 @@
android:layout_gravity="center_vertical"
android:id="@+id/recordingName"
android:padding="1dp"/>
<LinearLayout
android:orientation="vertical"
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="0.5">
<TextView android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="12sp"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text=""
android:layout_gravity="center_vertical"
android:id="@+id/recordingDateDuration"
android:padding="1dp"/>
<ImageView
android:src="@drawable/exchange"
android:id="@+id/respeakingIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>
<TextView android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="12sp"
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="0.5"
android:text=""
android:layout_gravity="center_vertical"
android:id="@+id/recordingDateDuration"
android:padding="1dp"/>
<!-- Possible Recording image distinct from the programatically added
Speaker images
<ImageView android:src="@drawable/unknown_speaker"
......
......@@ -48,6 +48,14 @@ public class RecordingArrayAdapter extends ArrayAdapter<Recording> {
LinearLayout recordingView =
(LinearLayout) inflater.inflate(LIST_ITEM_LAYOUT, parent, false);
Recording recording = getItem(position);
ImageView recordingTypeView = (ImageView) recordingView.findViewById(
R.id.recordingType);
if (!recording.isOriginal()) {
// Set it to be a two way arrow icon to indicate respeaking.
recordingTypeView.setImageResource(R.drawable.exchange);
}
TextView recordingNameView =
(TextView) recordingView.findViewById(R.id.recordingName);
TextView recordingDateDurationView =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment