Commit 65e4b25b authored by wanglei's avatar wanglei

...

parent 5f62656c
package com.base.browserwhite.bean package com.base.browserwhite.bean
import android.graphics.Bitmap
class NewsBean( class NewsBean(
val newsId: Long = 0, val newsId: Long = 0,
val publishTime: Long = 0, val publishTime: Long = 0,
...@@ -13,7 +11,7 @@ class NewsBean( ...@@ -13,7 +11,7 @@ class NewsBean(
val type: Int = 0, val type: Int = 0,
val linkPath: String = "",//网站链接 val linkPath: String = "",//网站链接
) { ) {
var uiType: Int = 0
} }
// 栏目类别 0:最新 , 101 :政治, 301:体育 ,娱乐:501 , // 栏目类别 0:最新 , 101 :政治, 301:体育 ,娱乐:501 ,
......
...@@ -39,6 +39,8 @@ class SearchRecordAdapter : BaseQuickAdapter<SearchRecordBean, SearchRecordAdapt ...@@ -39,6 +39,8 @@ class SearchRecordAdapter : BaseQuickAdapter<SearchRecordBean, SearchRecordAdapt
} }
if (!item.isDelete) { if (!item.isDelete) {
showItemAnimation(binding.root) showItemAnimation(binding.root)
} else {
binding.root.background = null
} }
} }
......
...@@ -26,6 +26,7 @@ import com.base.browserwhite.bean.ConstObject.NEWS ...@@ -26,6 +26,7 @@ import com.base.browserwhite.bean.ConstObject.NEWS
import com.base.browserwhite.bean.ConstObject.YAHOO import com.base.browserwhite.bean.ConstObject.YAHOO
import com.base.browserwhite.bean.ConstObject.YANDEX import com.base.browserwhite.bean.ConstObject.YANDEX
import com.base.browserwhite.bean.ConstObject.searchEngineSp import com.base.browserwhite.bean.ConstObject.searchEngineSp
import com.base.browserwhite.bean.NewsBean
import com.base.browserwhite.bean.WebSiteBean import com.base.browserwhite.bean.WebSiteBean
import com.base.browserwhite.bean.defaultValue import com.base.browserwhite.bean.defaultValue
import com.base.browserwhite.bean.webSiteGroupBeanList import com.base.browserwhite.bean.webSiteGroupBeanList
...@@ -235,6 +236,11 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>() { ...@@ -235,6 +236,11 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>() {
}) })
} }
fun addNativeAdNewsBean(it: List<NewsBean>) {
val list = arrayListOf<NewsBean>()
}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data) super.onActivityResult(requestCode, resultCode, data)
val animator: ObjectAnimator = ObjectAnimator.ofFloat( val animator: ObjectAnimator = ObjectAnimator.ofFloat(
......
...@@ -18,11 +18,12 @@ ...@@ -18,11 +18,12 @@
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<ImageView <ImageView
android:layout_alignBottom="@id/cl_search"
android:layout_alignTop="@id/cl_search"
android:id="@+id/iv_share" android:id="@+id/iv_share"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="15dp" android:layout_marginEnd="15dp"
android:src="@mipmap/fenxiang" android:src="@mipmap/fenxiang"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="10dp" android:layout_marginHorizontal="10dp"
android:layout_marginVertical="5.5dp"
android:background="@drawable/bg_eef1f6_20"> android:background="@drawable/bg_eef1f6_20">
<TextView <TextView
...@@ -21,8 +22,8 @@ ...@@ -21,8 +22,8 @@
<ImageView <ImageView
android:id="@+id/iv_delete" android:id="@+id/iv_delete"
android:layout_width="40dp" android:layout_width="42dp"
android:layout_height="40dp" android:layout_height="42dp"
android:layout_gravity="center" android:layout_gravity="center"
android:src="@mipmap/del_searchrecord" android:src="@mipmap/del_searchrecord"
android:visibility="gone" android:visibility="gone"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment