This repository holds the code samples written for ud862 - Android Design for Developers.
udacity / ud862-samples Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Which project shows how to make a coordinated motion?
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.mutabag.androidflavors.MainActivity">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_margin="20dp"
android:background="#fff"
android:elevation="4dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="hello surfaces"/>
</FrameLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_margin="20dp"
android:background="#fff"
android:elevation="8dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="hello surfaces"/>
</FrameLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_margin="20dp"
android:background="#fff"
android:elevation="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="hello surfaces"/>
</FrameLayout>
<ImageButton
android:id="@+id/fab"
android:layout_width="56dp"
android:layout_height="56dp"
android:background="#fff"
android:src="@drawable/fab_plus"
android:elevation="6dp"
android:layout_marginStart="19dp"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:layout_marginTop="15dp" />
<android.support.design.widget.FloatingActionButton
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:src="@drawable/fab_plus"
app:fabSize="normal"
app:elevation="6dp"
app:pressedTranslationZ="12dp"
app:borderWidth="0dp"
app:layout_anchorGravity="bottom|right|end"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_alignTop="@+id/fab"
android:layout_toEndOf="@+id/fab" />
</LinearLayout>
</android.support.constraint.ConstraintLayout>
It's the same sample as the SimplePaperTransformation project!
Please upload the correct one. Thanks!
Ran code demo verbatim:
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
at io.paperplane.techpanda.surfacedesignpractice.MainActivity$1.onBindViewHolder(MainActivity.java:46)
at io.paperplane.techpanda.surfacedesignpractice.MainActivity$1.onBindViewHolder(MainActivity.java:38)
at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6673)
Hi,
you should probably remove the local.properties file in ud862-samples/SimplePaperTransformations
/Patrick
Hi,
not sure if I'm just blind, but I cannot find the sample for Lesson 4 Chapter Coordinated Motion. It is mentioned in the video, but the instructor notes only link to the Github project, not to a specific directory, and I wasn't able to find it among all the samples.
Could you please check this?
Thanks a lot!
Johannes
At first open it gives me this error:
Error:Could not find com.android.tools.build:gradle:2.3.1. Searched in the following locations: file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/build/gradle/2.3.1/gradle-2.3.1.pom file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/build/gradle/2.3.1/gradle-2.3.1.jar https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.3.1/gradle-2.3.1.pom https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.3.1/gradle-2.3.1.jar https://maven.google.com/com/android/tools/build/gradle/2.3.1/gradle-2.3.1.pom https://maven.google.com/com/android/tools/build/gradle/2.3.1/gradle-2.3.1.jar Required by: :SimplePaperTransformations:unspecified <a href="openFile:C:\Users\masap\AndroidStudioProjects\ud862-samples-master\SimplePaperTransformations\build.gradle">Open File</a>
Than if i try to change the gradle version in build.gradle (in dependencies\classpath) from 2.3.1 to 3.0.1, i get this error:
Error:(1, 0) Unable to find method 'org.gradle.api.Project.getPluginManager()Lorg/gradle/api/plugins/PluginManager;'. Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) <a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. <a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Here non of the options are working (redownloading the dependencies and stopping gradle build processes)
Please change the location of android-sdk, every time I open a new sample project, android studio warn me about this and change the location of it.
Hi
Once I add
<android.support.constraint.Group/>
and
<android.support.constraint.Barrier />
in xml
I get not found error and wont run
is there any thing to add to gradle?
cant import
import android.support.constraint.Group?
I tried to open the SPT example with current version of Android studio. There are build errors if I migrate or not to the current version (gradle, etc).
ScrollView in activity_main.xml is missing the android:nestedScrollingEnabled="true" property. So the image is not hidden during scrolling.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.