Пустая строка не может быть цифройЯ в самом вопросе написал что из за того что поле пустое приложение закрывается исходя из этого я наверное понимаю что
Пустая строка не может быть цифрой!Логично? Логично! А вопрос я задал как можно решить эту проблему а не о том лезть мне в программирование или нет?
<androidx.cardview.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:cardCornerRadius="8dp"
android:layout_margin="4dp">
<LinearLayout
android:id="@+id/line"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center"
android:weightSum="2"
android:orientation="horizontal">
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:layout_margin="4dp"
android:text="10 USDT"
android:textColor="@color/colorBlack"
android:textStyle="bold"
android:textSize="25sp" />
<Button
android:id="@+id/view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_margin="4dp"
android:background="@drawable/button_1"
android:text="View"
android:textStyle="bold"
android:textColor="@color/colorWhite"/>
<TextView
android:id="@+id/url"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
implementation project(path: ':ayetpublisher3.5')
.