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);
|
listView = findViewById(R.id.listview);
|
||||||
progressBar = findViewById(R.id.progressBar);
|
progressBar = findViewById(R.id.progressBar);
|
||||||
|
|
||||||
|
findViewById(R.id.transparentBackground).setOnClickListener(v -> finish());
|
||||||
|
findViewById(R.id.card).setOnClickListener(null);
|
||||||
|
|
||||||
String feedUrl = null;
|
String feedUrl = null;
|
||||||
if (getIntent().hasExtra(ARG_FEEDURL)) {
|
if (getIntent().hasExtra(ARG_FEEDURL)) {
|
||||||
feedUrl = getIntent().getStringExtra(ARG_FEEDURL);
|
feedUrl = getIntent().getStringExtra(ARG_FEEDURL);
|
||||||
|
|
|
@ -2,15 +2,18 @@
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
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
|
<androidx.cardview.widget.CardView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
app:cardCornerRadius="4dp"
|
app:cardCornerRadius="4dp"
|
||||||
android:layout_margin="32dp"
|
android:layout_margin="32dp"
|
||||||
android:elevation="16dp">
|
android:elevation="16dp"
|
||||||
|
android:id="@+id/card">
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
|
@ -27,7 +30,7 @@
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/feedDisplay"
|
android:id="@+id/feedDisplay"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
@ -39,7 +42,7 @@
|
||||||
android:id="@+id/imgvBackground"
|
android:id="@+id/imgvBackground"
|
||||||
style="@style/BigBlurryBackground"
|
style="@style/BigBlurryBackground"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/feeditemlist_header_height" />
|
android:layout_height="@dimen/feeditemlist_header_height"/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imgvCover"
|
android:id="@+id/imgvCover"
|
||||||
|
@ -77,7 +80,7 @@
|
||||||
android:shadowColor="@color/black"
|
android:shadowColor="@color/black"
|
||||||
android:shadowRadius="3"
|
android:shadowRadius="3"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
tools:text="Podcast title" />
|
tools:text="Podcast title"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/txtvAuthor"
|
android:id="@+id/txtvAuthor"
|
||||||
|
|
Loading…
Reference in New Issue