Close OnlineFeedViewActivity when clicking border
This commit is contained in:
parent
c488b6c3fb
commit
75e34da30f
@ -113,6 +113,9 @@ public class OnlineFeedViewActivity extends AppCompatActivity {
|
||||
listView = findViewById(R.id.listview);
|
||||
progressBar = findViewById(R.id.progressBar);
|
||||
|
||||
findViewById(R.id.transparentBackground).setOnClickListener(v -> finish());
|
||||
findViewById(R.id.card).setOnClickListener(null);
|
||||
|
||||
String feedUrl = null;
|
||||
if (getIntent().hasExtra(ARG_FEEDURL)) {
|
||||
feedUrl = getIntent().getStringExtra(ARG_FEEDURL);
|
||||
|
@ -2,15 +2,18 @@
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" xmlns:tools="http://schemas.android.com/tools">
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/transparentBackground">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:cardCornerRadius="4dp"
|
||||
android:layout_margin="32dp"
|
||||
android:elevation="16dp">
|
||||
android:elevation="16dp"
|
||||
android:id="@+id/card">
|
||||
|
||||
<FrameLayout
|
||||
android:orientation="vertical"
|
||||
@ -27,7 +30,7 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/feedDisplay"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
|
Loading…
x
Reference in New Issue
Block a user