/MigratingViewToCompose

In this codelab we migrate one screen from View to compose. And also we test that compose view. We migrate one view at a time.

Primary LanguageKotlinApache License 2.0Apache-2.0

Migrating to Jetpack Compose

This folder contains the source code for the Migrating to Jetpack Compose codelab.

The codelab which migrates parts of Sunflower's Plant details screen to Jetpack Compose is built in multiple GitHub branches:

  • main is the codelab's starting point.
  • end contains the solution to this codelab.

Pre-requisites

Getting Started

  1. Install the latest Android Studio canary.
  2. Download the sample.
  3. Import the sample into Android Studio.
  4. Build and run the sample.

Screenshots

List of plants Plant details My Garden

License

Copyright (C) 2020 The Android Open Source Project

Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements.  See the NOTICE file distributed with this work for
additional information regarding copyright ownership.  The ASF licenses this
file to you 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.