Browse Source

Fix the bug causing spinner click in pop up window fail

pull/10/head
Shen Gao 7 years ago
parent
commit
b8b3fbe8f8
  1. 3
      GNSSLogger/app/src/main/java/com/google/android/apps/location/gps/gnsslogger/SettingsFragment.java
  2. 3
      GNSSLogger/app/src/main/res/layout/pop_up_window.xml

3
GNSSLogger/app/src/main/java/com/google/android/apps/location/gps/gnsslogger/SettingsFragment.java

@ -235,7 +235,8 @@ public class SettingsFragment extends Fragment {
LayoutInflater inflater = LayoutInflater inflater =
(LayoutInflater) (LayoutInflater)
getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE); getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View layout = inflater.inflate(R.layout.pop_up_window, null); View layout = inflater.inflate(R.layout.pop_up_window,
(ViewGroup) getActivity().findViewById(R.id.pop));
// Find UI elements in pop up window // Find UI elements in pop up window
final Spinner residualSpinner = layout.findViewById(R.id.residual_spinner); final Spinner residualSpinner = layout.findViewById(R.id.residual_spinner);

3
GNSSLogger/app/src/main/res/layout/pop_up_window.xml

@ -26,7 +26,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="end" android:gravity="end"
android:id="@+id/residual_spinner" android:id="@+id/residual_spinner"
android:entries="@array/residual_options"> android:entries="@array/residual_options"
android:spinnerMode="dialog">
</Spinner> </Spinner>
</LinearLayout> </LinearLayout>
<EditText <EditText

Loading…
Cancel
Save