Browse Source

Merge pull request #10 from SeanGao7/master

Fix the issue with pop up window spinner
master
mohammedkhider 7 years ago committed by GitHub
parent
commit
19cbc769c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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)
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
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:gravity="end"
android:id="@+id/residual_spinner"
android:entries="@array/residual_options">
android:entries="@array/residual_options"
android:spinnerMode="dialog">
</Spinner>
</LinearLayout>
<EditText

Loading…
Cancel
Save