Skip to content

Commit

Permalink
Merge pull request getodk#6227 from grzesiek2010/COLLECT-6195
Browse files Browse the repository at this point in the history
Fixed margins in offline layers
  • Loading branch information
seadowg authored Jun 25, 2024
2 parents b7ccc88 + cd01acb commit f63cda2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.core.view.isInvisible
import androidx.recyclerview.widget.AsyncListDiffer
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
Expand Down Expand Up @@ -43,7 +43,7 @@ class OfflineMapLayersPickerAdapter(
holder.binding.radioButton.setChecked(layer.isChecked)
holder.binding.title.text = layer.name
holder.binding.path.text = layer.file?.absolutePath
holder.binding.arrow.isVisible = layer.id != null
holder.binding.arrow.isInvisible = layer.id == null

if (layer.isExpanded) {
holder.binding.arrow.setImageDrawable(ContextCompat.getDrawable(holder.binding.root.context, org.odk.collect.icons.R.drawable.ic_baseline_collapse_24))
Expand Down
6 changes: 2 additions & 4 deletions maps/src/main/res/layout/offline_map_layers_importer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,15 @@
android:layout_height="wrap_content"
android:paddingStart="@dimen/margin_standard"
android:text="@string/all_projects_option"
android:textAppearance="?textAppearanceBodyMedium"
android:translationX="-5dp" />
android:textAppearance="?textAppearanceBodyMedium" />

<RadioButton
android:id="@+id/current_project_option"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/margin_standard"
android:text="@string/current_project_option"
android:textAppearance="?textAppearanceBodyMedium"
android:translationX="-5dp" />
android:textAppearance="?textAppearanceBodyMedium" />
</RadioGroup>
</androidx.constraintlayout.widget.ConstraintLayout>

Expand Down

0 comments on commit f63cda2

Please sign in to comment.