S
S
Sergey Semenko2015-04-28 18:08:11
Android
Sergey Semenko, 2015-04-28 18:08:11

Why does the keyboard open?

At startup, it opens the keyboard, although I don’t seem to put the focus anywhere. How to fix? And why doesn't the @+id/topic_button_send button work?

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <android.support.v4.widget.SwipeRefreshLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/topic_refresh"
        android:layout_width="match_parent"
        android:layout_height="fill_parent"
        android:layout_above="@+id/linearLayout"
        android:visibility="gone"
        tools:context="ru.redozote.profiwm.TopicActivity">

        <ListView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:indeterminate="true"
            android:id="@+id/topic_listView" />

    </android.support.v4.widget.SwipeRefreshLayout>

    <ProgressBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/topic_progressBar"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:visibility="gone" />

    <LinearLayout
        android:id="@+id/topic_error"
        android:gravity="center"
        android:visibility="gone"
        android:orientation="vertical"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <TextView
            android:text="Ошибка при получении данных"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium" />
        <Button
            android:id="@+id/topic_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Повторить" />

    </LinearLayout>

    <LinearLayout
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:background="@drawable/shape_post_form"
        android:gravity="center_vertical"
        android:padding="3dp"
        android:id="@+id/linearLayout">

        <EditText
            android:layout_width="fill_parent"
            android:layout_height="50dp"
            android:layout_weight="1"
            android:id="@+id/topic_editText_message"
            android:maxLines="4" />

        <Button
            android:id="@+id/topic_button_send"
            android:layout_width="77dp"
            android:layout_height="40dp"
            android:text="Отпр."
            android:background="@drawable/shape_post_form_button"
            android:layout_marginRight="3dp">
        </Button>

    </LinearLayout>

</RelativeLayout>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2015-04-28
@abler98

stackoverflow.com/questions/10611833/how-to-disable...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question