跑馬燈加搜尋框
阿新 • • 發佈:2018-11-21
<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>