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
  • item_knowledge_list.xml
Find file
BlameHistoryPermalink
  • luofan's avatar
    286增加师傅转派功能 · c189f36f
    luofan committed 3 years ago
    c189f36f
item_knowledge_list.xml 3.18 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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="@dimen/dp_13.3"
    android:layout_marginTop="5dp"
    android:layout_marginRight="@dimen/dp_13.3"
    android:background="@drawable/item_shape"
    android:orientation="vertical"
    android:padding="10dp">

    <LinearLayout style="@style/ll_horizontal">

        <TextView
            style="@style/common_text_style"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="【知识标题】:" />

        <TextView
            android:id="@+id/tv_title"
            style="@style/common_text_style"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:singleLine="true"
            android:text="" />
    </LinearLayout>

    <LinearLayout
        style="@style/ll_horizontal"
        android:layout_marginTop="5dp"
        android:gravity="top">

        <TextView
            style="@style/common_text_style"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="【知识详情】:" />

        <TextView
            android:id="@+id/tv_detail"
            style="@style/common_text_style"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:maxLines="3"
            android:text="" />
    </LinearLayout>

    <LinearLayout
        style="@style/ll_horizontal"
        android:layout_marginLeft="6dp"
        android:layout_marginTop="5dp"
        android:visibility="visible"
        android:gravity="center_vertical">

        <TextView
            android:id="@+id/tv_author"
            style="@style/common_text_style"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:ellipsize="end"
            android:maxLines="3"
            android:text="" />

        <TextView
            android:id="@+id/tv_to_detail"
            style="@style/common_text_style"
            android:layout_width="65dp"
            android:layout_height="30dp"
            android:layout_gravity="right"
            android:layout_marginLeft="10dp"
            android:background="@drawable/btn_blue_whitecontent"
            android:gravity="center"
            android:text="详情"
            android:textColor="@color/text_common_blue" />
    </LinearLayout>

    <TextView
        android:id="@+id/detail"
        style="@style/common_text_style"
        android:layout_width="160dp"
        android:layout_height="35dp"
        android:layout_marginTop="@dimen/dp_10"
        android:layout_gravity="center_horizontal"
        android:layout_marginLeft="10dp"
        android:visibility="gone"
        android:background="@drawable/btn_blue_whitecontent"
        android:gravity="center"
        android:text="查看详情"
        android:textColor="@color/text_common_blue" />

</LinearLayout>