mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 13:23:58 +01:00
* Remove bookmark button from row button set and put to upper level list item * Fix npe caused by lookinf for parent fragment, we don't have one anymore * style * Add new icons for bookmarked places * Change bookmarked info when bookmarked * Add pic field to bookmark dao so that we can retrieve them later * Put bookmarks as the first item of list * Add bookmark as a label * Add logic to filter nearby * remove unneeded changes * fix word * Remove logs * Remove unused part of code * Fix tests * Remove logs * simplify icon picking * remove redundant margin left * Remove non needed map and swap * Add main thread annotation * Fix tests
86 lines
No EOL
3.2 KiB
XML
86 lines
No EOL
3.2 KiB
XML
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:focusableInTouchMode="true"
|
|
android:minHeight="@dimen/large_height">
|
|
|
|
<ImageView
|
|
android:id="@+id/bookmarkButtonImage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/standard_gap"
|
|
android:tint="?attr/rowButtonColor"
|
|
app:srcCompat="@drawable/ic_round_star_border_24px" />
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
android:id="@+id/icon"
|
|
android:layout_width="@dimen/dimen_40"
|
|
android:layout_height="@dimen/dimen_40"
|
|
android:layout_marginStart="@dimen/standard_gap"
|
|
android:layout_marginTop="@dimen/standard_gap"
|
|
android:layout_alignStart="@id/bookmarkButtonImage"
|
|
android:scaleType="centerCrop"
|
|
tools:src="@drawable/empty_photo"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/distance"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginLeft="@dimen/standard_gap"
|
|
android:layout_marginRight="@dimen/standard_gap"
|
|
android:layout_marginTop="@dimen/standard_gap"
|
|
tools:text="900m"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Caption"
|
|
/>
|
|
|
|
<ImageView
|
|
android:id="@+id/toggleArrow"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginRight="@dimen/standard_gap"
|
|
android:layout_marginTop="@dimen/large_gap"
|
|
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignTop="@id/distance"
|
|
android:layout_marginLeft="@dimen/standard_gap"
|
|
android:layout_marginStart="@dimen/standard_gap"
|
|
android:layout_toEndOf="@id/icon"
|
|
android:layout_toLeftOf="@id/distance"
|
|
android:layout_toRightOf="@id/icon"
|
|
android:layout_toStartOf="@id/distance"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
tools:text="St. Paul's School"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvDesc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignEnd="@id/distance"
|
|
android:layout_alignLeft="@id/tvName"
|
|
android:layout_alignRight="@id/distance"
|
|
android:layout_alignStart="@id/tvName"
|
|
android:layout_below="@id/tvName"
|
|
android:layout_marginBottom="@dimen/standard_gap"
|
|
android:ellipsize="end"
|
|
android:maxLines="4"
|
|
tools:text="school"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
/>
|
|
|
|
<include layout="@layout/nearby_row_button" />
|
|
</RelativeLayout> |