mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Use JSON SPARQL query for fetching nearby places (#2398)
* Use JSON response for nearby places * Move okhttp calls to a different class * wip * Fetch picture of the day using JSON API * Search images using JSON APIs * tests * Fix injection based on code review comments
This commit is contained in:
parent
323527b3be
commit
f12837650a
44 changed files with 1472 additions and 418 deletions
|
|
@ -6,7 +6,7 @@
|
|||
android:focusableInTouchMode="true"
|
||||
android:minHeight="72dp">
|
||||
|
||||
<ImageView
|
||||
<com.facebook.drawee.view.SimpleDraweeView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
android:layout_marginTop="@dimen/standard_gap"
|
||||
android:background="@android:color/white"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/empty_photo"
|
||||
tools:src="@drawable/empty_photo"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
|
|
@ -27,6 +27,7 @@
|
|||
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"
|
||||
/>
|
||||
|
||||
|
|
@ -54,6 +55,7 @@
|
|||
android:layout_toStartOf="@id/distance"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="2"
|
||||
tools:text="St. Paul's School"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
||||
/>
|
||||
|
||||
|
|
@ -69,6 +71,7 @@
|
|||
android:layout_marginBottom="@dimen/standard_gap"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="4"
|
||||
tools:text="school"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
||||
/>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue