修复拉动拨号控件在列表滚动时图标位置不稳定的BUG.
This commit is contained in:
parent
9ff752b652
commit
322e1426d7
@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Sun Mar 09 17:42:52 HKT 2025
|
#Sun Mar 09 12:03:36 GMT 2025
|
||||||
stageCount=18
|
stageCount=18
|
||||||
libraryProject=
|
libraryProject=
|
||||||
baseVersion=1.0
|
baseVersion=1.0
|
||||||
publishVersion=1.0.17
|
publishVersion=1.0.17
|
||||||
buildCount=0
|
buildCount=17
|
||||||
baseBetaVersion=1.0.18
|
baseBetaVersion=1.0.18
|
||||||
|
@ -46,7 +46,7 @@ public class CallLogAdapter extends RecyclerView.Adapter<CallLogAdapter.CallLogV
|
|||||||
@Override
|
@Override
|
||||||
public void onBindViewHolder(@NonNull CallLogViewHolder holder, int position) {
|
public void onBindViewHolder(@NonNull CallLogViewHolder holder, int position) {
|
||||||
final CallLogModel callLog = callLogList.get(position);
|
final CallLogModel callLog = callLogList.get(position);
|
||||||
holder.phoneNumber.setText(callLog.getPhoneNumber() + " ☎ " + mContactUtils.getContactsName(callLog.getPhoneNumber()));
|
holder.phoneNumber.setText(callLog.getPhoneNumber() + "☎" + mContactUtils.getContactsName(callLog.getPhoneNumber()));
|
||||||
holder.callStatus.setText(callLog.getCallStatus());
|
holder.callStatus.setText(callLog.getCallStatus());
|
||||||
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());
|
||||||
holder.callDate.setText(dateFormat.format(callLog.getCallDate()));
|
holder.callDate.setText(dateFormat.format(callLog.getCallDate()));
|
||||||
@ -54,7 +54,7 @@ public class CallLogAdapter extends RecyclerView.Adapter<CallLogAdapter.CallLogV
|
|||||||
// 初始化拉动后拨号控件
|
// 初始化拉动后拨号控件
|
||||||
holder.dialAOHPCTCSeekBar.setThumb(holder.itemView.getContext().getDrawable(R.drawable.ic_call));
|
holder.dialAOHPCTCSeekBar.setThumb(holder.itemView.getContext().getDrawable(R.drawable.ic_call));
|
||||||
holder.dialAOHPCTCSeekBar.setBlurRightDP(80);
|
holder.dialAOHPCTCSeekBar.setBlurRightDP(80);
|
||||||
//holder.dialAOHPCTCSeekBar.setThumbOffset(10);
|
holder.dialAOHPCTCSeekBar.setThumbOffset(0);
|
||||||
holder.dialAOHPCTCSeekBar.setOnOHPCListener(
|
holder.dialAOHPCTCSeekBar.setOnOHPCListener(
|
||||||
new AOHPCTCSeekBar.OnOHPCListener(){
|
new AOHPCTCSeekBar.OnOHPCListener(){
|
||||||
@Override
|
@Override
|
||||||
|
@ -47,6 +47,7 @@ public class ContactAdapter extends RecyclerView.Adapter<ContactAdapter.ContactV
|
|||||||
// 初始化拉动后拨号控件
|
// 初始化拉动后拨号控件
|
||||||
holder.dialAOHPCTCSeekBar.setThumb(holder.itemView.getContext().getDrawable(R.drawable.ic_call));
|
holder.dialAOHPCTCSeekBar.setThumb(holder.itemView.getContext().getDrawable(R.drawable.ic_call));
|
||||||
holder.dialAOHPCTCSeekBar.setBlurRightDP(80);
|
holder.dialAOHPCTCSeekBar.setBlurRightDP(80);
|
||||||
|
holder.dialAOHPCTCSeekBar.setThumbOffset(0);
|
||||||
holder.dialAOHPCTCSeekBar.setOnOHPCListener(
|
holder.dialAOHPCTCSeekBar.setOnOHPCListener(
|
||||||
new AOHPCTCSeekBar.OnOHPCListener(){
|
new AOHPCTCSeekBar.OnOHPCListener(){
|
||||||
@Override
|
@Override
|
||||||
|
@ -6,32 +6,73 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:id="@+id/phone_number"
|
android:orientation="horizontal"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/phone_number"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textStyle="bold"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/call_status"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="14sp"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/call_date"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="14sp"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="16sp"
|
android:padding="10dp">
|
||||||
android:textStyle="bold"/>
|
|
||||||
|
|
||||||
<TextView
|
<View
|
||||||
android:id="@+id/call_status"
|
android:layout_width="20dp"
|
||||||
android:layout_width="wrap_content"
|
android:layout_height="20dp"
|
||||||
android:layout_height="wrap_content"
|
android:background="#FFE7E7E7"
|
||||||
android:textSize="14sp"
|
android:id="@+id/itemcalllogView1"
|
||||||
android:layout_marginTop="4dp"/>
|
android:layout_alignParentLeft="true"/>
|
||||||
|
|
||||||
<TextView
|
<cc.winboll.studio.libaes.views.AOHPCTCSeekBar
|
||||||
android:id="@+id/call_date"
|
android:layout_toRightOf="@id/itemcalllogView1"
|
||||||
android:layout_width="wrap_content"
|
android:layout_toLeftOf="@id/itemcalllogView2"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:textSize="14sp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="4dp"/>
|
android:id="@+id/aohpctcseekbar_dial"/>
|
||||||
|
|
||||||
<cc.winboll.studio.libaes.views.AOHPCTCSeekBar
|
<View
|
||||||
android:layout_width="match_parent"
|
android:layout_width="20dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="20dp"
|
||||||
android:id="@+id/aohpctcseekbar_dial"
|
android:background="#FFE7E7E7"
|
||||||
android:padding="10dp"/>
|
android:id="@+id/itemcalllogView2"
|
||||||
|
android:layout_alignParentRight="true"/>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -6,25 +6,62 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:id="@+id/contact_name"
|
android:orientation="horizontal"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:textSize="16sp"
|
|
||||||
android:textStyle="bold"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/contact_number"
|
android:id="@+id/contact_number"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="14sp"
|
android:textSize="18sp"
|
||||||
android:layout_marginTop="4dp"/>
|
android:textStyle="bold"/>
|
||||||
|
|
||||||
<cc.winboll.studio.libaes.views.AOHPCTCSeekBar
|
<TextView
|
||||||
|
android:id="@+id/contact_number"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:text="☎"
|
||||||
|
android:textStyle="bold"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/contact_name"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textStyle="bold"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:id="@+id/aohpctcseekbar_dial"
|
android:padding="10dp">
|
||||||
android:padding="10dp"/>
|
|
||||||
|
<View
|
||||||
|
android:layout_width="20dp"
|
||||||
|
android:layout_height="20dp"
|
||||||
|
android:background="#FFE7E7E7"
|
||||||
|
android:id="@+id/itemcalllogView1"
|
||||||
|
android:layout_alignParentLeft="true"/>
|
||||||
|
|
||||||
|
<cc.winboll.studio.libaes.views.AOHPCTCSeekBar
|
||||||
|
android:layout_toRightOf="@id/itemcalllogView1"
|
||||||
|
android:layout_toLeftOf="@id/itemcalllogView2"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/aohpctcseekbar_dial"/>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="20dp"
|
||||||
|
android:layout_height="20dp"
|
||||||
|
android:background="#FFE7E7E7"
|
||||||
|
android:id="@+id/itemcalllogView2"
|
||||||
|
android:layout_alignParentRight="true"/>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user