0

Scroll Activity.

<android.support.v4.widget.NestedScrollView 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="wrap_content"
android:layout_height="wrap_content"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.example.nexxie.diplom2.Eur_S10_ALL_E_001"
tools:showIn="@layout/activity_eur__s10__all__e_001">

<RelativeLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:scaleType="matrix"
        android:id="@+id/eur__e__s10__all_001"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true" />


    <TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textAppearance="?android:attr/textAppearanceSmall"
    android:text="@string/s10100BA270"
    android:id="@+id/textView2"
    android:layout_below="@+id/textView"
    android:layout_alignParentLeft="true"
    android:layout_alignParentStart="true" />

    <TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textAppearance="?android:attr/textAppearanceSmall"
    android:text="@string/s10100BA260"
        android:id="@+id/textView"
        android:layout_below="@+id/eur__e__s10__all_001"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true" />


</RelativeLayout>

для увеличения текста я использовал PhotoView. Хотелось бы поднять изображение наверх и вместе с ним и TextView подтянуть к ImageView Скриншот

6
  • Попробуйте заменить RelativeLayout на LinearLayout с вертикальной ориентацией
    – ЮрийСПб
    24 мая 2016 в 13:52
  • 1
    У imageView попробуйте атрибут добавить android:adjustViewBounds="true" 24 мая 2016 в 13:57
  • @АндроидАндроид Cпасибо! Ваш ответ помог мне!
    – Nexx
    24 мая 2016 в 14:16
  • @ЮрийСПб С вашим вариантом я пробовал, не помогло.
    – Nexx
    24 мая 2016 в 14:17
  • 1
    @ЮрийСПб сейчас оформлю) 24 мая 2016 в 14:53

1 ответ 1

4

Чтобы скорректировать границы imageView без потери его drawable помогает атрибут android:adjustViewBounds="true".

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.