Skip to content

armgit / haven

Public Imported from GitHub
0

Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors

Move item index number to right

Arka Prava Basu9c41f2a3a738
diff --git a/src/main/res/layout/item_audio.xml b/src/main/res/layout/item_audio.xml
index cab1e8f..69f44dc 100644
--- a/src/main/res/layout/item_audio.xml
+++ b/src/main/res/layout/item_audio.xml
@@ -15,19 +15,31 @@
android:orientation="vertical"
android:padding="@dimen/activity_margin_half">
- <TextView
- android:id="@+id/index_number"
- android:textColor="#808080"
- android:textSize="12sp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
-
- <TextView
- android:id="@+id/item_audio_title"
- style="@style/TextAppearance.AppCompat.Title"
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- tools:text="Title" />
+ android:gravity="center_vertical"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/item_audio_title"
+ style="@style/TextAppearance.AppCompat.Title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ tools:text="Title" />
+
+ <TextView
+ android:id="@+id/index_number"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="4dp"
+ android:layout_marginLeft="4dp"
+ android:textColor="#808080"
+ android:textSize="12sp"
+ tools:text="#123" />
+
+ </LinearLayout>
<com.github.derlio.waveform.SimpleWaveformView
android:id="@+id/item_sound"
diff --git a/src/main/res/layout/item_event.xml b/src/main/res/layout/item_event.xml
index a97ebf0..4b1996b 100644
--- a/src/main/res/layout/item_event.xml
+++ b/src/main/res/layout/item_event.xml
@@ -15,19 +15,31 @@
android:orientation="vertical"
android:padding="@dimen/activity_margin_half">
- <TextView
- android:id="@+id/index_number"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="#808080"
- android:textSize="12sp" />
-
- <TextView
- android:id="@+id/event_item_title"
- style="@style/TextAppearance.AppCompat.Title"
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- tools:text="Title" />
+ android:gravity="center_vertical"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/event_item_title"
+ style="@style/TextAppearance.AppCompat.Title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ tools:text="Title" />
+
+ <TextView
+ android:id="@+id/index_number"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="4dp"
+ android:layout_marginLeft="4dp"
+ android:textColor="#808080"
+ android:textSize="12sp"
+ tools:text="#123" />
+
+ </LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
diff --git a/src/main/res/layout/item_event_trigger.xml b/src/main/res/layout/item_event_trigger.xml
index 4def30a..3b48787 100644
--- a/src/main/res/layout/item_event_trigger.xml
+++ b/src/main/res/layout/item_event_trigger.xml
@@ -14,19 +14,31 @@
android:orientation="vertical"
android:padding="@dimen/activity_margin_half">
- <TextView
- android:id="@+id/index_number"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="#808080"
- android:textSize="12sp" />
-
- <TextView
- android:id="@+id/item_trigger_title"
- style="@style/TextAppearance.AppCompat.Title"
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- tools:text="Title" />
+ android:gravity="center_vertical"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/item_trigger_title"
+ style="@style/TextAppearance.AppCompat.Title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ tools:text="Title" />
+
+ <TextView
+ android:id="@+id/index_number"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="4dp"
+ android:layout_marginLeft="4dp"
+ android:textColor="#808080"
+ android:textSize="12sp"
+ tools:text="#123" />
+
+ </LinearLayout>
<TextView
android:id="@+id/item_trigger_desc"
diff --git a/src/main/res/layout/item_photo.xml b/src/main/res/layout/item_photo.xml
index e5ebf0b..18c67b7 100644
--- a/src/main/res/layout/item_photo.xml
+++ b/src/main/res/layout/item_photo.xml
@@ -14,19 +14,31 @@
android:orientation="vertical"
android:padding="@dimen/activity_margin_half">
- <TextView
- android:id="@+id/index_number"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="#808080"
- android:textSize="12sp" />
-
- <TextView
- android:id="@+id/item_camera_title"
- style="@style/TextAppearance.AppCompat.Title"
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- tools:text="Title" />
+ android:gravity="center_vertical"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/item_camera_title"
+ style="@style/TextAppearance.AppCompat.Title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ tools:text="Title" />
+
+ <TextView
+ android:id="@+id/index_number"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="4dp"
+ android:layout_marginLeft="4dp"
+ android:textColor="#808080"
+ android:textSize="12sp"
+ tools:text="#123" />
+
+ </LinearLayout>
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/item_camera_image"
diff --git a/src/main/res/layout/item_video.xml b/src/main/res/layout/item_video.xml
index 38bceb8..3735390 100644
--- a/src/main/res/layout/item_video.xml
+++ b/src/main/res/layout/item_video.xml
@@ -14,19 +14,31 @@
android:orientation="vertical"
android:padding="@dimen/activity_margin_half">
- <TextView
- android:id="@+id/index_number"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="#808080"
- android:textSize="12sp" />
-
- <TextView
- android:id="@+id/item_video_title"
- style="@style/TextAppearance.AppCompat.Title"
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- tools:text="Title" />
+ android:gravity="center_vertical"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/item_video_title"
+ style="@style/TextAppearance.AppCompat.Title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ tools:text="Title" />
+
+ <TextView
+ android:id="@+id/index_number"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="4dp"
+ android:layout_marginLeft="4dp"
+ android:textColor="#808080"
+ android:textSize="12sp"
+ tools:text="#123" />
+
+ </LinearLayout>
<VideoView
android:id="@+id/item_video_view"