<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:singleLine="true"
android:text="最新的手机卫士,快来下载,下载送大礼包!最新的手机卫士,快来下载,下载送大礼包!最新的手机卫士,快来下载,下载送大礼包!" />
搜索框在drawable 里面创建shape
然后在background中引用一下
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#00000000"
/>
<stroke android:color="#999999"
android:width="1dp"
/>
<corners android:radius="30dp"/>
</shape>