├── .gitignore ├── LICENSE.txt ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── thunderpunch │ │ └── spherelayout │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── thunderpunch │ │ │ └── sample │ │ │ ├── SampleActivity.java │ │ │ └── view │ │ │ └── ElectricView.java │ └── res │ │ ├── drawable │ │ ├── ic_back.png │ │ ├── ic_electric.png │ │ ├── ic_pmb.png │ │ ├── ic_rotate.xml │ │ ├── pm025.png │ │ └── shape_oval_w.xml │ │ ├── layout │ │ └── activity_sample.xml │ │ ├── menu │ │ └── menu_main.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── attrs.xml │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── thunderpunch │ └── spherelayout │ └── ExampleUnitTest.java ├── build.gradle ├── gif ├── i.gif └── ii.gif ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── lib ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── thunderpunch │ │ └── spherelayoutlib │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── thunderpunch │ │ │ └── spherelayoutlib │ │ │ └── layout │ │ │ ├── SLTouchListener.java │ │ │ └── SphereLayout.java │ └── res │ │ └── values │ │ ├── attrs.xml │ │ └── strings.xml │ └── test │ └── java │ └── com │ └── thunderpunch │ └── spherelayoutlib │ └── ExampleUnitTest.java └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | .idea 5 | .DS_Store 6 | /build 7 | /captures 8 | .externalNativeBuild 9 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 thunderpunch 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SphereLayout 2 | 3 | a layout which supports 3d rotate and enable its childview has z-depth for android 4 | 5 | the effect is shown as below 6 | 7 | |I|II| 8 | |:---:|:---:| 9 | |![](/gif/i.gif)|![](/gif/ii.gif)| 10 | 11 | ## Usage 12 | 13 | **XML** 14 | 15 | 1. 在布局中配置SphereLayout, 设置半径"radius"和对齐方向"snapOrientation" (属性说明见XML attributes); 16 | 17 | 2. 添加childview, SphereLayout可以包含任意个childview ,每个childview都需要设置"***layout_depth***"属性,取值范围在 SphereLayout的"radius"正负范围内[ -radius , radius ] , 布局未旋转时,depth越大的childview视觉上越接近用户, depth 为负的childview一开始处于背面. 18 | 19 | 3. childview默认位于SphereLayout在x,y轴构建的平面上的中间位置,可添加margin使它相对中间位置进行偏移. 20 | 21 | ```xml 22 | 23 | 29 | 30 | 37 | 38 | 44 | 45 | 56 | 57 | 58 | 59 | ``` 60 | 61 | **Code** 62 | 63 | 4. 使SphereLayout朝某个方向旋转一定的角度 64 | 65 | ```java 66 | SphereLayout sl = (SphereLayout) findViewById(R.id.sl); 67 | sl.rotate(-40, 30);//朝x轴正方向逆时针旋转40度的方向,向内翻转30度 68 | ``` 69 | 70 | 5. 反转 SphereLayout 71 | 72 | ```java 73 | sl.reverse(true); 74 | ``` 75 | 76 | 77 | 78 | ## XML attributes 79 | 80 | - SphereLayout自身属性 81 | 82 | ```xml 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | ``` 96 | 97 | - SphereLayout 直系子视图的布局参数 98 | 99 | ```xml 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | ``` 108 | 109 | 110 | 111 | ## Extras 112 | 113 | - 使SphereLayout和用户进行手势交互 114 | 115 | ```java 116 | SphereLayout sl = (SphereLayout) findViewById(R.id.sl); 117 | sl.setOnTouchListener(new SLTouchListener(sl)); 118 | ``` 119 | 120 | - 使SphereLayout依附于另一个SphereLayout的中心进行翻转 (待完善) 121 | 122 | ```java 123 | /** 124 | * @param sphereLayout 翻转依赖 125 | */ 126 | public void rotateDependsOn(SphereLayout sphereLayout) { 127 | mDependency = sphereLayout; 128 | mCheckedDependencyOffset = false; 129 | mDependency.mRotateListener = new OnRotateListener() { 130 | @Override 131 | public void onRotate(int direction, int degree) { 132 | rotate(direction, degree); 133 | } 134 | }; 135 | } 136 | ``` 137 | 138 | 139 | 140 | ## License 141 | 142 | ``` 143 | MIT License 144 | 145 | Copyright (c) 2017 thunderpunch 146 | 147 | Permission is hereby granted, free of charge, to any person obtaining a copy 148 | of this software and associated documentation files (the "Software"), to deal 149 | in the Software without restriction, including without limitation the rights 150 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 151 | copies of the Software, and to permit persons to whom the Software is 152 | furnished to do so, subject to the following conditions: 153 | 154 | The above copyright notice and this permission notice shall be included in all 155 | copies or substantial portions of the Software. 156 | 157 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 158 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 159 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 160 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 161 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 162 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 163 | SOFTWARE. 164 | ``` 165 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.2" 6 | defaultConfig { 7 | applicationId "com.thunderpunch.spherelayout" 8 | minSdkVersion 15 9 | targetSdkVersion 25 10 | versionCode 1 11 | versionName "1.0" 12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 13 | vectorDrawables.useSupportLibrary = true 14 | } 15 | buildTypes { 16 | release { 17 | minifyEnabled false 18 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 19 | } 20 | } 21 | } 22 | 23 | dependencies { 24 | compile fileTree(include: ['*.jar'], dir: 'libs') 25 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 26 | exclude group: 'com.android.support', module: 'support-annotations' 27 | }) 28 | compile 'com.android.support:appcompat-v7:25.1.1' 29 | compile 'com.android.support:design:25.1.1' 30 | testCompile 'junit:junit:4.12' 31 | compile project(':lib') 32 | } 33 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\Android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/thunderpunch/spherelayout/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.thunderpunch.spherelayout; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.thunderpunch.spherelayout", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/java/com/thunderpunch/sample/SampleActivity.java: -------------------------------------------------------------------------------- 1 | package com.thunderpunch.sample; 2 | 3 | import android.animation.Animator; 4 | import android.animation.ValueAnimator; 5 | import android.os.Bundle; 6 | import android.support.annotation.Nullable; 7 | import android.support.v4.view.ViewCompat; 8 | import android.support.v7.app.AppCompatActivity; 9 | import android.support.v7.widget.AppCompatCheckBox; 10 | import android.view.View; 11 | import android.view.animation.OvershootInterpolator; 12 | import android.widget.CompoundButton; 13 | 14 | import com.thunderpunch.sample.view.ElectricView; 15 | import com.thunderpunch.spherelayout.R; 16 | import com.thunderpunch.spherelayoutlib.layout.SLTouchListener; 17 | import com.thunderpunch.spherelayoutlib.layout.SphereLayout; 18 | 19 | 20 | /** 21 | * Created by thunderpunch on 2017/4/6 22 | * Description: 23 | */ 24 | 25 | public class SampleActivity extends AppCompatActivity { 26 | private SphereLayout sl; 27 | private View fabFront, fabBack; 28 | private ValueAnimator animator = new ValueAnimator(); 29 | private ElectricView evL, evR; 30 | 31 | @Override 32 | protected void onCreate(@Nullable Bundle savedInstanceState) { 33 | super.onCreate(savedInstanceState); 34 | setContentView(R.layout.activity_sample); 35 | sl = (SphereLayout) findViewById(R.id.sl0); 36 | sl.setOnTouchListener(new SLTouchListener(sl)); 37 | sl.rotate(-30, 30);//静态示例 38 | 39 | fabFront = findViewById(R.id.fab_front); 40 | fabBack = findViewById(R.id.fab_back); 41 | 42 | configReverseAnimator();//配置反转动画 43 | 44 | final View.OnClickListener clickListener = new View.OnClickListener() { 45 | @Override 46 | public void onClick(View v) { 47 | if (!animator.isRunning()) { 48 | animator.start(); 49 | } 50 | } 51 | }; 52 | fabFront.setOnClickListener(clickListener); 53 | fabBack.setOnClickListener(clickListener); 54 | 55 | ViewCompat.setScaleX(fabBack, 0); 56 | ViewCompat.setScaleY(fabBack, 0); 57 | 58 | 59 | ((AppCompatCheckBox) findViewById(R.id.cb_hideBack)).setOnCheckedChangeListener( 60 | new CompoundButton.OnCheckedChangeListener() { 61 | @Override 62 | public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { 63 | sl.hideBack(isChecked); 64 | } 65 | }); 66 | 67 | evR = (ElectricView) findViewById(R.id.electric_r); 68 | evL = (ElectricView) findViewById(R.id.electric_l); 69 | evR.setOnClickListener(new View.OnClickListener() { 70 | @Override 71 | public void onClick(View v) { 72 | evR.shock(); 73 | evL.shock(); 74 | } 75 | }); 76 | 77 | evL.setOnClickListener(new View.OnClickListener() { 78 | @Override 79 | public void onClick(View v) { 80 | evR.shock(); 81 | evL.shock(); 82 | } 83 | }); 84 | } 85 | 86 | private void configReverseAnimator() { 87 | animator = ValueAnimator.ofInt(0, 180); 88 | animator.setInterpolator(new OvershootInterpolator(2)); 89 | animator.setDuration(1400); 90 | animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { 91 | @Override 92 | public void onAnimationUpdate(ValueAnimator animation) { 93 | sl.rotate(0, (Integer) animation.getAnimatedValue()); 94 | float fraction = animation.getAnimatedFraction(); 95 | if (fraction > 0.5) { 96 | ViewCompat.setScaleX(sl.isReverse() ? fabFront : fabBack, (fraction - 0.5f) / 0.5f); 97 | ViewCompat.setScaleY(sl.isReverse() ? fabFront : fabBack, (fraction - 0.5f) / 0.5f); 98 | } else { 99 | fraction = Math.min(fraction, 0.4f); 100 | ViewCompat.setScaleX(sl.isReverse() ? fabBack : fabFront, 1 - fraction / 0.4f); 101 | ViewCompat.setScaleY(sl.isReverse() ? fabBack : fabFront, 1 - fraction / 0.4f); 102 | } 103 | } 104 | }); 105 | animator.addListener(new Animator.AnimatorListener() { 106 | @Override 107 | public void onAnimationStart(Animator animation) { 108 | sl.setEnabled(false); 109 | } 110 | 111 | @Override 112 | public void onAnimationEnd(Animator animation) { 113 | sl.reverse(!sl.isReverse());//在动画结束后设置状态为反转 114 | sl.setEnabled(true); 115 | final boolean isReverse = sl.isReverse(); 116 | fabFront.setEnabled(!isReverse); 117 | fabBack.setEnabled(isReverse); 118 | evL.setEnabled(!isReverse); 119 | evR.setEnabled(!isReverse); 120 | } 121 | 122 | @Override 123 | public void onAnimationCancel(Animator animation) { 124 | 125 | } 126 | 127 | @Override 128 | public void onAnimationRepeat(Animator animation) { 129 | 130 | } 131 | }); 132 | } 133 | 134 | } 135 | -------------------------------------------------------------------------------- /app/src/main/java/com/thunderpunch/sample/view/ElectricView.java: -------------------------------------------------------------------------------- 1 | package com.thunderpunch.sample.view; 2 | 3 | import android.content.Context; 4 | import android.content.res.TypedArray; 5 | import android.graphics.Canvas; 6 | import android.graphics.Paint; 7 | import android.graphics.Path; 8 | import android.support.annotation.Nullable; 9 | import android.util.AttributeSet; 10 | import android.util.TypedValue; 11 | import android.view.View; 12 | import android.view.animation.AccelerateInterpolator; 13 | import android.view.animation.DecelerateInterpolator; 14 | import android.view.animation.Interpolator; 15 | 16 | import com.thunderpunch.spherelayout.R; 17 | 18 | import java.util.Random; 19 | 20 | /** 21 | * Created by thunderpunch on 2017/4/11 22 | * Description: 23 | */ 24 | 25 | public class ElectricView extends View { 26 | private int mDegree; 27 | private int mDegreeOffset = 30; 28 | private int mStartMargin; 29 | private Random mRandom; 30 | private Path mPath; 31 | private int mMaxOffset; 32 | private Paint mPaint; 33 | private int mRemainCount, mElectricCount; 34 | private Interpolator mInterpolator = new AccelerateInterpolator(); 35 | private boolean mStartFromRight = true; 36 | 37 | public ElectricView(Context context) { 38 | this(context, null); 39 | } 40 | 41 | public ElectricView(Context context, @Nullable AttributeSet attrs) { 42 | this(context, attrs, 0); 43 | } 44 | 45 | public ElectricView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { 46 | super(context, attrs, defStyleAttr); 47 | mPath = new Path(); 48 | mRandom = new Random(); 49 | mPaint = new Paint(); 50 | mPaint.setColor(0xffffff8e); 51 | mPaint.setStrokeWidth(3); 52 | mPaint.setStyle(Paint.Style.STROKE); 53 | mMaxOffset = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 8, 54 | getContext().getResources().getDisplayMetrics()); 55 | mStartMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, 56 | getContext().getResources().getDisplayMetrics()); 57 | 58 | TypedArray typedArray = getContext().obtainStyledAttributes(attrs, R.styleable.ElectricView); 59 | mElectricCount = typedArray.getInt(R.styleable.ElectricView_electricCount, 1); 60 | mStartFromRight = typedArray.getInt(R.styleable.ElectricView_startFrom, 0) == 1; 61 | mDegree = typedArray.getInt(R.styleable.ElectricView_degree, 0); 62 | typedArray.recycle(); 63 | } 64 | 65 | 66 | @Override 67 | protected void onDraw(Canvas canvas) { 68 | if (mRemainCount == 0) { 69 | super.onDraw(canvas); 70 | return; 71 | } 72 | canvas.save(); 73 | 74 | final int w = getWidth(); 75 | final int h = getHeight(); 76 | if (mStartFromRight) { 77 | canvas.rotate(180); 78 | canvas.translate(-w, -h); 79 | } 80 | 81 | canvas.translate(0, (h >> 1) - mStartMargin); 82 | final float percent = mInterpolator.getInterpolation(mRemainCount / 5); 83 | int degreeOffset = (int) (mDegreeOffset * percent); 84 | canvas.rotate(mDegree - degreeOffset); 85 | for (int i = 0; i < mElectricCount; i++) { 86 | int currentX = 5 + mRemainCount; 87 | mPath.rewind(); 88 | int j = 0; 89 | while (currentX < w * 0.4 + w * 0.6 * percent || (j <= 1)) { 90 | currentX += mRandom.nextDouble() * 0.5 * w; 91 | mPath.lineTo(currentX, (float) ((mRandom.nextDouble() * 2 - 1) * mMaxOffset)); 92 | j++; 93 | } 94 | canvas.drawPath(mPath, mPaint); 95 | if (i != mElectricCount - 1) { 96 | canvas.translate(0, 2 * mStartMargin / (mElectricCount - 1)); 97 | canvas.rotate(2 * degreeOffset / (mElectricCount - 1)); 98 | } 99 | } 100 | mRemainCount--; 101 | canvas.restore(); 102 | postInvalidateDelayed(70); 103 | } 104 | 105 | public void shock() { 106 | mRemainCount = 5; 107 | postInvalidate(); 108 | } 109 | 110 | 111 | } 112 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/drawable/ic_back.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_electric.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/drawable/ic_electric.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_pmb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/drawable/ic_pmb.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_rotate.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/pm025.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/drawable/pm025.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_oval_w.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_sample.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | 16 | 23 | 24 | 33 | 34 | 41 | 42 | 49 | 50 | 63 | 64 | 72 | 73 | 78 | 79 | 80 | 86 | 87 | 99 | 100 | 112 | 113 | 123 | 124 | 134 | 135 | 136 | 142 | 143 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunderpunch/SphereLayout/e37e4e65e76524abdb744740087634d381d7ec6e/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 16dp 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SphereLayout 3 | Settings 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |