-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- date is shown in the list for many plants at once - plants are sorted by creation, latest first
- Loading branch information
1 parent
533db32
commit 90ad22d
Showing
9 changed files
with
127 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,60 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="wrap_content" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal"> | ||
android:orientation="vertical"> | ||
|
||
<ImageView | ||
android:id="@+id/image_plant" | ||
android:layout_width="wrap_content" | ||
android:layout_height="match_parent" | ||
<LinearLayout | ||
android:id="@+id/new_day" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:adjustViewBounds="true" | ||
android:cropToPadding="true" | ||
android:scaleType="center" | ||
app:srcCompat="@android:drawable/ic_menu_gallery" /> | ||
android:orientation="vertical"> | ||
|
||
<View | ||
android:id="@+id/divider" | ||
android:layout_width="match_parent" | ||
android:layout_height="3dp" | ||
android:layout_weight="1" | ||
android:background="@color/colorPrimary" /> | ||
|
||
<TextView | ||
android:id="@+id/plant_category" | ||
<TextView | ||
android:id="@+id/date" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="@dimen/activity_horizontal_margin" | ||
android:layout_marginRight="@dimen/activity_horizontal_margin" | ||
android:layout_weight="1" | ||
android:text="12. Juni 2016" /> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="@dimen/text_margin" | ||
android:layout_weight="1" | ||
android:text="@string/unknown_plant" | ||
android:textAppearance="?attr/textAppearanceListItem" | ||
android:textSize="24sp" /> | ||
android:orientation="horizontal"> | ||
|
||
<ImageView | ||
android:id="@+id/image_plant" | ||
android:layout_width="wrap_content" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:adjustViewBounds="true" | ||
android:cropToPadding="true" | ||
android:scaleType="center" | ||
app:srcCompat="@android:drawable/ic_menu_gallery" /> | ||
|
||
<TextView | ||
android:id="@+id/plant_category" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="@dimen/text_margin" | ||
android:layout_weight="1" | ||
android:text="@string/unknown_plant" | ||
android:textAppearance="?attr/textAppearanceListItem" | ||
android:textSize="24sp" /> | ||
</LinearLayout> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="colorPrimary">#3F51B5</color> | ||
<color name="colorPrimary">#3f51b5</color> | ||
<color name="colorPrimaryDark">#303F9F</color> | ||
<color name="colorAccent">#FF4081</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters