android / user-interface-samples

Multiple samples showing the best practices in the user interface on Android.
Apache License 2.0
4.44k stars 1.65k forks source link

Start new Haptics sample app using Empty Compose Activity starter #331

Closed jmylen closed 2 years ago

jmylen commented 2 years ago

Thought I would start with this and improve upon the app incrementally so the CLs will be small. I'm new to Android development so want to make sure the PRs aren't too big since I expect a lot of feedback!

yaraki commented 2 years ago

Please add a license header to the code files.

For .kt and .gradle:

/*
 * Copyright (C) 2022 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.
 */

For *.xml:

<!--
  ~ Copyright (C) 2022 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.
-->
jmylen commented 2 years ago

Added, thanks!