mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 12:49:55 +01:00
Use selectable item background to get touch effect.
This commit is contained in:
@@ -144,13 +144,13 @@ public class ShowQrCodeFragment extends BaseEventFragment
|
|||||||
statusParams = new LayoutParams(MATCH_PARENT, 0, 1f);
|
statusParams = new LayoutParams(MATCH_PARENT, 0, 1f);
|
||||||
qrCodeParams = new LayoutParams(MATCH_PARENT, 0, 1f);
|
qrCodeParams = new LayoutParams(MATCH_PARENT, 0, 1f);
|
||||||
}
|
}
|
||||||
fullscreenButton.setBackgroundResource(
|
fullscreenButton.setImageResource(
|
||||||
R.drawable.ic_fullscreen_black_48dp);
|
R.drawable.ic_fullscreen_black_48dp);
|
||||||
} else {
|
} else {
|
||||||
// Grow the QR code container to fill its parent
|
// Grow the QR code container to fill its parent
|
||||||
statusParams = new LayoutParams(0, 0, 0f);
|
statusParams = new LayoutParams(0, 0, 0f);
|
||||||
qrCodeParams = new LayoutParams(MATCH_PARENT, MATCH_PARENT, 1f);
|
qrCodeParams = new LayoutParams(MATCH_PARENT, MATCH_PARENT, 1f);
|
||||||
fullscreenButton.setBackgroundResource(
|
fullscreenButton.setImageResource(
|
||||||
R.drawable.ic_fullscreen_exit_black_48dp);
|
R.drawable.ic_fullscreen_exit_black_48dp);
|
||||||
}
|
}
|
||||||
statusView.setLayoutParams(statusParams);
|
statusView.setLayoutParams(statusParams);
|
||||||
|
|||||||
@@ -69,7 +69,8 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/fullscreen_button"
|
android:id="@+id/fullscreen_button"
|
||||||
android:background="@drawable/ic_fullscreen_black_48dp"
|
android:background="?selectableItemBackground"
|
||||||
|
android:src="@drawable/ic_fullscreen_black_48dp"
|
||||||
android:alpha="0.54"
|
android:alpha="0.54"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|||||||
@@ -69,7 +69,8 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/fullscreen_button"
|
android:id="@+id/fullscreen_button"
|
||||||
android:background="@drawable/ic_fullscreen_black_48dp"
|
android:background="?selectableItemBackground"
|
||||||
|
android:src="@drawable/ic_fullscreen_black_48dp"
|
||||||
android:alpha="0.54"
|
android:alpha="0.54"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|||||||
Reference in New Issue
Block a user