mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +01:00
* Add map fragment for explore and search * Create structure of explore map by defining view and user action interfaces to presenter * Add methods to map start, bottom sheet and permission * Make the simple map visible * Imitate methods from nearby map for permission needed and non needed map initialisation operations, however, needs to be tested and reactor * a level of abstraction * update media params to include coordinates * Implement pageable presenter to explore * Create Root fragment for map and media * Iplement two presenter one for map operations, the other for pageable operations * Construct general structure for both explore with search query and just by location * fix injection issue * Make default explore work with zoom level * increase offscreen page limit with newly added fragment * Make two distinct api calls for search with and without query * Before trying to use same presenter for both search with and without query * Add notes for Madhur * Add Madhur's fixes for binding * Call serch with and without query from the same spot * partially solve zoom issue * Make tab view unswipble while map is being used on search activity * make viewpager unswipable while map is being used * Code cleanup and reverting unnecessry edits * Add search this area methods * Implement search this area button functionality * Fix search this area button, current location FAB and bottom attribution UI elements * Add marker click action * Solve bookmarkdao injection issue * Make display bottom sheet details on marker click * remove label and set bottom sheet behavior * Remove irrelevan buttons like wikidata and article buttons * Cancel bookmark feature for commons images for know, needs to be thought * Add search this area button * Add location off dialog * Implement back button for explore map fragment while not on search activity * Make thumbnails visible, they need some styling though * Make gridle views even more beautiful * Remove classes added to support query * Remove query related code from Reach Activity * Solve two progressbar issue * Remove query related ekstra codes * Remove not needed anymore callback * Make medai details work * Remove all old removed code dependencies * Solve initial load takes too long issue * Solve current position track * Add placeholder for possible load issues * Add red stroke to bitmap * Add borders to rectangles * Change media details text to details * Fix file name extension anf File: prefix * Fix some code style issues * Fix some style issues * Fix style issues * Fix build issue * Fix test about etMediaListFromSearch * Fix test issue with Seacrh Activity * Fix conflict mark
88 lines
No EOL
3.7 KiB
XML
88 lines
No EOL
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.drawerlayout.widget.DrawerLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/drawer_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/toolbar_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<!-- Toolbar for viewing media -->
|
|
<include layout="@layout/toolbar"
|
|
android:visibility="gone" />
|
|
|
|
<!--Toolbar containing search bar -->
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar_search"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/mainBackground"
|
|
app:titleTextColor="?attr/toolbar_text_color"
|
|
app:subtitleTextColor="?attr/toolbar_text_color"
|
|
>
|
|
<SearchView
|
|
android:id="@+id/searchBox"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:focusable="true"
|
|
android:queryBackground="@android:color/transparent"
|
|
android:searchIcon="@null"
|
|
android:paddingLeft="-16dp"
|
|
android:paddingStart="-16dp"
|
|
app:queryBackground="@android:color/transparent"
|
|
app:searchIcon="@null"
|
|
android:imeOptions="actionDone"
|
|
android:singleLine="true"
|
|
android:iconifiedByDefault="false"
|
|
android:textSize="@dimen/normal_text"
|
|
android:voiceSearchMode="showVoiceSearchButton|launchRecognizer"
|
|
/>
|
|
</androidx.appcompat.widget.Toolbar>
|
|
<com.google.android.material.tabs.TabLayout
|
|
android:id="@+id/tab_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/tabBackground"
|
|
app:tabIndicatorColor="?attr/tabIndicatorColor"
|
|
app:tabSelectedTextColor="?attr/tabSelectedTextColor"
|
|
app:tabTextColor="?attr/tabTextColor"
|
|
app:tabMode="scrollable"
|
|
android:layout_below="@id/toolbar_search"
|
|
android:visibility="gone"
|
|
/>
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
<FrameLayout
|
|
android:visibility="gone"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/mediaContainer"
|
|
android:orientation="horizontal"
|
|
android:layout_below="@id/toolbar_layout"
|
|
/>
|
|
|
|
<fr.free.nrw.commons.explore.ParentViewPager
|
|
android:id="@+id/viewPager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@id/toolbar_layout"
|
|
/>
|
|
<FrameLayout
|
|
android:visibility="gone"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/searchHistoryContainer"
|
|
android:orientation="horizontal"
|
|
android:layout_below="@id/toolbar_layout"
|
|
/>
|
|
</RelativeLayout>
|
|
|
|
</androidx.drawerlayout.widget.DrawerLayout> |