cordova-plugin-stepist
Version:
Cordova / PhoneGap Plugin for the Step Counting (Pedometer).
133 lines (115 loc) • 5.17 kB
text/xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/fitness_notification"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingLeft="6dp"
android:paddingRight="6dp"
android:paddingTop="0dp"
android:paddingBottom="0dp"
android:background="@color/notificationBackground">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/stepist_foreground_notification_buttons_start" />
<Button
android:id="@+id/button4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/stepist_foreground_notification_buttons_stop" />
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/stepist_foreground_notification_buttons_pause" />
<Button
android:id="@+id/button5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/stepist_foreground_notification_buttons_resume" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="fill_horizontal">
<!-- Steps and Calories -->
<TextView
android:id="@+id/text_steps"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/stepist_foreground_notification_info_steps"
android:textColor="@color/notificationText"
android:textSize="14sp"
android:layout_marginTop="4dp" />
<TextView
android:id="@+id/text_speed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/stepist_foreground_notification_info_speed"
android:textColor="@color/notificationText"
android:textSize="14sp" />
<TextView
android:id="@+id/text_calories"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/stepist_foreground_notification_info_calories"
android:textColor="@color/notificationText"
android:textSize="14sp"
android:layout_marginTop="2dp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="fill_horizontal">
<TextView
android:id="@+id/text_elapsed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/stepist_foreground_notification_info_time_elapsed"
android:textColor="@color/notificationText"
android:textSize="14sp" />
<TextView
android:id="@+id/text_remaining_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/stepist_foreground_notification_info_time_remaining"
android:textColor="@color/notificationText"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="fill_horizontal">
<!-- Remaining Time and Distance -->
<TextView
android:id="@+id/text_distance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/stepist_foreground_notification_info_distance_taken"
android:textColor="@color/notificationText"
android:textSize="14sp"
android:layout_marginTop="2dp" />
<TextView
android:id="@+id/text_remaining_distance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/stepist_foreground_notification_info_distance_remaining"
android:textColor="@color/notificationText"
android:textSize="14sp"
android:layout_marginTop="2dp" />
</LinearLayout>
</LinearLayout>