Skip to content

Commit

Permalink
mylife: smoother myhealth switch dark mode (fixes #4994) (#4997)
Browse files Browse the repository at this point in the history
Co-authored-by: Gideon Okuro <[email protected]>
Co-authored-by: dogi <[email protected]>
  • Loading branch information
3 people authored Jan 16, 2025
1 parent c608fbc commit b32cc6f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 26
targetSdkVersion 34
versionCode 2212
versionName "0.22.12"
versionCode 2213
versionName "0.22.13"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class MyHealthFragment : Fragment() {
dialog?.dismiss()
}
sortList(alertHealthListBinding.spnSort, alertHealthListBinding.list)
dialog = AlertDialog.Builder(requireActivity())
dialog = AlertDialog.Builder(requireActivity(),R.style.AlertDialogTheme)
.setTitle(getString(R.string.select_health_member)).setView(alertHealthListBinding.root)
.setCancelable(false).setNegativeButton(R.string.dismiss, null).create()
dialog?.show()
Expand Down
29 changes: 20 additions & 9 deletions app/src/main/res/layout/alert_health_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:background="@color/secondary_bg"
android:orientation="vertical">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<androidx.appcompat.widget.AppCompatSpinner
<org.ole.planet.myplanet.utilities.CustomSpinner
android:id="@+id/spn_sort"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:entries="@array/sort_member"
android:minWidth="150dp"
android:popupBackground="@color/secondary_bg"
android:backgroundTint="@color/daynight_textColor"
android:theme="@style/SpinnerItemStyle"
android:padding="8dp" />

<Button
android:id="@+id/btn_add_member"
android:layout_width="wrap_content"
Expand All @@ -32,17 +35,25 @@
android:visibility="gone" />
</LinearLayout>

<EditText
android:id="@+id/et_search"
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:hint="@string/search_dots"
android:inputType="text"
android:maxLines="1" />
android:layout_height="wrap_content"
android:labelFor="@+id/et_search"
android:padding="@dimen/padding_normal"
android:textColorHint="@color/hint_color">

<EditText
android:id="@+id/et_search"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="@color/hint_color"
android:hint="@string/search"
android:textColor="@color/daynight_textColor" />
</com.google.android.material.textfield.TextInputLayout>

<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:choiceMode="singleChoice" />
</LinearLayout>
</LinearLayout>

0 comments on commit b32cc6f

Please sign in to comment.