Hirdetés

Új hozzászólás Aktív témák

  • thon73

    tag

    válasz lanszelot #3059 üzenetére

    Ezt nézd meg egyszer, (bocs a külső hivatkozásokat kivettem)

    <?xml version="1.0" encoding="utf-8"?>
    <ScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context=".MainActivity"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <EditText
    android:id="@+id/name"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:hint="hint_name"
    android:inputType="textPersonName"
    android:maxLength="99"
    android:singleLine="true" />

    <Button
    android:id="@+id/saveButton"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="save" />
    </LinearLayout>

    </ScrollView>

    Még van egy olyan, hogy: android:fillViewport="true" a scroll részen belül, de nem tudom, hogy egyetlen soros szövegnél van-e hatása.
    A RelativeLayout-nak egyetlen ablaknál (egyetlen child-view-nál) nincs szerepe, az kivehető. És ki kell venni az összes ez-alá, e-fölé dolgot is. Itt uis. van egy scrollview, ami egyetlen "ablakot" (child-view-t) képes kezelni, ami a LinearLayout, ami viszont a benne lévőket csak egymás alatt bemutatja.

Új hozzászólás Aktív témák