瀏覽代碼

modift video background

1145873331@qq.com 6 年之前
父節點
當前提交
0b4b7a19c7

+ 2 - 0
app/src/main/java/com/electric/chargingpile/activity/PublishTopicActivity.java

@ -24,6 +24,7 @@ import com.bumptech.glide.Glide;
24 24
import com.bumptech.glide.load.DataSource;
25 25
import com.bumptech.glide.load.engine.GlideException;
26 26
import com.bumptech.glide.request.RequestListener;
27
import com.bumptech.glide.request.RequestOptions;
27 28
import com.bumptech.glide.request.target.Target;
28 29
import com.electric.chargingpile.R;
29 30
import com.electric.chargingpile.data.TalkRecommendBean;
@ -210,6 +211,7 @@ public class PublishTopicActivity extends Activity implements OnClickListener {
210 211
                                return false;
211 212
                            }
212 213
                        })
214
                        .apply(new RequestOptions().centerCrop())
213 215
                        .into(mItemVideo);
214 216
                mItemVideoLl.setVisibility(View.VISIBLE);
215 217
                mPublishtopicGv.setVisibility(View.GONE);

+ 5 - 3
app/src/main/res/layout/activity_publishtopic.xml

@ -49,6 +49,7 @@
49 49
            android:layout_width="match_parent"
50 50
            android:layout_height="wrap_content"
51 51
            android:orientation="vertical"
52
            android:layout_marginBottom="50dp"
52 53
            android:padding="15dp">
53 54
54 55
            <EditText
@ -72,15 +73,16 @@
72 73
            <RelativeLayout
73 74
                android:id="@+id/item_video_ll"
74 75
                android:visibility="gone"
76
                android:layout_marginBottom="20dp"
75 77
                android:layout_width="wrap_content"
76 78
                android:layout_height="wrap_content">
77 79
78 80
                <ImageView
79 81
                    android:id="@+id/item_video"
80 82
                    android:layout_width="wrap_content"
81
                    android:layout_height="wrap_content"
82
                    android:background="@drawable/icon_feedback_upload"
83
                    android:scaleType="centerCrop" />
83
                    android:minHeight="220dp"
84
                    android:minWidth="206dp"
85
                    android:layout_height="wrap_content"   />
84 86
85 87
                <View
86 88
                    android:layout_width="40dp"

+ 1 - 2
app/src/main/res/layout/activity_videodetails.xml

@ -1,8 +1,7 @@
1 1
<?xml version="1.0" encoding="utf-8"?>
2 2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent"
5
    android:background="#9FF33C">
4
    android:layout_height="match_parent">
6 5
7 6
8 7
    <com.electric.chargingpile.view.sview.VerticalViewPager

+ 1 - 1
app/src/main/res/layout/view_show_view.xml

@ -6,7 +6,7 @@
6 6
    <ImageView
7 7
        android:layout_width="match_parent"
8 8
        android:layout_height="match_parent"
9
        android:background="#fff0" />
9
        android:background="#B9B9B9" />
10 10
11 11
    <com.electric.chargingpile.view.UpVideoView2
12 12
        android:id="@+id/view_show_video"