Coder Social home page Coder Social logo

googlecodelabs / android-design-library Goto Github PK

View Code? Open in Web Editor NEW
378.0 56.0 163.0 14.9 MB

Build a Material Design App with the Android Design Support Library

Home Page: https://codelabs.developers.google.com/codelabs/material-design-style/

License: Apache License 2.0

Java 100.00%

android-design-library's Introduction

Material Design with Android Design Support Library

Android Design Support library has been released and samples are coming up all over the place. This sample is bringing Material Design implementation using Android Design Support Library.

Introduction

Material design is a new system for visual, interaction and motion design. We launched Android Design Support Library to apply material design to your App. This sample app demonstrates app using Android Design Support Library. Android Developers blog.

Screenshots

Getting Started

Clone this repository, enter the top level directory and run ./gradlew tasks to get an overview of all the tasks available for this project.

Some important tasks are:

assembleDebug - Assembles all Debug builds.
installDebug - Installs the Debug build.
connectedAndroidTest - Installs and runs the tests for Debug build on connected
devices.
test - Run all unit tests.

Support

License

Copyright 2015 Google, Inc.

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.

android-design-library's People

Contributors

bgogetap avatar jfschmakeit avatar keyboardsurfer avatar taquo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-design-library's Issues

Drawer is not open & close for some android phone

The code to open drawer is

NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
// navigationView.setNavigationItemSelectedListener(
// new NavigationView.OnNavigationItemSelectedListener() {
// // This method will trigger on item Click of navigation menu
// @OverRide
// public boolean onNavigationItemSelected(MenuItem menuItem) {
// // Set item in checked state
// menuItem.setChecked(true);
//
// // TODO: handle navigation
//
// // Closing drawer on item click
// mDrawerLayout.closeDrawers();
// return true;
// }
// });

//need to replace and using the action bar
//or u can refer this link
https://github.com/google-developer-training/android-fundamentals-apps-v2/tree/master/NavDrawerExperiment

ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
this, mDrawerLayout, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
mDrawerLayout.setDrawerListener(toggle);
toggle.syncState();

Navigation drawer

there is code for navigation drawer but it dosent work on sliding from any side

TextInputLayout error customization

hi. the error shown in TextInputLayout which is in the Design Library is in a default style.you cant align it to right or change the TypeFace of it.

ActionBar comes front

Navigation drawer goes behind action bar..and in detail activity collapsing toolbar goies behind actionbar..i checked completeley in code..give me some solutions..

FAB issue

The FAB button on example 5 hasn't got proper elevation or shadow.

Toolbar partially covered by status bar

to trigger this, select Tile tab, click on any image and then scroll by touching the appbar then the toolbar will partially be covered by the status bar.

Line Missing in Online Tutorial Version, in 5 Style Each View, Under #14

On the webpage tutorial, in the section #5 Style Each View and Add a Recycler View
Then under #14, in the TileContentFragment onCreateView class, there are two recyclerView statements when there should be three as listed in GitHub

public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
RecyclerView recyclerView = (RecyclerView) inflater.inflate(
R.layout.recycler_view, container, false);
ContentAdapter adapter = new ContentAdapter();
recyclerView.setAdapter(adapter);
recyclerView.setHasFixedSize(true);

    // this is the 3rd recyclerView.set statement added from Github that is missing in the online tutorial
    recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));

Layouts customisation error

Setting layout_height as match_parent in item_list, item_card, item_tiles doesn't give expected view. It should be set to wrap text

1-Base hardcodes the status bar color

In 1-Base v21/styles there is a line

<item name="android:statusBarColor">@android:color/black</item>

https://github.com/googlecodelabs/android-design-library/blob/master/1-Base/src/main/res/values-v21/styles.xml#L20

When we try to do the first step here at
https://www.code-labs.io/codelabs/Material-Design-Style/index.html#2

The status bar color on lollipop devices will not be the blue shown in the screenshot but black instead. Commenting out the above line will result in the correct behavior.

After importing 1-Base, SDK location not found

  1. Double checked local.properties in root have location of my SDK: sdk.dir=/Applications/android-sdk-mac_x86. (Using Mac, 10.11). Tried manually to change SDK location in sdk.dir using relative notation ../../../ (etc), same outcome
  2. Tools-Android-SDK Managers sees SDK, all updated, Android Support Library 23.1 Installed, Build-tools 23.1 installed, SDK tools 24.4.1 installed
  3. while importing project, tried both manually specifying Gradle location (inside AStudio package (2.4)), or leave it for AStudio to download Gradle

Anyone has suggestions? Other projects on this machine works without problem (projects using design support lib)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.