Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10e79f18 authored by Santiago Etchebehere's avatar Santiago Etchebehere
Browse files

[ThemePicker 2/N] Add an initial Theme fragment

Initial (mostly empty) implementation of ThemeFragment.
More content to come in follow-up CLs.

Bug: 120559294
Change-Id: Ic763f12cb86945b5af40e14349498660478921a4
parent f23466ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -17,7 +17,7 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item
    <item
        android:state_checked="true"
        android:state_checked="true"
        android:color="@color/accent_color" />
        android:color="?android:colorAccent" />
    <item
    <item
        android:state_checked="false"
        android:state_checked="false"
        android:color="@color/material_grey500" />
        android:color="@color/material_grey500" />
+7 −5
Original line number Original line Diff line number Diff line
@@ -14,7 +14,7 @@
     See the License for the specific language governing permissions and
     See the License for the specific language governing permissions and
     limitations under the License.
     limitations under the License.
-->
-->
<androidx.coordinatorlayout.widget.CoordinatorLayout
<FrameLayout
    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"
    android:layout_width="match_parent"
    android:layout_width="match_parent"
@@ -24,14 +24,16 @@
    <FrameLayout
    <FrameLayout
        android:id="@+id/fragment_container"
        android:id="@+id/fragment_container"
        android:layout_width="match_parent"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
        android:layout_height="match_parent"
        android:layout_marginBottom="@dimen/bottom_navbar_height"/>


    <com.google.android.material.bottomnavigation.BottomNavigationView
    <com.google.android.material.bottomnavigation.BottomNavigationView
        style="@style/BottomNavStyle"
        android:id="@+id/main_bottom_nav"
        android:id="@+id/main_bottom_nav"
        style="@style/BottomNavStyle"
        android:layout_width="match_parent"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_height="@dimen/bottom_navbar_height"
        android:layout_gravity="bottom"
        android:layout_gravity="bottom"
        app:labelVisibilityMode="labeled"
        app:labelVisibilityMode="labeled"
        app:menu="@menu/bottom_navigation_menu"/>
        app:menu="@menu/bottom_navigation_menu"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

</FrameLayout>
+51 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2018 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@color/category_picker_background_color">
    <include layout="@layout/section_header"/>

    <!-- TODO(santie): Preview pager goes here... -->

    <LinearLayout
        android:id="@+id/options_section"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/options_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"/>

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
            <Button
                style="@style/ActionPrimaryButton"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:text="@string/apply_theme_btn"/>
        </RelativeLayout>

    </LinearLayout>

</LinearLayout>

res/values/dimens.xml

0 → 100644
+20 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--

     Copyright (C) 2018 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>
    <dimen name="bottom_navbar_height">56dp</dimen>
</resources>
 No newline at end of file
+4 −0
Original line number Original line Diff line number Diff line
@@ -33,4 +33,8 @@
    <!-- Title of a section of the customization picker where the user can select a Wallpaper.
    <!-- Title of a section of the customization picker where the user can select a Wallpaper.
        [CHAR LIMIT=15] -->
        [CHAR LIMIT=15] -->
    <string name="wallpaper_title">Wallpaper</string>
    <string name="wallpaper_title">Wallpaper</string>

    <!-- Label for a button that allows the user to apply the currently selected Theme.
        [CHAR LIMIT=20] -->
    <string name="apply_theme_btn">Apply Theme</string>
</resources>
</resources>
Loading