Giter Site home page Giter Site logo

googlecodelabs / android-design-library Goto Github PK

View Code? Open in Web Editor NEW
378.0 378.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 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

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()));

Navigation drawer

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

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)

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.

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.

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();

FAB issue

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

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

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..

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.