This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.bisapp.threadingexamples.loaders; | |
import android.content.Context; | |
import android.content.pm.ActivityInfo; | |
import android.content.pm.ApplicationInfo; | |
import android.content.pm.PackageInfo; | |
import android.content.pm.PackageManager; | |
import android.content.res.Configuration; | |
import android.content.res.Resources; | |
import android.graphics.drawable.Drawable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void createObservablesAndSubscribing() { | |
Observable observable = Observable.create(new ObservableOnSubscribe() { | |
@Override | |
public void subscribe(@NonNull ObservableEmitter emitter) { | |
emitter.onNext("Emitting new Stuff !!"); | |
emitter.onComplete(); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.bisapp.rxjavaexamples; | |
import java.util.concurrent.Callable; | |
import io.reactivex.Observable; | |
import io.reactivex.ObservableSource; | |
public class Book { | |
String page = "First page"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android" | |
android:ordering="together"> | |
<objectAnimator android:propertyName="x" | |
android:valueTo="50" | |
android:duration="2000" | |
android:interpolator="@android:interpolator/accelerate_decelerate"/> | |
<objectAnimator | |
android:duration="2000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:state_pressed="true"> | |
<set > | |
<objectAnimator android:propertyName="scaleX" | |
android:duration="@android:integer/config_shortAnimTime" | |
android:valueTo="1.2" | |
android:valueType="floatType"/> | |
<objectAnimator android:propertyName="scaleY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Button | |
android:id="@+id/scaleBtn" | |
android:layout_width="0dp" | |
android:stateListAnimator="@animator/animate_scale" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="8dp" | |
android:layout_weight="0.4" | |
android:text="Scale" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" | |
android:oneshot="false"> | |
<item | |
android:drawable="@drawable/baseline_star_border_black_18dp" | |
android:duration="200" /> | |
<item | |
android:drawable="@drawable/baseline_star_half_black_18dp" | |
android:duration="200" /> | |
<item |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.bisapp.android_animations; | |
import android.graphics.drawable.AnimationDrawable; | |
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ImageView; | |
import androidx.annotation.NonNull; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<animated-vector | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:aapt="http://schemas.android.com/aapt"> | |
<aapt:attr name="android:drawable"> | |
<vector | |
android:name="vector" | |
android:width="84dp" | |
android:height="84dp" | |
android:viewportWidth="24" | |
android:viewportHeight="24"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@+id/master_layout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<Button | |
android:id="@+id/goBtn" | |
android:layout_width="wrap_content" |
OlderNewer