android-bottomsheetdialog

How to hold the selected image in GridView and pass to next activity after I click Button

天涯浪子 提交于 2020-08-20 06:50:30
问题 In my Activity I have an EditText , a Button and a GridView . The user selects the image from the GridView and enters the name in the EditText , and then clicks the done button. activity.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_height="match_parent" android:layout_width="match_parent" android:orientation="vertical" android:id="@+id/l1" > <View android:layout

How to hold the selected image in GridView and pass to next activity after I click Button

Deadly 提交于 2020-08-20 06:50:09
问题 In my Activity I have an EditText , a Button and a GridView . The user selects the image from the GridView and enters the name in the EditText , and then clicks the done button. activity.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_height="match_parent" android:layout_width="match_parent" android:orientation="vertical" android:id="@+id/l1" > <View android:layout

how to settext button in bottom sheet dialog fragment?

时光总嘲笑我的痴心妄想 提交于 2020-05-16 04:19:29
问题 i have one class for bottomsheetdialog fragment.I looked at many places but I'm confused.i want to change text of button in bottom sheet.i get this error 'android.view.View android.view.View.findViewById(int)' on a null object reference. here are my codes; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(final Bundle savedInstanceState) { bottomSheetFragment=new BottomSheetFragment(); View viewDialog=bottomSheetFragment.getView(); assert viewDialog !=