充电桩app代码

fragment_chat_content_video.xml 19KB

    <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout 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" android:background="#424242"> <com.electric.chargingpile.video.VideoPlayer android:id="@+id/videoPlayer" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"></com.electric.chargingpile.video.VideoPlayer> <ImageView android:id="@+id/coverVideoPlayerProgress" android:layout_width="match_parent" android:layout_height="1.5dp" android:background="#424242" app:layout_constraintBottom_toBottomOf="@+id/videoPlayer" /> <ImageView android:id="@+id/playIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:clickable="false" android:src="@drawable/app_talk_video_icon" app:layout_constraintBottom_toBottomOf="@+id/videoPlayer" app:layout_constraintEnd_toEndOf="@+id/videoPlayer" app:layout_constraintStart_toStartOf="@+id/videoPlayer" app:layout_constraintTop_toTopOf="@+id/videoPlayer" /> <android.support.constraint.ConstraintLayout android:id="@+id/videoPlayerCover" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent"> </android.support.constraint.ConstraintLayout> <!--<include layout="@layout/fragment_chat_content_common" />--> <android.support.constraint.ConstraintLayout android:id="@+id/statusBar" android:layout_width="match_parent" android:layout_height="20dp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" tools:background="#76daff" /> <!-- 导航栏 --> <android.support.constraint.ConstraintLayout android:id="@+id/navBar" android:layout_width="match_parent" android:layout_height="44dp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/statusBar" tools:background="#DC7633"> <ImageView android:id="@+id/backIcon" android:layout_width="wrap_content" android:layout_height="match_parent" android:paddingLeft="20dp" android:paddingRight="20dp" android:src="@drawable/app_white_back_icon" app:layout_constraintLeft_toLeftOf="parent" /> <ImageView android:visibility="gone" android:id="@+id/moreIcon" android:layout_width="wrap_content" android:layout_height="match_parent" android:paddingLeft="20dp" android:paddingRight="20dp" android:src="@drawable/app_header_more_icon" app:layout_constraintRight_toRightOf="parent" /> </android.support.constraint.ConstraintLayout> <!-- 底部视图 --> <android.support.constraint.ConstraintLayout android:id="@+id/bottomView" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="-40dp" app:layout_constraintBottom_toBottomOf="parent" tools:background="#f38654"> <!-- 主题信息及关闭按钮 --> <android.support.constraint.ConstraintLayout android:layout_width="match_parent" android:layout_height="52dp" app:layout_constraintBottom_toTopOf="@+id/userInfo" tools:background="#39bd00"> <android.support.constraint.ConstraintLayout android:id="@+id/topicInfo" android:layout_width="wrap_content" android:layout_height="30dp" android:layout_marginLeft="15dp" android:background="@drawable/topic_shape" android:paddingLeft="12dp" android:paddingRight="12dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" tools:background="#ff967d"> <ImageView android:id="@+id/topicIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/topic_icon" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" /> <TextView android:id="@+id/topicTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:ellipsize="end" android:maxLines="1" android:paddingLeft="5dp" android:textColor="#ffffff" android:textSize="11sp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toRightOf="@+id/topicIcon" app:layout_constraintTop_toTopOf="parent" tools:text="#新能源#是的咖啡机圣诞快乐附件可是大家反馈律师费了十多斤风口浪尖水电费会计师了多费劲考虑送到" /> </android.support.constraint.ConstraintLayout> <ImageView android:id="@+id/closeUnfold" android:layout_width="22dp" android:layout_height="22dp" android:layout_margin="15dp" android:src="@drawable/icon_close" android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" tools:background="#013369" tools:visibility="visible" /> </android.support.constraint.ConstraintLayout> <!-- 用户信息 --> <android.support.constraint.ConstraintLayout android:id="@+id/userInfo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:paddingLeft="15dp" app:layout_constraintBottom_toTopOf="@+id/msgContainer" app:layout_constraintLeft_toLeftOf="parent" tools:background="#33ccff"> <ImageView android:id="@+id/headImage" android:layout_width="20dp" android:layout_height="20dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" tools:srcCompat="@tools:sample/avatars[1]" /> <android.support.constraint.ConstraintLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="5dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toRightOf="@+id/headImage" app:layout_constraintTop_toTopOf="parent"> <TextView android:id="@+id/nickName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#ffffff" android:textSize="12sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" tools:text="小电" /> <TextView android:id="@+id/addDate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#888888" android:textSize="12sp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@+id/nickName" tools:text="2019-05-29 16:28" /> </android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout> <!-- 信息 --> <android.support.constraint.ConstraintLayout android:id="@+id/msgContainer" android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_constraintBottom_toTopOf="@+id/progressBar"> <TextView android:id="@+id/msg" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginRight="30dp" android:ellipsize="end" android:paddingLeft="40dp" android:paddingRight="10dp" android:paddingBottom="25dp" android:scrollbarStyle="outsideOverlay" android:scrollbars="vertical" android:textColor="#e2e2e2" android:textSize="14sp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" tools:text="迪克啥看来当减肥考虑送到,迪克啥看来当减肥考虑送到迪克啥看来当减肥考虑送到" /> <ImageView android:id="@+id/fold" android:layout_width="42dp" android:layout_height="62dp" android:paddingLeft="15dp" android:paddingTop="25dp" android:paddingRight="15dp" android:paddingBottom="25dp" android:src="@drawable/unfold_icon" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintRight_toRightOf="parent" /> </android.support.constraint.ConstraintLayout> <!-- 自定义进度条 --> <ProgressBar android:id="@+id/progressBar" style="@android:style/Widget.ProgressBar.Horizontal" android:layout_width="match_parent" android:layout_height="1dp" android:max="100" android:progressDrawable="@drawable/video_player_progressbar" app:layout_constraintBottom_toTopOf="@+id/toolBar" tools:progress="50" /> <!-- 底部工具栏 --> <android.support.constraint.ConstraintLayout android:id="@+id/toolBar" android:layout_width="match_parent" android:layout_height="50dp" app:layout_constraintBottom_toBottomOf="parent" tools:background="#00aee6"> <!-- 写评论--> <android.support.constraint.ConstraintLayout android:id="@+id/writeComment" android:layout_width="wrap_content" android:layout_height="match_parent" android:paddingLeft="15dp" android:paddingRight="15dp" app:layout_constraintLeft_toLeftOf="parent"> <ImageView android:id="@+id/WriteCommentIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" app:srcCompat="@drawable/write_comment_icon" /> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:gravity="center" android:paddingLeft="3dp" android:text="写评论" android:textColor="#c2c2c2" android:textSize="12sp" app:layout_constraintLeft_toRightOf="@+id/WriteCommentIcon" /> </android.support.constraint.ConstraintLayout> <!-- 转发 --> <android.support.constraint.ConstraintLayout android:id="@+id/transmit" android:layout_width="wrap_content" android:layout_height="match_parent" android:paddingLeft="15dp" android:paddingRight="15dp" app:layout_constraintRight_toRightOf="parent"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingRight="3dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintRight_toLeftOf="@+id/transmitLabel" app:layout_constraintTop_toTopOf="parent" app:srcCompat="@drawable/transmit_icon" /> <TextView android:id="@+id/transmitLabel" android:layout_width="wrap_content" android:layout_height="match_parent" android:gravity="center" android:paddingLeft="3dp" android:text="转发" android:textColor="#888888" android:textSize="12sp" app:layout_constraintRight_toRightOf="parent" /> </android.support.constraint.ConstraintLayout> <!-- 评论列表 --> <android.support.constraint.ConstraintLayout android:id="@+id/comment" android:layout_width="wrap_content" android:layout_height="match_parent" android:paddingLeft="15dp" android:paddingRight="15dp" app:layout_constraintRight_toLeftOf="@+id/transmit"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/comment_icon" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintRight_toLeftOf="@+id/commentNumber" app:layout_constraintTop_toTopOf="parent" /> <TextView android:id="@+id/commentNumber" android:layout_width="wrap_content" android:layout_height="match_parent" android:gravity="center" android:paddingLeft="3dp" android:textColor="#888888" android:textSize="12sp" app:layout_constraintRight_toRightOf="parent" tools:text="123" /> </android.support.constraint.ConstraintLayout> <!-- 点赞 --> <android.support.constraint.ConstraintLayout android:id="@+id/like" android:layout_width="wrap_content" android:layout_height="match_parent" app:layout_constraintRight_toLeftOf="@+id/comment"> <ImageView android:id="@+id/likeIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/like_icon" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintRight_toLeftOf="@+id/likeLabel" app:layout_constraintTop_toTopOf="parent" /> <TextView android:id="@+id/likeLabel" android:layout_width="wrap_content" android:layout_height="match_parent" android:gravity="center" android:paddingLeft="3dp" android:textColor="#888888" android:textSize="12sp" app:layout_constraintRight_toRightOf="parent" tools:text="999+" /> </android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout> <RelativeLayout android:id="@+id/rl_point" android:layout_width="80dp" android:layout_height="80dp" android:layout_marginTop="100dp" android:background="@drawable/icon_point_bg" android:visibility="gone" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:orientation="vertical"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="+" android:textColor="@color/white" android:textSize="16sp" /> <TextView android:id="@+id/tv_point" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="2dp" android:text="20" android:textColor="@color/white" android:textSize="19sp" /> </LinearLayout> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginTop="2dp" android:text="充电币" android:textColor="@color/white" android:textSize="13sp" /> </LinearLayout> </RelativeLayout> </android.support.constraint.ConstraintLayout>