personal viewpager update second

ongbodev
ongbo 6 years ago
parent 88ee3689db
commit 68abe66553

@ -0,0 +1,72 @@
//package com.example.PersonalCenter;
//
//import android.view.View;
//
//public class ArcView extends View {
// private int mWidth;
// private int mHeight;
// /**
// * 弧形高度
// */
// private int mArcHeight;
// /**
// * 背景颜色
// */
// private int mBgColor;
// private Paint mPaint;
// private Context mContext;
//
// public ArcView(Context context) {
// this(context, null);
// }
//
// public ArcView(Context context, @Nullable AttributeSet attrs) {
// this(context, attrs, 0);
// }
//
// public ArcView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
// super(context, attrs, defStyleAttr);
//
// TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.ArcView);
// mArcHeight = typedArray.getDimensionPixelSize(R.styleable.ArcView_arcHeight, 0);
// mBgColor=typedArray.getColor(R.styleable.ArcView_bgColor,Color.parseColor("#303F9F"));
//
// mContext = context;
// mPaint = new Paint();
// }
//
// @Override
// protected void onDraw(Canvas canvas) {
// super.onDraw(canvas);
//
// mPaint.setStyle(Paint.Style.FILL);
// mPaint.setColor(mBgColor);
//
// Rect rect = new Rect(0, 0, mWidth, mHeight - mArcHeight);
// canvas.drawRect(rect, mPaint);
//
//
// Path path = new Path();
// path.moveTo(0, mHeight - mArcHeight);
// path.quadTo(mWidth / 2, mHeight, mWidth, mHeight - mArcHeight);
// canvas.drawPath(path, mPaint);
//
// }
//
// @Override
// protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
// super.onMeasure(widthMeasureSpec, heightMeasureSpec);
// int widthSize = MeasureSpec.getSize(widthMeasureSpec);
// int widthMode = MeasureSpec.getMode(widthMeasureSpec);
// int heightSize = MeasureSpec.getSize(heightMeasureSpec);
// int heightMode = MeasureSpec.getMode(heightMeasureSpec);
//
// if (widthMode == MeasureSpec.EXACTLY) {
// mWidth = widthSize;
// }
// if (heightMode == MeasureSpec.EXACTLY) {
// mHeight = heightSize;
// }
// setMeasuredDimension(mWidth, mHeight);
// }
//}

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:dither="true"
android:shape="rectangle">
<corners android:radius="4dp"/>
<solid android:color="#4b405c"/>
</shape>

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 935 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 596 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 511 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 B

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="true">
<item android:drawable="@drawable/dislike_1" android:duration="200"/>
<item android:drawable="@drawable/dislike_2" android:duration="200"/>
<item android:drawable="@drawable/dislike_3" android:duration="200"/>
<item android:drawable="@drawable/dislike_4" android:duration="200"/>
<item android:drawable="@drawable/dislike_5" android:duration="200"/>
<item android:drawable="@drawable/dislike_6" android:duration="200"/>
<item android:drawable="@drawable/dislike_7" android:duration="200"/>
<item android:drawable="@drawable/dislike_8" android:duration="200"/>
<item android:drawable="@drawable/dislike_9" android:duration="200"/>
</animation-list>

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="true">
<item android:drawable="@drawable/like_1" android:duration="30"/>
<item android:drawable="@drawable/like_2" android:duration="30"/>
<item android:drawable="@drawable/like_2_1" android:duration="30"/>
<item android:drawable="@drawable/like_2_2" android:duration="30"/>
<item android:drawable="@drawable/like_2_3" android:duration="30"/>
<item android:drawable="@drawable/like_3" android:duration="30"/>
<item android:drawable="@drawable/like_3_1" android:duration="30"/>
<item android:drawable="@drawable/like_4" android:duration="30"/>
<item android:drawable="@drawable/like_4_1" android:duration="30"/>
<item android:drawable="@drawable/like_4_2" android:duration="30"/>
<item android:drawable="@drawable/like_4_3" android:duration="30"/>
<item android:drawable="@drawable/like_5" android:duration="30"/>
<item android:drawable="@drawable/like_6" android:duration="30"/>
<item android:drawable="@drawable/like_6_1" android:duration="30"/>
<item android:drawable="@drawable/like_6_2" android:duration="30"/>
<item android:drawable="@drawable/like_6_3" android:duration="30"/>
<item android:drawable="@drawable/like_7" android:duration="30"/>
<item android:drawable="@drawable/like_7_1" android:duration="30"/>
<item android:drawable="@drawable/like_7_2" android:duration="30"/>
<item android:drawable="@drawable/like_7_3" android:duration="30"/>
<item android:drawable="@drawable/like_8" android:duration="30"/>
<item android:drawable="@drawable/like_8_1" android:duration="30"/>
<item android:drawable="@drawable/like_8_2" android:duration="30"/>
<item android:drawable="@drawable/like_8_3" android:duration="30"/>
<item android:drawable="@drawable/like_9" android:duration="30"/>
<item android:drawable="@drawable/like_9_1" android:duration="30"/>
<item android:drawable="@drawable/like_9_2" android:duration="30"/>
<item android:drawable="@drawable/like_9_3" android:duration="30"/>
<item android:drawable="@drawable/like_10" android:duration="30"/>
</animation-list>

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:radius="9dp"
android:topLeftRadius="2dp"
android:topRightRadius="2dp"
android:bottomLeftRadius="2dp"
android:bottomRightRadius="2dp"/>
<!-- 渐变色 -->
<gradient
android:startColor="@android:color/white"
android:centerColor="@android:color/black"
android:endColor="@android:color/black"
android:useLevel="true"
android:angle="45"
android:type="radial"
android:centerX="0"
android:centerY="0"
android:gradientRadius="90"/>
<!-- <gradient-->
<!-- android:angle="135"-->
<!-- android:centerColor="#4CAF50"-->
<!-- android:endColor="#2E7D32"-->
<!-- android:startColor="#81C784"-->
<!-- android:type="linear"/>-->
</shape>

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="30dp"/>
<solid android:color="@color/white" />
<padding android:bottom="5dp"
android:top="5dp"
android:left="5dp"
android:right="5dp"/>
</shape>

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="30dp"/>
<solid android:color="@color/colorYellow" />
<padding android:bottom="5dp"
android:top="5dp"
android:left="5dp"
android:right="5dp"/>
</shape>

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="4">
<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@drawable/bg_round_rect"
android:gravity="center"
android:text="Navigation"
android:textColor="#9b92b3"
android:textStyle="bold"/>
<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginEnd="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:background="@drawable/bg_round_rect"
android:gravity="center"
android:text="Tab"
android:textColor="#9b92b3"
android:textStyle="bold"/>
<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:background="@drawable/bg_round_rect"
android:gravity="center"
android:text="Bar"
android:textColor="#9b92b3"
android:textStyle="bold"/>
<TextView
android:id="@+id/txt_vp_item_page"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@drawable/bg_round_rect"
android:gravity="center"
android:text="Page"
android:textColor="#9b92b3"
android:textStyle="bold"/>
</LinearLayout>

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<android.support.v7.widget.RecyclerView
android:id="@+id/rv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:clipToPadding="false"
android:clipChildren="false"
tools:listitem="@layout/item_list"/>
</FrameLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="red_wine">
<item>#ff670729</item>
<item>#ff7a0c2d</item>
<item>#ff96092d</item>
<item>#ffa10a37</item>
<item>#ffbf013b</item>
</string-array>
<string-array name="polluted_waves">
<item>#394948</item>
<item>#5a7874</item>
<item>#499092</item>
<item>#43abae</item>
<item>#6ecfd2</item>
</string-array>
<string-array name="medical_express">
<item>#a3a3a3</item>
<item>#bbbbbb</item>
<item>#cccccc</item>
<item>#dddddd</item>
<item>#eeeeee</item>
</string-array>
<string-array name="vertical_ntb">
<item>#df5a55</item>
<item>#f9bb72</item>
<item>#76afcf</item>
<item>#dd6495</item>
<item>#72d3b4</item>
<item>#563d91</item>
<item>#56342e</item>
<item>#8c9f58</item>
</string-array>
</resources>
Loading…
Cancel
Save