mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 13:53:54 +01:00
Feature/localised image descriptions (#1634)
* wip * Changes for adding descriptions in multipe languages[issue #1501] * Added callback for the adapter * Codacy suggested changes * Sort the languages in the spinner in alphabetical order * scroll view nested scrolling enabled false * Nested scrolling enabled false [Allow rv to expand] * rebased to master, resolved conflicts * replaced setCompoundDrawables with setCompoundDrawablesWithIntrinsicBounds [the former dint used to work on all devices] * replaced setCompoundDrawables with setCompoundDrawablesWithIntrinsicBounds [the former dint used to work on all devices]
This commit is contained in:
parent
e4c518ccce
commit
12a83da3a2
12 changed files with 622 additions and 122 deletions
27
app/src/main/res/layout/row_item_languages_spinner.xml
Normal file
27
app/src/main/res/layout/row_item_languages_spinner.xml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp"
|
||||
android:id="@+id/ll_container_description_language"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/tv_language"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="4dp"
|
||||
android:imeOptions="flagNoExtractUi"
|
||||
android:maxLines="1"
|
||||
style="@style/Base.TextAppearance.AppCompat.Widget.TextView.SpinnerItem"
|
||||
android:singleLine="true"
|
||||
tools:text="en"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:id="@+id/view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/item_white_background"></View>
|
||||
</LinearLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue