Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

android / dayu

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • dayu
  • learnCenter
  • src
  • main
  • res
  • layout
  • activity_course_detail.xml
Find file
BlameHistoryPermalink
  • mReturn's avatar
    fix · 1e9f718d
    mReturn committed 4 years ago
    1e9f718d
activity_course_detail.xml 9.98 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/white">

        <RelativeLayout
            android:id="@+id/rl_title"
            style="@style/title">

            <TextView
                android:id="@+id/tv_title"
                style="@style/text_title"
                android:text="@string/course_detail" />

            <TextView
                android:id="@+id/tv_edit"
                style="@style/common_text_style"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:padding="15dp"
                android:text="@string/edit_str"
                android:visibility="gone" />

            <ImageView
                android:id="@+id/title_back"
                style="@style/title_image_back" />

            <ImageButton
                android:id="@+id/ib_share"
                android:layout_width="40dp"
                android:layout_alignParentRight="true"
                android:background="@color/transparent"
                android:layout_height="match_parent"
                android:src="@drawable/icon_share_gray" />

            <ImageView
                style="@style/card_line"
                android:layout_alignParentBottom="true" />
        </RelativeLayout>

        <com.scwang.smartrefresh.layout.SmartRefreshLayout
            android:id="@+id/refresh_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@id/rl_title"
            android:layout_above="@+id/btn_comment"
            >

            <android.support.v4.widget.NestedScrollView
                android:id="@+id/nsv_learn"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                >

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:orientation="vertical">

                    <LinearLayout style="@style/ll_course_content">

                        <TextView
                            style="@style/tv_course_left"
                            android:text="@string/course_theme" />

                        <TextView
                            android:id="@+id/tv_theme"
                            style="@style/tv_course_content" />
                    </LinearLayout>

                    <LinearLayout style="@style/ll_course_content">

                        <TextView
                            style="@style/tv_course_left"
                            android:text="@string/course_desc" />

                        <TextView
                            android:id="@+id/tv_desc"
                            style="@style/tv_course_content" />
                    </LinearLayout>

                    <LinearLayout style="@style/ll_course_content">

                        <TextView
                            style="@style/tv_course_left"
                            android:text="@string/course_puber" />

                        <TextView
                            android:id="@+id/tv_puber"
                            style="@style/tv_course_content" />
                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/ll_video"
                        android:layout_width="match_parent"
                        android:layout_height="180dp"
                        android:layout_marginTop="15dp">

                        <com.dayu.widgets.MyJzvdStd
                            android:id="@+id/jz_video"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent" />
                    </LinearLayout>

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="10dp"
                        android:layout_marginRight="10dp"
                        android:gravity="center_vertical"
                        android:orientation="horizontal">

                        <TextView
                            android:id="@+id/tv_component"
                            android:layout_width="0dp"
                            android:layout_height="43dp"
                            android:layout_weight="1"
                            android:gravity="center_vertical"
                            android:text="留言"
                            android:textColor="@color/cl_home_title_text_color"
                            android:textSize="14sp"
                            android:textStyle="bold" />

                        <ImageView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginLeft="10dp"
                            android:src="@drawable/icon_looks" />

                        <TextView
                            android:id="@+id/tv_looks"
                            style="@style/common_text_style"
                            android:paddingLeft="5dp"
                            android:text="0" />

                        <ImageButton
                            android:id="@+id/iv_like"
                            android:layout_width="40dp"
                            android:layout_height="match_parent"
                            android:layout_marginLeft="5dp"
                            android:background="@color/transparent"
                            android:src="@drawable/icon_like_gray" />

                        <TextView
                            android:id="@+id/tv_like"
                            style="@style/common_text_style"
                            android:layout_marginRight="10dp"
                            android:layout_height="match_parent"
                            android:gravity="center"
                            android:text="0" />
                        <ImageButton
                            android:layout_width="35dp"
                            android:background="@color/transparent"
                            android:layout_height="match_parent"
                            android:src="@drawable/icon_share_gray" />
                        <TextView
                            android:id="@+id/tv_shares"
                            style="@style/common_text_style"
                            android:layout_height="match_parent"
                            android:gravity="center_vertical"
                            android:paddingRight="10dp"
                            android:text="0" />
                    </LinearLayout>


                    <View
                        android:layout_width="match_parent"
                        android:layout_height="1dp"
                        android:background="@color/color_ee" />

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_margin="10dp"
                        android:focusable="true"
                        android:focusableInTouchMode="true"
                        android:orientation="horizontal">

                        <ImageView
                            android:id="@+id/iv_avatar"
                            android:layout_width="35dp"
                            android:layout_height="35dp"
                            android:layout_marginRight="10dp"
                            android:src="@drawable/icon_user_default" />

                        <EditText
                            android:id="@+id/edt_comment"
                            android:layout_width="0dp"
                            android:layout_height="35dp"
                            android:layout_weight="1"
                            android:background="#f5f5f5"
                            android:hint="@string/ask_detail"
                            android:padding="5dp"
                            android:paddingLeft="5dp"
                            android:singleLine="true"
                            android:textSize="13sp" />

                        <Button
                            android:id="@+id/btn_send"
                            android:layout_width="80dp"
                            android:layout_height="35dp"
                            android:layout_gravity="center_vertical"
                            android:background="@color/cl_home_button"
                            android:gravity="center"
                            android:text="@string/send_str"
                            android:textColor="@color/white"
                            android:textSize="13sp" />
                    </LinearLayout>


                    <android.support.v7.widget.RecyclerView
                        android:id="@+id/rv_component"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="10dp"
                        android:layout_marginRight="10dp" />
                </LinearLayout>
            </android.support.v4.widget.NestedScrollView>
        </com.scwang.smartrefresh.layout.SmartRefreshLayout>

        <Button
            android:visibility="gone"
            android:id="@+id/btn_comment"
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:layout_alignParentBottom="true"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp"
            android:layout_marginBottom="5dp"
            android:background="@color/cl_home_button"
            android:text="@string/ask_detail"
            android:textColor="@color/white"
            android:textSize="13sp" />

    </RelativeLayout>
</layout>