-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bskjon
committed
May 2, 2024
1 parent
69d8a50
commit c2ab19d
Showing
8 changed files
with
212 additions
and
8 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
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
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 |
---|---|---|
@@ -1,8 +1,59 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<androidx.coordinatorlayout.widget.CoordinatorLayout 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" | ||
android:fitsSystemWindows="true" | ||
android:animateLayoutChanges="true" | ||
tools:context=".SettingActivity2"> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
<com.google.android.material.appbar.AppBarLayout | ||
android:id="@+id/app_bar" | ||
android:layout_width="match_parent" | ||
android:layout_height="300dp" | ||
android:fitsSystemWindows="true"> | ||
|
||
<com.google.android.material.appbar.CollapsingToolbarLayout | ||
android:id="@+id/toolbar_layout" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:fitsSystemWindows="true" | ||
app:layout_scrollFlags="scroll|exitUntilCollapsed" | ||
app:toolbarId="@+id/toolbar"> | ||
|
||
<TextView | ||
android:id="@+id/toolbar_title_large" | ||
android:textColor="@color/white" | ||
tools:text="Test" | ||
android:textSize="32sp" | ||
android:layout_gravity="center" | ||
android:gravity="center" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" /> | ||
|
||
<androidx.appcompat.widget.Toolbar | ||
android:id="@+id/toolbar" | ||
app:titleTextColor="@color/white" | ||
android:layout_width="match_parent" | ||
android:layout_height="?attr/actionBarSize" | ||
app:expandedTitleGravity="bottom" | ||
android:layout_gravity="bottom" | ||
app:layout_collapseMode="pin"> | ||
<TextView | ||
android:textColor="@color/white" | ||
tools:text="Test" | ||
android:id="@+id/toolbar_title" | ||
android:textAppearance="@style/TextAppearance.AppCompat.Title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:gravity="center" /> | ||
|
||
</androidx.appcompat.widget.Toolbar> | ||
|
||
</com.google.android.material.appbar.CollapsingToolbarLayout> | ||
</com.google.android.material.appbar.AppBarLayout> | ||
|
||
<include android:id="@+id/content" layout="@layout/activity_setting_content" /> | ||
|
||
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
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
36 changes: 36 additions & 0 deletions
36
library/setting/src/main/java/no/iktdev/setting/model/DropdownComponentItems.kt
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,36 @@ | ||
package no.iktdev.setting.model | ||
|
||
import android.os.Bundle | ||
import android.os.Parcel | ||
import android.os.Parcelable | ||
import java.io.Serializable | ||
|
||
class DropdownComponentItems( | ||
override val value: ArrayList<DropdownItem> | ||
) : ComponentData(value), Parcelable { | ||
|
||
constructor(parcel: Parcel) : this( | ||
ArrayList<DropdownItem>().apply { | ||
parcel.readList(this, DropdownItem::class.java.classLoader) | ||
} | ||
) | ||
|
||
override fun writeToParcel(parcel: Parcel, flags: Int) { | ||
parcel.writeList(value) | ||
} | ||
|
||
override fun describeContents(): Int { | ||
return 0 | ||
} | ||
|
||
companion object CREATOR : Parcelable.Creator<DropdownComponentItems> { | ||
override fun createFromParcel(parcel: Parcel): DropdownComponentItems { | ||
return DropdownComponentItems(parcel) | ||
} | ||
|
||
override fun newArray(size: Int): Array<DropdownComponentItems?> { | ||
return arrayOfNulls(size) | ||
} | ||
} | ||
|
||
} |
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