mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-07 17:48:52 -06:00
159 lines
5.7 KiB
XML
159 lines
5.7 KiB
XML
<!--
|
|
~ Copyright (C) 2016 Álinson Santos Xavier <isoron@gmail.com>
|
|
~
|
|
~ This file is part of Loop Habit Tracker.
|
|
~
|
|
~ Loop Habit Tracker is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by the
|
|
~ Free Software Foundation, either version 3 of the License, or (at your
|
|
~ option) any later version.
|
|
~
|
|
~ Loop Habit Tracker is distributed in the hope that it will be useful, but
|
|
~ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
~ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
~ more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License along
|
|
~ with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:habit="http://isoron.org/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?windowBackgroundColor"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
style="@style/CardList"
|
|
tools:context="org.isoron.uhabits.ShowHabitActivity">
|
|
|
|
<LinearLayout
|
|
style="@style/Card"
|
|
android:gravity="start">
|
|
|
|
<TextView
|
|
android:id="@+id/tvOverview"
|
|
style="@style/CardHeader"
|
|
android:text="@string/overview"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/llOverview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<org.isoron.uhabits.views.RingView
|
|
android:id="@+id/scoreRing"
|
|
android:layout_width="75dp"
|
|
android:layout_height="75dp"
|
|
habit:percentage="0"
|
|
habit:thickness="10"
|
|
habit:textSize="12"
|
|
android:layout_margin="10dp"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/habit_strength"
|
|
android:textSize="@dimen/smallTextSize"
|
|
android:textColor="?mediumContrastTextColor"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
style="@style/Card"
|
|
android:gravity="center">
|
|
|
|
<android.support.v7.widget.AppCompatSpinner
|
|
android:id="@+id/sStrengthInterval"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="22dp"
|
|
android:entries="@array/strengthIntervalNames"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:theme="@style/SmallSpinner"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvStrength"
|
|
style="@style/CardHeader"
|
|
android:text="@string/habit_strength"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentStart="true"/>
|
|
|
|
<org.isoron.uhabits.views.HabitScoreView
|
|
android:id="@+id/scoreView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="220dp"
|
|
android:layout_below="@id/tvStrength"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/Card"
|
|
android:clipToPadding="false"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="0dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tvHistory"
|
|
style="@style/CardHeader"
|
|
android:text="@string/history"/>
|
|
|
|
<org.isoron.uhabits.views.HabitHistoryView
|
|
android:id="@+id/historyView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="160dp"/>
|
|
|
|
<Button
|
|
android:id="@+id/btEditHistory"
|
|
style="?android:borderlessButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/ic_action_edit_light"
|
|
android:text="@string/edit"
|
|
android:textColor="@color/grey_400"
|
|
android:textSize="@dimen/smallTextSize"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/Card"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tvStreaks"
|
|
style="@style/CardHeader"
|
|
android:text="@string/best_streaks"/>
|
|
|
|
<org.isoron.uhabits.views.HabitStreakView
|
|
android:id="@+id/streakView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="200dp"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/Card"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tvWeekdayFreq"
|
|
style="@style/CardHeader"
|
|
android:text="@string/frequency"/>
|
|
|
|
<org.isoron.uhabits.views.HabitFrequencyView
|
|
android:id="@+id/punchcardView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="200dp"/>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</ScrollView> |