Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
半调子程序猿
arcselectlist
提交
aa190ac0
A
arcselectlist
项目概览
半调子程序猿
/
arcselectlist
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
arcselectlist
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
aa190ac0
编写于
5月 29, 2020
作者:
P
pqaikc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
样式调整
上级
130cfb54
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
36 addition
and
20 deletion
+36
-20
app/src/main/java/com/ccb/arcselect/ui/ArcSelectActivity.java
...src/main/java/com/ccb/arcselect/ui/ArcSelectActivity.java
+8
-2
app/src/main/java/com/ccb/arcselect/ui/ArcSelectRotateActivity.java
...in/java/com/ccb/arcselect/ui/ArcSelectRotateActivity.java
+8
-2
app/src/main/java/com/ccb/arcselect/ui/HorizontalSelectActivity.java
...n/java/com/ccb/arcselect/ui/HorizontalSelectActivity.java
+8
-2
app/src/main/res/drawable/text_background.xml
app/src/main/res/drawable/text_background.xml
+2
-2
app/src/main/res/layout/item_arc.xml
app/src/main/res/layout/item_arc.xml
+3
-4
app/src/main/res/layout/item_auto_select_h.xml
app/src/main/res/layout/item_auto_select_h.xml
+3
-4
app/src/main/res/layout/item_pading.xml
app/src/main/res/layout/item_pading.xml
+2
-3
app/src/main/res/values/colors.xml
app/src/main/res/values/colors.xml
+2
-1
未找到文件。
app/src/main/java/com/ccb/arcselect/ui/ArcSelectActivity.java
浏览文件 @
aa190ac0
...
...
@@ -7,6 +7,7 @@ import androidx.recyclerview.widget.RecyclerView;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
android.view.LayoutInflater
;
import
android.view.MotionEvent
;
...
...
@@ -192,9 +193,14 @@ public class ArcSelectActivity extends AppCompatActivity {
if
(
selectPosition
==
position
)
{
vh
.
tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
textSelect
));
}
else
{
vh
.
tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
colorText
));
vh
.
tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
white
));
}
if
(
TextUtils
.
isEmpty
(
mDatas
.
get
(
position
))){
vh
.
itemView
.
setVisibility
(
View
.
INVISIBLE
);
}
else
{
vh
.
itemView
.
setVisibility
(
View
.
VISIBLE
);
vh
.
tv
.
setText
(
mDatas
.
get
(
position
));
}
vh
.
tv
.
setText
(
mDatas
.
get
(
position
));
final
int
fp
=
position
;
vh
.
itemView
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
...
...
app/src/main/java/com/ccb/arcselect/ui/ArcSelectRotateActivity.java
浏览文件 @
aa190ac0
...
...
@@ -8,6 +8,7 @@ import androidx.recyclerview.widget.RecyclerView;
import
android.animation.ObjectAnimator
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
android.view.LayoutInflater
;
import
android.view.MotionEvent
;
...
...
@@ -231,9 +232,14 @@ public class ArcSelectRotateActivity extends AppCompatActivity {
if
(
selectPosition
==
position
)
{
vh
.
tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
textSelect
));
}
else
{
vh
.
tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
colorText
));
vh
.
tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
white
));
}
if
(
TextUtils
.
isEmpty
(
mDatas
.
get
(
position
))){
vh
.
itemView
.
setVisibility
(
View
.
INVISIBLE
);
}
else
{
vh
.
itemView
.
setVisibility
(
View
.
VISIBLE
);
vh
.
tv
.
setText
(
mDatas
.
get
(
position
));
}
vh
.
tv
.
setText
(
mDatas
.
get
(
position
));
final
int
fp
=
position
;
vh
.
itemView
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
...
...
app/src/main/java/com/ccb/arcselect/ui/HorizontalSelectActivity.java
浏览文件 @
aa190ac0
...
...
@@ -2,6 +2,7 @@ package com.ccb.arcselect.ui;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
android.view.LayoutInflater
;
import
android.view.MotionEvent
;
...
...
@@ -189,9 +190,14 @@ private final int CHILDVIEWSIZE = 100;
if
(
selectPosition
==
position
)
{
vh
.
tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
textSelect
));
}
else
{
vh
.
tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
colorText
));
vh
.
tv
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
white
));
}
if
(
TextUtils
.
isEmpty
(
mDatas
.
get
(
position
))){
vh
.
itemView
.
setVisibility
(
View
.
INVISIBLE
);
}
else
{
vh
.
itemView
.
setVisibility
(
View
.
VISIBLE
);
vh
.
tv
.
setText
(
mDatas
.
get
(
position
));
}
vh
.
tv
.
setText
(
mDatas
.
get
(
position
));
final
int
fp
=
position
;
vh
.
itemView
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
...
...
app/src/main/res/drawable/text_background.xml
浏览文件 @
aa190ac0
...
...
@@ -3,8 +3,8 @@
<corners
android:radius=
"8dp"
/>
<solid
android:color=
"@color/textback"
/>
<padding
android:right=
"
5
dp"
android:left=
"
5
dp"
<padding
android:right=
"
10
dp"
android:left=
"
10
dp"
android:top=
"5dp"
android:bottom=
"5dp"
/>
</shape>
\ No newline at end of file
app/src/main/res/layout/item_arc.xml
浏览文件 @
aa190ac0
...
...
@@ -13,11 +13,10 @@
android:layout_height=
"wrap_content"
tools:text=
"你好"
android:id=
"@+id/tv"
android:paddingStart=
"110dp"
android:paddingEnd=
"0dp"
android:layout_marginLeft=
"110dp"
android:textColor=
"#222"
android:textSize=
"
22
sp"
android:
textStyle=
"bol
d"
android:textSize=
"
18
sp"
android:
background=
"@drawable/text_backgroun
d"
/>
</RelativeLayout>
...
...
app/src/main/res/layout/item_auto_select_h.xml
浏览文件 @
aa190ac0
...
...
@@ -11,10 +11,9 @@
android:layout_height=
"wrap_content"
tools:text=
"你好"
android:id=
"@+id/tv"
android:paddingEnd=
"0dp"
android:textColor=
"#222"
android:textSize=
"20sp"
android:textStyle=
"bold"
android:textColor=
"#fff"
android:textSize=
"17sp"
android:background=
"@drawable/text_background"
/>
</RelativeLayout>
app/src/main/res/layout/item_pading.xml
浏览文件 @
aa190ac0
...
...
@@ -9,9 +9,8 @@
android:text=
"你好"
android:layout_centerVertical=
"true"
android:id=
"@+id/tv"
android:textColor=
"#222"
android:textSize=
"22dp"
android:textStyle=
"bold"
android:textColor=
"#fff"
android:textSize=
"18dp"
android:background=
"@drawable/text_background"
/>
...
...
app/src/main/res/values/colors.xml
浏览文件 @
aa190ac0
...
...
@@ -4,6 +4,7 @@
<color
name=
"colorPrimaryDark"
>
#00574B
</color>
<color
name=
"colorAccent"
>
#D81B60
</color>
<color
name=
"colorText"
>
#222222
</color>
<color
name=
"white"
>
#ffffff
</color>
<color
name=
"textSelect"
>
#FD3535
</color>
<color
name=
"textback"
>
#
88FD7777
</color>
<color
name=
"textback"
>
#
11B898
</color>
</resources>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录