259 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			259 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<?xml version="1.0" encoding="utf-8"?>
 | 
						|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
						|
    android:orientation="vertical"
 | 
						|
    android:layout_width="match_parent"
 | 
						|
    android:layout_height="wrap_content">
 | 
						|
    <LinearLayout
 | 
						|
        android:orientation="horizontal"
 | 
						|
        android:layout_width="match_parent"
 | 
						|
        android:layout_height="wrap_content">
 | 
						|
        <LinearLayout
 | 
						|
            android:gravity="center"
 | 
						|
            android:orientation="vertical"
 | 
						|
            android:visibility="gone"
 | 
						|
            android:layout_width="0dp"
 | 
						|
            android:layout_height="match_parent"
 | 
						|
            android:layout_weight="1">
 | 
						|
            <ImageView
 | 
						|
                android:id="@+id/imgLike"
 | 
						|
                android:layout_width="match_parent"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:src="@drawable/diy_details_liked"
 | 
						|
                android:scaleType="centerInside"/>
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_5"
 | 
						|
                android:textColor="@android:color/white"
 | 
						|
                android:ellipsize="end"
 | 
						|
                android:id="@+id/tvLike"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:text="@string/diy_details_like"
 | 
						|
                android:singleLine="true"/>
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_5"
 | 
						|
                android:textColor="#98a5b6"
 | 
						|
                android:ellipsize="end"
 | 
						|
                android:id="@+id/tvLikeNum"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:singleLine="true"/>
 | 
						|
        </LinearLayout>
 | 
						|
        <LinearLayout
 | 
						|
            android:gravity="center"
 | 
						|
            android:orientation="vertical"
 | 
						|
            android:layout_width="0dp"
 | 
						|
            android:layout_height="match_parent"
 | 
						|
            android:layout_weight="1">
 | 
						|
            <ImageView
 | 
						|
                android:id="@+id/imgCreation"
 | 
						|
                android:layout_width="match_parent"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:src="@drawable/diy_details_creation"
 | 
						|
                android:scaleType="centerInside"/>
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_5"
 | 
						|
                android:textColor="@android:color/white"
 | 
						|
                android:ellipsize="end"
 | 
						|
                android:id="@+id/tvCreation"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:text="@string/diy_details_creation"
 | 
						|
                android:singleLine="true"/>
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_5"
 | 
						|
                android:textColor="#98a5b6"
 | 
						|
                android:ellipsize="end"
 | 
						|
                android:id="@+id/tvCreationNum"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:singleLine="true"/>
 | 
						|
        </LinearLayout>
 | 
						|
        <LinearLayout
 | 
						|
            android:gravity="center"
 | 
						|
            android:orientation="vertical"
 | 
						|
            android:layout_width="0dp"
 | 
						|
            android:layout_height="match_parent"
 | 
						|
            android:layout_weight="1">
 | 
						|
            <ImageView
 | 
						|
                android:id="@+id/imgFun"
 | 
						|
                android:layout_width="match_parent"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:src="@drawable/diy_details_fun"
 | 
						|
                android:scaleType="centerInside"/>
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_5"
 | 
						|
                android:textColor="@android:color/white"
 | 
						|
                android:ellipsize="end"
 | 
						|
                android:id="@+id/tvFun"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:text="@string/diy_details_fun"
 | 
						|
                android:singleLine="true"/>
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_5"
 | 
						|
                android:textColor="#98a5b6"
 | 
						|
                android:ellipsize="end"
 | 
						|
                android:id="@+id/tvFunNum"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:singleLine="true"/>
 | 
						|
        </LinearLayout>
 | 
						|
        <LinearLayout
 | 
						|
            android:gravity="center"
 | 
						|
            android:orientation="vertical"
 | 
						|
            android:layout_width="0dp"
 | 
						|
            android:layout_height="match_parent"
 | 
						|
            android:layout_weight="1">
 | 
						|
            <ImageView
 | 
						|
                android:id="@+id/imgEasyBuild"
 | 
						|
                android:layout_width="match_parent"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:src="@drawable/diy_details_easy_build"
 | 
						|
                android:scaleType="centerInside"/>
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_5"
 | 
						|
                android:textColor="@android:color/white"
 | 
						|
                android:ellipsize="end"
 | 
						|
                android:id="@+id/tvEasyBuild"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:text="@string/diy_details_easy_build"
 | 
						|
                android:singleLine="true"/>
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_5"
 | 
						|
                android:textColor="#98a5b6"
 | 
						|
                android:ellipsize="end"
 | 
						|
                android:id="@+id/tvEasyBuildNum"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:singleLine="true"/>
 | 
						|
        </LinearLayout>
 | 
						|
        <LinearLayout
 | 
						|
            android:gravity="center"
 | 
						|
            android:orientation="vertical"
 | 
						|
            android:layout_width="0dp"
 | 
						|
            android:layout_height="match_parent"
 | 
						|
            android:layout_weight="1">
 | 
						|
            <ImageView
 | 
						|
                android:id="@+id/imgGoodProgram"
 | 
						|
                android:layout_width="match_parent"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:src="@drawable/diy_details_good_program"
 | 
						|
                android:scaleType="centerInside"/>
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_5"
 | 
						|
                android:textColor="@android:color/white"
 | 
						|
                android:ellipsize="end"
 | 
						|
                android:id="@+id/tvGoodProgram"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:text="@string/diy_details_good_program"
 | 
						|
                android:singleLine="true"/>
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_5"
 | 
						|
                android:textColor="#98a5b6"
 | 
						|
                android:ellipsize="end"
 | 
						|
                android:id="@+id/tvGoodProgramNum"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:singleLine="true"/>
 | 
						|
        </LinearLayout>
 | 
						|
        <LinearLayout
 | 
						|
            android:gravity="center"
 | 
						|
            android:orientation="vertical"
 | 
						|
            android:layout_width="0dp"
 | 
						|
            android:layout_height="match_parent"
 | 
						|
            android:layout_weight="1">
 | 
						|
            <ImageView
 | 
						|
                android:id="@+id/imgWellDesign"
 | 
						|
                android:layout_width="match_parent"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:src="@drawable/diy_details_well_design"
 | 
						|
                android:scaleType="centerInside"/>
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_5"
 | 
						|
                android:textColor="@android:color/white"
 | 
						|
                android:ellipsize="end"
 | 
						|
                android:id="@+id/tvWellDesign"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:text="@string/diy_details_well_design"
 | 
						|
                android:singleLine="true"/>
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_5"
 | 
						|
                android:textColor="#98a5b6"
 | 
						|
                android:ellipsize="end"
 | 
						|
                android:id="@+id/tvWellDesignNum"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:singleLine="true"/>
 | 
						|
        </LinearLayout>
 | 
						|
    </LinearLayout>
 | 
						|
    <LinearLayout
 | 
						|
        android:orientation="vertical"
 | 
						|
        android:id="@+id/llComment"
 | 
						|
        android:layout_width="match_parent"
 | 
						|
        android:layout_height="wrap_content">
 | 
						|
        <EditText
 | 
						|
            android:gravity="top|left"
 | 
						|
            android:id="@+id/edtComment"
 | 
						|
            android:background="@drawable/white_card_background"
 | 
						|
            android:paddingLeft="8dp"
 | 
						|
            android:paddingTop="2dp"
 | 
						|
            android:paddingRight="8dp"
 | 
						|
            android:paddingBottom="2dp"
 | 
						|
            android:layout_width="match_parent"
 | 
						|
            android:layout_height="80dp"
 | 
						|
            android:layout_margin="4dp"
 | 
						|
            android:hint="@string/comment_hint"
 | 
						|
            android:maxLength="140"
 | 
						|
            android:imeOptions="flagNoExtractUi"/>
 | 
						|
        <LinearLayout
 | 
						|
            android:gravity="center"
 | 
						|
            android:layout_gravity="center"
 | 
						|
            android:orientation="horizontal"
 | 
						|
            android:id="@+id/llSendComment"
 | 
						|
            android:background="@drawable/btn_publish"
 | 
						|
            android:layout_width="207dp"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            android:layout_marginTop="15dp">
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_3"
 | 
						|
                android:textStyle="bold"
 | 
						|
                android:textColor="@android:color/white"
 | 
						|
                android:gravity="center"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="match_parent"
 | 
						|
                android:text="@string/commit"
 | 
						|
                android:drawableLeft="@drawable/comment_ok"/>
 | 
						|
        </LinearLayout>
 | 
						|
        <LinearLayout
 | 
						|
            android:gravity="center_vertical"
 | 
						|
            android:orientation="horizontal"
 | 
						|
            android:layout_width="match_parent"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            android:layout_marginTop="30dp"
 | 
						|
            android:layout_marginBottom="30dp">
 | 
						|
            <View
 | 
						|
                android:background="@color/bg_58708B"
 | 
						|
                android:layout_width="0dp"
 | 
						|
                android:layout_height="1dp"
 | 
						|
                android:layout_weight="1"/>
 | 
						|
            <TextView
 | 
						|
                android:textSize="@dimen/txt_content_3"
 | 
						|
                android:textStyle="bold"
 | 
						|
                android:textColor="@android:color/white"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:layout_marginLeft="16dp"
 | 
						|
                android:layout_marginRight="16dp"
 | 
						|
                android:text="@string/diy_details_comment_title"/>
 | 
						|
            <View
 | 
						|
                android:background="@color/bg_58708B"
 | 
						|
                android:layout_width="0dp"
 | 
						|
                android:layout_height="1dp"
 | 
						|
                android:layout_weight="1"/>
 | 
						|
        </LinearLayout>
 | 
						|
    </LinearLayout>
 | 
						|
</LinearLayout>
 |