267 lines
10 KiB
XML
267 lines
10 KiB
XML
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:paddingTop="10dp"
|
|
android:paddingLeft="15dp"
|
|
android:paddingRight="15dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/button_settings"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp"
|
|
android:layout_gravity="end"
|
|
android:src="@drawable/ic_settings"
|
|
app:tint="@color/grey"/>
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/title"
|
|
android:textSize="26dp"
|
|
android:gravity="center"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/button_sync"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp"
|
|
android:layout_gravity="start"
|
|
android:src="@drawable/ic_sync"
|
|
app:tint="@color/grey"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<HorizontalScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginBottom="10dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/logbooks_buttons_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
</LinearLayout>
|
|
|
|
</HorizontalScrollView>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/log_an_event"
|
|
android:gravity="center_horizontal"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/buttons_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/button_bottle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:layout_margin="10dp"
|
|
android:background="@drawable/button_background"
|
|
android:gravity="center_horizontal"
|
|
android:textSize="50dp"
|
|
android:text="@string/event_bottle_type"/>
|
|
|
|
<TextView
|
|
android:id="@+id/button_scale"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_margin="10dp"
|
|
android:background="@drawable/button_background"
|
|
android:gravity="center_horizontal"
|
|
android:textSize="50dp"
|
|
android:text="@string/event_scale_type"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/button_nipple_left"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/button_background"
|
|
android:gravity="center_horizontal"
|
|
android:textSize="30dp"
|
|
android:text="🤱⬅️"/>
|
|
|
|
<TextView
|
|
android:id="@+id/button_nipple_both"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/button_background"
|
|
android:gravity="center_horizontal"
|
|
android:textSize="30dp"
|
|
android:text="🤱↔️"/>
|
|
|
|
<TextView
|
|
android:id="@+id/button_nipple_right"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/button_background"
|
|
android:gravity="center_horizontal"
|
|
android:textSize="30dp"
|
|
android:text="🤱➡️️"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/button_change_poo"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp"
|
|
android:layout_weight="2"
|
|
android:background="@drawable/button_background"
|
|
android:gravity="center_horizontal"
|
|
android:textSize="30dp"
|
|
android:text="🚼 💩"/>
|
|
|
|
<TextView
|
|
android:id="@+id/button_change_pee"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp"
|
|
android:layout_weight="2"
|
|
android:background="@drawable/button_background"
|
|
android:gravity="center_horizontal"
|
|
android:textSize="30dp"
|
|
android:text="🚼 💧"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/button_more"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="10dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/button_background"
|
|
android:gravity="center_horizontal"
|
|
android:src="@drawable/ic_more"
|
|
app:tint="@android:color/darker_gray"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
|
android:id="@+id/progress_indicator"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp"
|
|
android:indeterminate="true"
|
|
app:indicatorColor="@color/accent"
|
|
android:visibility="invisible"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/logbook"
|
|
android:textColor="@color/accent"
|
|
android:textStyle="bold"/>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/list_events"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_marginTop="10dp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/no_connection_screen"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:background="@color/translucent"
|
|
android:clickable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:focusable="true"
|
|
android:visibility="gone">
|
|
|
|
<ImageView
|
|
android:layout_width="200dp"
|
|
android:layout_height="200dp"
|
|
android:src="@drawable/ic_connection"
|
|
app:tint="@color/accent"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:textSize="30dp"
|
|
android:textColor="@color/accent"
|
|
android:text="@string/no_connection"/>
|
|
|
|
<TextView
|
|
android:id="@+id/no_connection_screen_message"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:gravity="center_horizontal"
|
|
android:text="@string/no_connection_explain"/>
|
|
|
|
<Button
|
|
android:id="@+id/button_no_connection_retry"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:drawableLeft="@drawable/ic_sync"
|
|
android:drawableTint="@color/white"
|
|
android:drawablePadding="10dp"
|
|
android:text="@string/no_connection_retry"
|
|
android:textColor="@color/white"/>
|
|
|
|
<Button
|
|
android:id="@+id/button_no_connection_settings"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:drawableLeft="@drawable/ic_settings"
|
|
android:drawableTint="@color/white"
|
|
android:drawablePadding="10dp"
|
|
android:text="@string/no_connection_go_to_settings"
|
|
android:textColor="@color/white"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout> |