-
-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow one level of nested frames in sitemaps (#3785)
Signed-off-by: Jimmy Tanagra <[email protected]> Co-authored-by: Danny Baumann <[email protected]>
- Loading branch information
Showing
5 changed files
with
130 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
mobile/src/main/res/drawable/frame_nested_chip_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<corners android:topRightRadius="16dp" android:bottomRightRadius="16dp" /> | ||
<solid android:color="?attr/colorTertiaryContainer" /> | ||
</shape> |
38 changes: 38 additions & 0 deletions
38
mobile/src/main/res/layout/widgetlist_frameitem_nested.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FrameLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<androidx.legacy.widget.Space | ||
android:id="@+id/first_view_spacer" | ||
android:layout_width="match_parent" | ||
android:layout_height="1dp" | ||
android:visibility="gone" /> | ||
|
||
<FrameLayout | ||
android:id="@+id/container" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="4dp" | ||
android:layout_marginBottom="4dp" | ||
android:layout_marginEnd="16dp" | ||
android:paddingHorizontal="16dp" | ||
android:background="@drawable/frame_nested_chip_background"> | ||
|
||
<TextView | ||
android:id="@+id/widgetlabel" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="8dp" | ||
android:paddingVertical="8dp" | ||
android:maxLines="2" | ||
android:ellipsize="end" | ||
android:textAppearance="?attr/textAppearanceTitleSmall" | ||
android:textColor="?attr/colorOnTertiaryContainer" | ||
tools:text="Frame title" /> | ||
|
||
</FrameLayout> | ||
|
||
</FrameLayout> |
38 changes: 38 additions & 0 deletions
38
mobile/src/main/res/layout/widgetlist_frameitem_nested_compact.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FrameLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<androidx.legacy.widget.Space | ||
android:id="@+id/first_view_spacer" | ||
android:layout_width="match_parent" | ||
android:layout_height="1dp" | ||
android:visibility="gone" /> | ||
|
||
<FrameLayout | ||
android:id="@+id/container" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="4dp" | ||
android:layout_marginBottom="4dp" | ||
android:layout_marginEnd="16dp" | ||
android:paddingVertical="4dp" | ||
android:paddingHorizontal="16dp" | ||
android:background="@drawable/frame_nested_chip_background"> | ||
|
||
<TextView | ||
android:id="@+id/widgetlabel" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="8dp" | ||
android:maxLines="2" | ||
android:ellipsize="end" | ||
android:textAppearance="?attr/textAppearanceTitleSmall" | ||
android:textColor="?attr/colorOnTertiaryContainer" | ||
tools:text="Frame title" /> | ||
|
||
</FrameLayout> | ||
|
||
</FrameLayout> |