mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +01:00
103 lines
4 KiB
XML
103 lines
4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/fragmentCategorisationBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:nestedScrollingEnabled="false"
|
|
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">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="fill"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<EditText
|
|
android:id="@+id/titleEdit"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:drawableEnd="@drawable/mapbox_info_icon_default"
|
|
android:drawableRight="@drawable/mapbox_info_icon_default"
|
|
android:hint="@string/share_title_hint"
|
|
android:imeOptions="flagNoExtractUi"
|
|
android:inputType="text"
|
|
android:maxLength="80"
|
|
android:maxLines="1"
|
|
android:scrollHorizontally="false" />
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
android:id="@+id/rv_descriptions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_add_description"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="right"
|
|
android:layout_marginTop="4dp"
|
|
android:gravity="right"
|
|
android:orientation="horizontal"
|
|
android:padding="10dp">
|
|
|
|
<TextView
|
|
style="@style/TextAppearance.AppCompat.Body1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/add_description" />
|
|
</LinearLayout>
|
|
</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:clickable="true"
|
|
android:gravity="center"
|
|
android:text="@plurals/share_license_summary"
|
|
android:textColorLink="@color/button_blue" />
|
|
|
|
<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>
|
|
|