mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +01:00
* Add additional classes from 2019 hackathon implementation * Make first tab work * Make explore tab work * Handle back button for contrib and nearby * Fix framelayout and nav bar allignment * Fix nav bar tint * Fix nearby card layout * Make contributions number visible * Change menu icon according to fragment * Make notification icon work and remove drawer * Make favourites accessible from nav bar * Turn bookmark and explore activities into fragments * Use bottom sheet instead of more fragment * Add actions * Remove unused classes * Fix indentation * remove more fragment title * Fix explore fragment indentation * Make toolbar settings as we wanted * Set card view styles * Make colors for explore actiivty * Remove drawer from achievements activity * Add back button to achievements activity * remove drawer from review activity * Remove drawer from settings activity * Remove drawer from about activity * Fix dagger injection of fragment * Implement skip login version * Add theme missing colors * Add style to moresheet * refactor name * call login with button * Remove all old bookmarks activity dependency * Make explore tab items clickable * Do nothing if same tab is selected * Fix notification icon color for dark theme * Fix wrong drawable colors * Handle back button after media details is visible from contrib and explore fragments * make favourites open media details * Fix profile icon * Make user name visible instead * Move user back to contrib fragment * Remove NavigationBaseAvticity * Fix typo in bookmark fragment * Fix menu button colors * Remove explore activity * remove drawer and dependencies * Make bookmark media details visible * Cleanup code * Code cleanup * Remove unused layout * Make contriblist UI look like in mockups * Change limited connecton toggle * Move list menu item to nearby fragment * Fix search button crash * Make media detail appear * Back button added * Fix back button npe * Change bookmark list view * Fix always the firs item displayed issue * Allign contrib list bottom line to simple drawee bottom * fix fragment string * Fix back button for mobile uploads * Make lists appear * Make fav item selected * Make favourites clickable * Add back button to media details * Add toolbar of notification activity * Change contributions icon * Fix card UI * Fix back button in explore * Make card views look similar to mockups * Solve campaign bug visible issue * Make borders a little softer
82 lines
3 KiB
XML
82 lines
3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:background="@drawable/card_border"
|
|
android:minHeight="@dimen/large_height"
|
|
android:padding="@dimen/small_gap"
|
|
>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_campaign"
|
|
android:layout_width="@dimen/dimen_40"
|
|
android:layout_height="@dimen/dimen_40"
|
|
android:layout_marginLeft="@dimen/standard_gap"
|
|
android:layout_marginStart="@dimen/standard_gap"
|
|
android:scaleType="centerCrop"
|
|
app:srcCompat="@drawable/ic_campaign"
|
|
android:tint="?attr/card_item_color"
|
|
/>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:orientation="horizontal"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="center_vertical"
|
|
android:weightSum="4">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/standard_gap"
|
|
android:layout_marginRight="@dimen/tiny_margin"
|
|
android:layout_centerInParent="true"
|
|
>
|
|
<TextView
|
|
android:id="@+id/tv_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/standard_gap"
|
|
android:textColor="?attr/card_item_color"
|
|
android:textStyle="bold"
|
|
tools:text="Campaign Title"
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_description"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/standard_gap"
|
|
android:gravity="start"
|
|
android:paddingTop="@dimen/miniscule_margin"
|
|
android:textAlignment="textStart"
|
|
android:textColor="?attr/card_item_color"
|
|
android:visibility="gone"
|
|
app:layout_constraintTop_toBottomOf="@id/tv_title"
|
|
tools:text="Campaign Description"
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_dates"
|
|
android:layout_width="@dimen/dimen_0"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/standard_gap"
|
|
android:layout_weight="1"
|
|
android:paddingTop="@dimen/miniscule_margin"
|
|
android:text="@string/ends_on"
|
|
android:textColor="?attr/card_item_color"
|
|
app:layout_constraintTop_toBottomOf="@id/tv_description"
|
|
tools:ignore="MissingConstraints" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</RelativeLayout>
|