Skip to content

Commit efb2d6e

Browse files
committed
feat: create layout for space public links
1 parent 5bd6209 commit efb2d6e

2 files changed

Lines changed: 54 additions & 2 deletions

File tree

owncloudApp/src/main/res/layout/members_fragment.xml

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,63 @@
7070
<androidx.recyclerview.widget.RecyclerView
7171
android:id="@+id/members_recycler_view"
7272
android:layout_width="match_parent"
73-
android:layout_height="0dp"
74-
android:layout_weight="1"
73+
android:layout_height="wrap_content"
7574
android:scrollbars="vertical"
7675
android:visibility="visible"
7776
tools:visibility="visible"/>
7877

78+
<androidx.constraintlayout.widget.ConstraintLayout
79+
android:layout_width="match_parent"
80+
android:layout_height="match_parent"
81+
android:background="@color/actionbar_start_color">
82+
83+
<TextView
84+
android:id="@+id/public_links_title"
85+
android:layout_width="wrap_content"
86+
android:layout_height="50dp"
87+
android:layout_centerVertical="true"
88+
android:gravity="center"
89+
android:text="@string/share_via_link_section_title"
90+
android:layout_marginStart="@dimen/standard_half_margin"
91+
android:textAllCaps="true"
92+
android:textColor="@color/white"
93+
android:textStyle="bold"
94+
android:accessibilityHeading="true"
95+
app:layout_constraintStart_toStartOf="parent"
96+
app:layout_constraintTop_toTopOf="parent"/>
97+
98+
</androidx.constraintlayout.widget.ConstraintLayout>
99+
100+
<TextView
101+
android:id="@+id/public_links_warning"
102+
android:layout_width="match_parent"
103+
android:layout_height="wrap_content"
104+
android:background="@color/warning_background_color"
105+
android:paddingTop="@dimen/standard_padding"
106+
android:paddingBottom="@dimen/standard_padding"
107+
android:paddingStart="@dimen/standard_half_padding"
108+
android:paddingEnd="@dimen/standard_half_padding"
109+
android:text="@string/share_warning_about_forwarding_space_public_links"
110+
android:textColor="@color/warning_grey_text"
111+
android:textSize="15sp" />
112+
113+
<androidx.recyclerview.widget.RecyclerView
114+
android:id="@+id/public_links_recycler_view"
115+
android:layout_width="match_parent"
116+
android:layout_height="wrap_content"
117+
android:scrollbars="vertical" />
118+
119+
<TextView
120+
android:id="@+id/no_public_links_message"
121+
android:layout_width="match_parent"
122+
android:layout_height="wrap_content"
123+
android:paddingTop="@dimen/standard_padding"
124+
android:paddingBottom="@dimen/standard_padding"
125+
android:paddingStart="@dimen/standard_half_padding"
126+
android:paddingEnd="@dimen/standard_half_padding"
127+
android:text="@string/share_no_public_links"
128+
android:textSize="15sp" />
129+
79130
</LinearLayout>
80131

81132
</ScrollView>

owncloudApp/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@
658658
<string name="share_no_public_links">No public links created yet.</string>
659659
<string name="share_no_link_in_this_share">This share has no link.</string>
660660
<string name="share_warning_about_forwarding_public_links">Anyone with the link has access to the file/folder.</string>
661+
<string name="share_warning_about_forwarding_space_public_links">Anyone with the link has access to the space.</string>
661662
<string name="share_via_link_default_password">*****</string>
662663
<string name="share_via_link_password_enforced_label">"Password *"</string>
663664
<string name="share_via_link_expiration_date_enforced_label">"Expiration *"</string>

0 commit comments

Comments
 (0)