mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
xmls completed
This commit is contained in:
parent
a022a0bfaf
commit
269719c660
10 changed files with 91 additions and 31 deletions
|
|
@ -5,6 +5,6 @@
|
||||||
android:viewportHeight="24"
|
android:viewportHeight="24"
|
||||||
android:tint="?attr/colorControlNormal">
|
android:tint="?attr/colorControlNormal">
|
||||||
<path
|
<path
|
||||||
android:fillColor="@android:color/white"
|
android:fillColor="@android:color/black"
|
||||||
android:pathData="M9,16.2L4.8,12l-1.4,1.4L9,19 21,7l-1.4,-1.4L9,16.2z"/>
|
android:pathData="M9,16.2L4.8,12l-1.4,1.4L9,19 21,7l-1.4,-1.4L9,16.2z"/>
|
||||||
</vector>
|
</vector>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,24 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/toolbar_layout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="?attr/actionBarSize"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
<include
|
||||||
|
layout="@layout/custom_selector_toolbar"
|
||||||
|
android:id="@+id/toolbar"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"/>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
<include
|
||||||
|
layout="@layout/fragment_custom_selector"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/toolbar_layout"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
/>
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
@ -1,6 +1,44 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_height="match_parent">
|
>
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
<ImageView
|
||||||
|
android:id="@+id/back"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
|
android:padding="@dimen/standard_gap"
|
||||||
|
app:srcCompat="?attr/custom_selector_back" />
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/title"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/back"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
android:layout_marginHorizontal="@dimen/standard_gap"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="@string/custom_selector_title"
|
||||||
|
style="@style/TextAppearance.AppCompat.Widget.ActionBar.Title" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/done"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:padding="@dimen/standard_gap"
|
||||||
|
app:srcCompat="?attr/custom_selector_done"/>
|
||||||
|
|
||||||
|
</merge>
|
||||||
|
|
@ -6,20 +6,19 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/custom_selector_recycler_view"
|
android:id="@+id/selector_rv"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:visibility="gone"
|
/>
|
||||||
tools:visibility="visible" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/empty_text"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:textSize="@dimen/normal_text"
|
android:textSize="@dimen/normal_text"
|
||||||
android:padding="10dp"
|
android:padding="@dimen/standard_gap"
|
||||||
android:text="No Images"
|
android:text="@string/custom_selector_empty_text"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
|
@ -31,8 +30,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:visibility="gone"
|
android:visibility="visible"
|
||||||
tools:visibility="visible"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@
|
||||||
<androidx.cardview.widget.CardView
|
<androidx.cardview.widget.CardView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
app:cardCornerRadius="5dp"
|
app:cardCornerRadius="@dimen/dimen_6"
|
||||||
app:cardElevation="2dp"
|
app:cardElevation="@dimen/dimen_2"
|
||||||
android:id="@+id/view"
|
android:id="@+id/view"
|
||||||
app:cardUseCompatPadding="true"
|
app:cardUseCompatPadding="true"
|
||||||
app:layout_constraintDimensionRatio="H,1:1"
|
app:layout_constraintDimensionRatio="H,1:1"
|
||||||
|
|
@ -43,14 +43,13 @@
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/album_name"
|
android:id="@+id/album_name"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:layout_margin="5dp"
|
android:layout_margin="@dimen/dimen_6"
|
||||||
android:padding="5dp"
|
android:padding="@dimen/dimen_6"
|
||||||
android:textColor="@color/white"
|
style="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"
|
||||||
android:textStyle="bold"
|
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@
|
||||||
<androidx.cardview.widget.CardView
|
<androidx.cardview.widget.CardView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
app:cardCornerRadius="5dp"
|
app:cardCornerRadius="@dimen/dimen_6"
|
||||||
app:cardElevation="2dp"
|
app:cardElevation="@dimen/dimen_2"
|
||||||
android:id="@+id/view"
|
android:id="@+id/view"
|
||||||
app:cardUseCompatPadding="true"
|
app:cardUseCompatPadding="true"
|
||||||
app:layout_constraintDimensionRatio="H,1:1"
|
app:layout_constraintDimensionRatio="H,1:1"
|
||||||
|
|
@ -35,11 +35,10 @@
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/selected_count"
|
android:id="@+id/selected_count"
|
||||||
android:layout_width="20dp"
|
android:layout_width="@dimen/dimen_20"
|
||||||
android:layout_height="20dp"
|
android:layout_height="@dimen/dimen_20"
|
||||||
app:layout_constraintDimensionRatio="H,1:1"
|
app:layout_constraintDimensionRatio="H,1:1"
|
||||||
android:layout_margin="4dp"
|
android:layout_margin="@dimen/dimen_10"
|
||||||
android:textSize="11sp"
|
|
||||||
android:gravity="center|center_vertical"
|
android:gravity="center|center_vertical"
|
||||||
android:includeFontPadding="false"
|
android:includeFontPadding="false"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
|
|
@ -67,8 +66,8 @@
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/uploaded_overlay_icon"
|
android:id="@+id/uploaded_overlay_icon"
|
||||||
android:layout_width="80dp"
|
android:layout_width="@dimen/dimen_140"
|
||||||
android:layout_height="80dp"
|
android:layout_height="@dimen/dimen_140"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:srcCompat="@drawable/commons"
|
app:srcCompat="@drawable/commons"
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,8 @@
|
||||||
<attr name="menu_item_tint" format="reference"/>
|
<attr name="menu_item_tint" format="reference"/>
|
||||||
<attr name="search_icon" format="reference"/>
|
<attr name="search_icon" format="reference"/>
|
||||||
<attr name="caption_description_text_color" format="reference" />
|
<attr name="caption_description_text_color" format="reference" />
|
||||||
|
<attr name="custom_selector_done" format="reference"/>
|
||||||
|
<attr name="custom_selector_back" format="reference"/>
|
||||||
|
|
||||||
<declare-styleable name="Badge">
|
<declare-styleable name="Badge">
|
||||||
<attr name="boundary" format="color"/>
|
<attr name="boundary" format="color"/>
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@
|
||||||
|
|
||||||
<!-- Commonly used dimensions -->
|
<!-- Commonly used dimensions -->
|
||||||
<dimen name="dimen_0">0dp</dimen>
|
<dimen name="dimen_0">0dp</dimen>
|
||||||
|
<dimen name="dimen_2">2dp</dimen>
|
||||||
<dimen name="dimen_6">6dp</dimen>
|
<dimen name="dimen_6">6dp</dimen>
|
||||||
<dimen name="dimen_10">10dp</dimen>
|
<dimen name="dimen_10">10dp</dimen>
|
||||||
<dimen name="dimen_20">20dp</dimen>
|
<dimen name="dimen_20">20dp</dimen>
|
||||||
|
|
|
||||||
|
|
@ -638,5 +638,7 @@ Upload your first media by tapping on the add button.</string>
|
||||||
The shadow of the image view of the location picker</string>
|
The shadow of the image view of the location picker</string>
|
||||||
<string name="image_location">Image Location</string>
|
<string name="image_location">Image Location</string>
|
||||||
<string name="check_whether_location_is_correct">Check whether location is correct</string>
|
<string name="check_whether_location_is_correct">Check whether location is correct</string>
|
||||||
|
<string name="custom_selector_title">Custom Selector</string>
|
||||||
|
<string name="custom_selector_empty_text">No Images</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,8 @@
|
||||||
<item name="contributionsListTextSecondary">@color/white</item>
|
<item name="contributionsListTextSecondary">@color/white</item>
|
||||||
<item name="menu_item_tint">@color/white</item>
|
<item name="menu_item_tint">@color/white</item>
|
||||||
<item name="search_icon">@drawable/ic_search_white_24dp</item>
|
<item name="search_icon">@drawable/ic_search_white_24dp</item>
|
||||||
|
<item name="custom_selector_done">@drawable/ic_done_white</item>
|
||||||
|
<item name="custom_selector_back">@drawable/ic_arrow_back_white</item>
|
||||||
<item name="android:windowEnableSplitTouch">false</item>
|
<item name="android:windowEnableSplitTouch">false</item>
|
||||||
<item name="android:splitMotionEvents">false</item>
|
<item name="android:splitMotionEvents">false</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -113,6 +115,8 @@
|
||||||
<item name="contributionsListTextSecondary">@color/disabled_button_text_color_dark</item>
|
<item name="contributionsListTextSecondary">@color/disabled_button_text_color_dark</item>
|
||||||
<item name="menu_item_tint">@color/primaryDarkColor</item>
|
<item name="menu_item_tint">@color/primaryDarkColor</item>
|
||||||
<item name="search_icon">@drawable/ic_search_blue_24dp</item>
|
<item name="search_icon">@drawable/ic_search_blue_24dp</item>
|
||||||
|
<item name="custom_selector_done">@drawable/ic_done_black</item>
|
||||||
|
<item name="custom_selector_back">@drawable/ic_arrow_back_black</item>
|
||||||
<item name="android:windowEnableSplitTouch">false</item>
|
<item name="android:windowEnableSplitTouch">false</item>
|
||||||
<item name="android:splitMotionEvents">false</item>
|
<item name="android:splitMotionEvents">false</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue