mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Merge pull request #1200 from knight-shade/Fixes-#1179
Fixes #1179 Add material design to title and description of image, limits title size and add scrolling behaviour.
This commit is contained in:
commit
110337d296
1 changed files with 73 additions and 58 deletions
|
|
@ -1,73 +1,88 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView 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"
|
||||||
android:layout_gravity="fill"
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:background="?attr/fragmentCategorisationBackground"
|
android:background="?attr/fragmentCategorisationBackground"
|
||||||
android:paddingBottom="@dimen/small_gap"
|
|
||||||
android:paddingLeft="@dimen/standard_gap"
|
|
||||||
android:paddingStart="@dimen/standard_gap"
|
|
||||||
android:paddingRight="@dimen/standard_gap"
|
|
||||||
android:paddingEnd="@dimen/standard_gap"
|
|
||||||
android:paddingTop="@dimen/small_gap"
|
|
||||||
android:theme="@style/DarkAppTheme"
|
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
android:focusableInTouchMode="true"
|
android:focusableInTouchMode="true"
|
||||||
>
|
android:paddingBottom="@dimen/small_gap"
|
||||||
|
android:paddingEnd="@dimen/standard_gap"
|
||||||
|
android:paddingLeft="@dimen/standard_gap"
|
||||||
|
android:paddingRight="@dimen/standard_gap"
|
||||||
|
android:paddingStart="@dimen/standard_gap"
|
||||||
|
android:paddingTop="@dimen/small_gap"
|
||||||
|
android:theme="@style/DarkAppTheme">
|
||||||
|
|
||||||
<EditText
|
<LinearLayout
|
||||||
android:id="@+id/titleEdit"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:drawableEnd="@drawable/mapbox_info_icon_default"
|
android:layout_gravity="fill"
|
||||||
android:drawableRight="@drawable/mapbox_info_icon_default"
|
android:orientation="vertical">
|
||||||
android:scrollHorizontally="false"
|
|
||||||
android:inputType="textMultiLine"
|
|
||||||
android:hint="@string/share_title_hint"
|
|
||||||
android:imeOptions="flagNoExtractUi" />
|
|
||||||
|
|
||||||
<EditText
|
<android.support.design.widget.TextInputLayout
|
||||||
android:id="@+id/descEdit"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:drawableEnd="@drawable/mapbox_info_icon_default"
|
|
||||||
android:drawableRight="@drawable/mapbox_info_icon_default"
|
|
||||||
android:inputType="textMultiLine"
|
|
||||||
android:hint="@string/share_description_hint"
|
|
||||||
android:imeOptions="flagNoExtractUi" />
|
|
||||||
|
|
||||||
<Spinner
|
<EditText
|
||||||
android:id="@+id/licenseSpinner"
|
android:id="@+id/titleEdit"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:theme="?attr/spinnerTheme"
|
android:drawableEnd="@drawable/mapbox_info_icon_default"
|
||||||
/>
|
android:drawableRight="@drawable/mapbox_info_icon_default"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:maxLength="80"
|
||||||
|
android:hint="@string/share_title_hint"
|
||||||
|
android:imeOptions="flagNoExtractUi"
|
||||||
|
android:inputType="text"
|
||||||
|
android:scrollHorizontally="false" />
|
||||||
|
</android.support.design.widget.TextInputLayout>
|
||||||
|
|
||||||
<Button
|
|
||||||
android:text="@string/use_previous"
|
|
||||||
android:background="?attr/buttonBackground"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:id="@+id/titleDescButton"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<TextView
|
<android.support.design.widget.TextInputLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:text="@string/share_license_summary"
|
|
||||||
android:id="@+id/share_license_summary"
|
|
||||||
android:gravity="center"
|
|
||||||
android:layout_marginTop="@dimen/standard_gap"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<fr.free.nrw.commons.ui.widget.HtmlTextView
|
<EditText
|
||||||
android:layout_width="wrap_content"
|
android:id="@+id/descEdit"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:id="@+id/media_upload_policy"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/media_upload_policy"
|
android:drawableEnd="@drawable/mapbox_info_icon_default"
|
||||||
android:gravity="start"
|
android:drawableRight="@drawable/mapbox_info_icon_default"
|
||||||
android:layout_marginTop="@dimen/standard_gap"
|
android:hint="@string/share_description_hint"
|
||||||
/>
|
android:imeOptions="flagNoExtractUi"
|
||||||
|
android:inputType="textMultiLine" />
|
||||||
|
</android.support.design.widget.TextInputLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
<Spinner
|
||||||
|
android:id="@+id/licenseSpinner"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:theme="?attr/spinnerTheme" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/titleDescButton"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/buttonBackground"
|
||||||
|
android:text="@string/use_previous" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/share_license_summary"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/standard_gap"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/share_license_summary" />
|
||||||
|
|
||||||
|
<fr.free.nrw.commons.ui.widget.HtmlTextView
|
||||||
|
android:id="@+id/media_upload_policy"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/standard_gap"
|
||||||
|
android:gravity="start"
|
||||||
|
android:text="@string/media_upload_policy" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue