转换方法:
- Convert Android VectorDrawable to SVG:
使用附件中的java程序。命令如下:
cp Vector2Svg.java path/to/xml_dir
javac Vector2Svg.java
java Vector2Svg ./*.xml
mkdir svg_dir
转换方法:
使用附件中的java程序。命令如下:
cp Vector2Svg.java path/to/xml_dir
javac Vector2Svg.java
java Vector2Svg ./*.xml
mkdir svg_dir
| <templateSet group="TimberJava"> | |
| <template name="timd" value="timber.log.Timber.d("$METHOD_NAME$: $content$");" description="Timber.d(String)" toReformat="true" toShortenFQNames="true"> | |
| <variable name="METHOD_NAME" expression="methodName()" defaultValue="" alwaysStopAt="false" /> | |
| <variable name="content" expression="" defaultValue="" alwaysStopAt="true" /> | |
| <context> | |
| <option name="JAVA_STATEMENT" value="true" /> | |
| </context> | |
| </template> | |
| <template name="time" value="timber.log.Timber.e($exception$, "$METHOD_NAME$: $content$");" description="Timber.e(Exception, String)" toReformat="true" toShortenFQNames="true"> | |
| <variable name="exception" expression="" defaultValue="e" alwaysStopAt="true" /> |
| # Autogenerated input type of AddComment | |
| input AddCommentInput { | |
| # A unique identifier for the client performing the mutation. | |
| clientMutationId: String | |
| # The Node ID of the subject to modify. | |
| subjectId: ID! | |
| # The contents of the comment. | |
| body: String! |
| package com.github.brunodles.toastespresso; | |
| import android.support.test.rule.ActivityTestRule; | |
| import android.support.test.runner.AndroidJUnit4; | |
| import android.test.suitebuilder.annotation.LargeTest; | |
| import org.junit.Rule; | |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; |
| package despotoski.nikola.appbarlayoutsamples.view; | |
| import android.animation.IntEvaluator; | |
| import android.animation.ValueAnimator; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.support.design.widget.AppBarLayout; | |
| import android.support.design.widget.CoordinatorLayout; | |
| import android.support.v4.view.ViewCompat; | |
| import android.support.v4.view.ViewPropertyAnimatorCompat; |
| package com.donnfelker.rxexample; | |
| import android.os.Bundle; | |
| import android.support.v7.app.ActionBarActivity; | |
| import rx.Subscriber; | |
| import rx.Subscription; | |
| import rx.android.schedulers.AndroidSchedulers; | |
| import rx.schedulers.Schedulers; |
https://blog.growth.supply/party-tricks-with-rxjava-rxandroid-retrolambda-1b06ed7cd29c
Instead of the verbose setOnClickListener:
RxView.clicks(submitButton).subscribe(o -> log("submit button clicked!"));Observable| import android.content.Context; | |
| import android.os.Build; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.AttributeSet; | |
| import android.view.Gravity; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.view.animation.TranslateAnimation; | |
| import android.widget.FrameLayout; |