Implement dummy history editor; add edit history button

This commit is contained in:
2016-03-08 06:58:34 -05:00
parent 0fb8ed0b53
commit 8f37e293b1
8 changed files with 149 additions and 36 deletions

View File

@@ -18,8 +18,8 @@
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://isoron.org/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@color/windowBackground"
@@ -60,23 +60,31 @@
</LinearLayout>
<LinearLayout style="@style/cardStyle">
<LinearLayout
style="@style/cardStyle"
android:paddingBottom="0dp"
android:clipToPadding="false"
android:orientation="vertical">
<TextView
android:id="@+id/tvHistory"
style="@style/cardHeaderStyle"
android:text="@string/history"/>
<LinearLayout
android:id="@+id/llHistory"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"/>
<org.isoron.uhabits.views.HabitHistoryView
android:id="@+id/historyView"
android:layout_width="match_parent"
android:layout_height="160dp"/>
android:layout_height="160dp" />
<Button
style="?android:borderlessButtonStyle"
android:id="@+id/btEditHistory"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/ic_action_edit_light"
android:textColor="@color/grey_400"
android:text="@string/edit"/>
</LinearLayout>