Giter VIP home page Giter VIP logo

materializeyourapp's Issues

What if I have a clickable view inside the nested scroll view

Hi,

First of all, thanks for your sample, it was of great help for me.
I have a problem though, and I hope you can help me with it.

If I have the same layout you have in activity_detail.xml but I set the CardView as clickable="true", then I cannot scroll from within that view.

Do you know how to address this problem?

Null avatar crash on run

The avator view is null when I run it on my Android 5.0 phone:

I was able to continue without crash by outcommenting line in MainActivity.onCreate:
Picasso.with(this).load(AVATAR_URL).transform(new CircleTransform()).into(avatar);

Tested on: 38f40a1

Thank you for supplying this example, it was useful to us.

Best Alex

Downloaded and got a Trojan Malware warning

I find this incredibly weird but I downloaded the zip file of the project, unpacked it and my AntiVirus software threw a trojan malware warning at me. Something to do with a CoinMiner. Worthy of note is the fact that I did nothing before this other than reviewing this project so I doubt it could have come from the other sites I had open at the time i.e. StackOverflow or developer.android.com. Perhaps a quick safety check would be advisable.

API 16+ ? Any chance for API 8+ ?

        <activity
            android:name=".DetailActivity"
            android:parentActivityName=".MainActivity">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".MainActivity"/>
        </activity>
android:name="android.support.PARENT_ACTIVITY"

Can't find work around for this. PARENT_ACTIVITY is API 16+

The app I am trying to "Material Design" is API 7+ .

Updated build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 24
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "com.antonioleiva.materializeyourapp"
        minSdkVersion 7
        targetSdkVersion 24
        versionCode 3
        versionName "1.0"
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:24.0.0'
    compile 'com.android.support:recyclerview-v7:24.0.0'
    compile 'com.android.support:cardview-v7:24.0.0'
    compile 'com.android.support:palette-v7:24.0.0'
    compile 'com.android.support:design:24.0.0'
    compile 'com.squareup.picasso:picasso:2.4.0'
}

java.lang.ClassCastException: You should only use a GridLayoutManager with GridRecyclerView.

Just import this sample to android studio, in activity_main I am getting following error in xml

java.lang.ClassCastException: You should only use a GridLayoutManager with GridRecyclerView.
    at com.antonioleiva.materializeyourapp.widgets.GridRecyclerView.setLayoutManager(GridRecyclerView.java:56)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.android.layoutlib.bridge.util.ReflectionUtils.invoke(ReflectionUtils.java:45)
    at com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setProperty(RecyclerViewUtil.java:126)
    at com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setProperty(RecyclerViewUtil.java:120)
    at com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setLayoutManager(RecyclerViewUtil.java:78)
    at com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setAdapter(RecyclerViewUtil.java:59)
    at android.view.BridgeInflater.setupViewInContext(BridgeInflater.java:292)
    at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:188)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
    at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:835)
    at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:811)
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
    at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:838)
    at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:811)
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:394)
    at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:223)
    at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:426)
    at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)
    at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:510)
    at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:498)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:888)
    at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:498)
    at com.android.tools.idea.rendering.RenderTask.access$600(RenderTask.java:72)
    at com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:610)
    at com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:607)
    at com.android.tools.idea.rendering.RenderService.runRenderAction(RenderService.java:362)
    at com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:607)
    at com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:629)
    at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.doRender(AndroidLayoutPreviewToolWindowManager.java:652)
    at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.access$1700(AndroidLayoutPreviewToolWindowManager.java:80)
    at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7$1.run(AndroidLayoutPreviewToolWindowManager.java:594)
    at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:452)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137)
    at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7.run(AndroidLayoutPreviewToolWindowManager.java:589)
    at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320)
    at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310)
    at com.intellij.util.ui.update.MergingUpdateQueue$2.run(MergingUpdateQueue.java:254)
    at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:269)
    at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:227)
    at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:217)
    at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
    at com.intellij.util.Alarm$Request$1.run(Alarm.java:351)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

Multiple detail activities

Fyi, multiple detail activities are started when (accidentally) double clicking a grid item. I assume it happens because of the 200 ms ripple effect delay. When clicking back twice to get back to the grid, the item image turns white.

How to exclude image and fab from bottom transition

When opening DetailActivity then full content is showing while transition performing
But how to exclude header image?
I tried this: but it doesn't work

  private void initActivityTransitions() {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            Slide transition = new Slide();
            transition.excludeTarget(R.id.app_bar_layout, true);
            transition.excludeTarget(R.id.collapsing_toolbar, true);
            getWindow().setEnterTransition(transition);
            getWindow().setReturnTransition(transition);
        }
    }

default

NavigationView

how can i show the numbers in the NavigationView item layout on the right?

Weird behavior of FloatingActionButton after dismissing Snackbar

Hi.

After dismissing Snackbar by swiping it out FloatingActionButton remains on elevated position.
Steps-To-Reproduce:

  1. Click on FAB.
  2. Swipe-to-dismiss Snackbar.

I see all widgets in your demo are from support design library, so I am curious is there any way to make it move down after dismissing Snackbar?

Thank you.

P.S. Sorry for my English. I hope you understand me.

Non-scrollable detail activity in landscape mode

Thanks a lot for this demo app, very informative.

On my phone, only the non-scrollable image is visible in the detail activity in landscape mode. This means that the card view is not visible and scrolling is not possible.

Support for Lower API

In item_recycler.xml
Change

android:foreground="?android:attr/selectableItemBackground">

to

android:foreground="?attr/selectableItemBackground">

GridRecyclerView problem

Hi I am using GridRecyclerView from your code. I am using this in relative layout. Problem I am facing is gridrecyclerview has internal scrolling. Is there any way by which this scrolling can be applied to whole screen?

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.