Вот мой код файла макетаКнопка не нажимается на scrollview Android
Все работает отлично, но кнопка не доступна.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/maps"
android:gravity="center_horizontal"
android:orientation="vertical">
<include layout="@layout/custom_actionbar" />
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:focusable="true"
android:focusableInTouchMode="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingBottom="30dp">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/pf_color"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:text="TRACK"
android:textSize="20dp" />
</LinearLayout>
</ScrollView>
</LinearLayout>
Пожалуйста, помогите с этой проблемой. Я благодарен вам. Я не могу разобраться, в чем проблема. Я пробовал Android: clickable = "true", но все та же проблема Спасибо заранее.
Вы установили clicklistener на этой кнопке в java-файле –
, возможно, у нас есть активность? – BAAAZINGA
после добавления onCLickListener работает, но не действует как кнопка –