This gives the user a clearer overview of the current state of the application, without having to expand all the tasks. Padding has been reduced to better utilize available screen space. The bring to front and remove buttons are currently always hidden. Test: Manual Change-Id: Ifcda0ff31fd5adb89a12ff6a024842c0e7a7ab29
83 lines
2.8 KiB
XML
83 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2017 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/group_item"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/task_label"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:layout_marginStart="@dimen/smallMargin"
|
|
android:text="@string/task_num"
|
|
android:textAppearance="@style/medium"
|
|
android:textSize="@dimen/regularText"/>
|
|
|
|
<TextView
|
|
android:id="@+id/task_id"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:text="@string/placeholder"
|
|
android:textAppearance="@style/medium"
|
|
android:textSize="@dimen/regularText"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:gravity="end"
|
|
android:id="@+id/activity_node_container"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/move_task_to_front_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="@dimen/smallMargin"
|
|
android:paddingStart="@dimen/smallMargin"
|
|
android:paddingEnd="@dimen/smallMargin"
|
|
android:gravity="end"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone">
|
|
|
|
<Button
|
|
android:id="@+id/kill_task_button"
|
|
style="@style/flatButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:text="@string/kill_task_button"/>
|
|
|
|
<Button
|
|
android:id="@+id/move_task_to_front_button"
|
|
style="@style/flatButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:text="@string/move_to_front"/>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|