2
は私は容器の中にメイン.Iamは、画像ボケレイアウトを半透明にするにはどうすればよいですか?
を作るスクロールタブを作成しようとしています。しかし、私は半分のぼかしを表示したいと半分色
でもう1つはぼかしの背景を表示し、もう1つは素材デザインの色を「アルファなし」
設定方法ここは、ここで私の容器本体のコード
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.example.union.front1.MainActivity"
tools:showIn="@layout/activity_main">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v4.view.ViewPager
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/pager"
android:background="#060606">
<android.support.v4.view.PagerTitleStrip
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:theme="@style/Base.TextAppearance.AppCompat.Widget.ActionBar.Title"
android:id="@+id/title"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:layout_gravity="top"
android:background="#000"
style="@style/AppTheme.my"
android:layout_marginTop="15dp"/>
</android.support.v4.view.ViewPager>
</RelativeLayout>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:id="@+id/imageView"
android:alpha="0.8"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
</RelativeLayout>
である私のフラグメントのコードは、私がやっていたエラーがある
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context="com.example.union.front1.Album"
android:background="#e5060606">
<es.guiguegon.sineview.SineView
android:id="@+id/sine_view_album"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
app:sv_sine_alpha="1"
app:sv_sine_amplitude="25dp"
app:sv_sine_animation_time_millis="2000"
app:sv_sine_color="@color/colorPrimaryDark"
app:sv_sine_periods_to_show="2"
app:sv_sine_phase="1" />
</RelativeLayout>
私は透明と半分の強い色として半分のレイアウトを設定するにはどうすればよい