Skip to content

Commit d54cd8b

Browse files
author
Daniel Quah
committed
Set background color for fancy announcement
1 parent 2a91f2f commit d54cd8b

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

app/src/main/res/layout/fancy_announcement.xml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,31 @@
22
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:layout_width="match_parent"
44
android:layout_height="match_parent"
5-
xmlns:app="http://schemas.android.com/apk/res-auto"
6-
android:background="@android:color/transparent">
5+
android:background="@android:color/transparent"
6+
xmlns:app="http://schemas.android.com/apk/res-auto">
7+
8+
<LinearLayout
9+
android:id="@+id/fakeheader"
10+
android:layout_width="match_parent"
11+
android:layout_height="100dp"
12+
android:layout_alignParentTop="true"
13+
android:layout_centerHorizontal="true"
14+
android:background="#80000000"
15+
android:orientation="vertical"
16+
app:layout_constraintEnd_toEndOf="parent"
17+
app:layout_constraintStart_toStartOf="parent"
18+
app:layout_constraintTop_toTopOf="parent" >
19+
</LinearLayout>
20+
721

822
<ImageView
923
android:id="@+id/announcementImage"
1024
android:layout_width="100dp"
1125
android:layout_height="100dp"
12-
app:layout_constraintStart_toStartOf="parent"
26+
android:layout_marginTop="52dp"
1327
app:layout_constraintEnd_toEndOf="parent"
28+
app:layout_constraintHorizontal_bias="0.498"
29+
app:layout_constraintStart_toStartOf="parent"
1430
app:layout_constraintTop_toTopOf="parent" />
1531

1632
<TextView

0 commit comments

Comments
 (0)