Make whole row with switch clickable
This commit is contained in:
parent
e608b4839d
commit
f9c34e88cd
5 changed files with 18 additions and 1 deletions
|
@ -43,6 +43,10 @@
|
|||
android:id="@+id/gpx_join_gaps_switch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@null"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
android:focusableInTouchMode="false"
|
||||
android:paddingLeft="@dimen/content_padding"
|
||||
android:paddingRight="@dimen/content_padding" />
|
||||
|
||||
|
|
|
@ -43,6 +43,10 @@
|
|||
android:id="@+id/gpx_join_gaps_switch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@null"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
android:focusableInTouchMode="false"
|
||||
android:paddingLeft="@dimen/content_padding"
|
||||
android:paddingRight="@dimen/content_padding" />
|
||||
|
||||
|
|
|
@ -83,6 +83,10 @@
|
|||
android:id="@+id/showOnMapToggle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@null"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
android:focusableInTouchMode="false"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="8dp"/>
|
||||
|
||||
|
|
|
@ -43,6 +43,10 @@
|
|||
android:id="@+id/gpx_join_gaps_switch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@null"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
android:focusableInTouchMode="false"
|
||||
android:paddingLeft="@dimen/content_padding"
|
||||
android:paddingRight="@dimen/content_padding" />
|
||||
|
||||
|
|
|
@ -321,9 +321,10 @@ public class TrackActivityFragmentAdapter implements TrackBitmapDrawerListener {
|
|||
}
|
||||
|
||||
vis.setChecked(gpxFileSelected);
|
||||
vis.setOnClickListener(new View.OnClickListener() {
|
||||
headerView.findViewById(R.id.showOnMapContainer).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
vis.toggle();
|
||||
if (!vis.isChecked()) {
|
||||
selectedSplitInterval = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue