Skip to content

Commit

Permalink
TrackController: center time.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisguse committed Aug 2, 2020
1 parent 63e9041 commit 1189a07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
9 changes: 0 additions & 9 deletions src/main/res/layout-land/track_controller.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ limitations under the License.
android:paddingLeft="8dp"
android:paddingRight="8dp">

<View
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />

<ImageButton
android:id="@+id/track_controller_record"
android:layout_width="wrap_content"
Expand Down Expand Up @@ -69,9 +64,5 @@ limitations under the License.
android:contentDescription="@string/image_stop"
android:src="@drawable/ic_button_stop_disabled" />

<View
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
</merge>
17 changes: 5 additions & 12 deletions src/main/res/layout/track_controller.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ limitations under the License.
android:paddingTop="8dp"
android:paddingBottom="8dp">

<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />

<ImageButton
android:id="@+id/track_controller_record"
android:layout_width="0dp"
Expand All @@ -39,14 +34,16 @@ limitations under the License.
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="6">
android:layout_weight="6"
android:gravity="center"
android:layout_gravity="center">

<TextView
android:id="@+id/track_controller_total_time"
style="@style/TextSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:textColor="@android:color/white" />

Expand All @@ -56,7 +53,7 @@ limitations under the License.
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/track_controller_total_time"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:singleLine="true" />
</RelativeLayout>

Expand All @@ -69,9 +66,5 @@ limitations under the License.
android:contentDescription="@string/image_stop"
android:src="@drawable/ic_button_stop_disabled" />

<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
</LinearLayout>
</merge>

0 comments on commit 1189a07

Please sign in to comment.