99 lines
3.7 KiB
XML
99 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2014 Hippo Seven
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/card_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="4dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:layout_marginTop="4dp" >
|
|
|
|
<com.hippo.ehviewer.widget.LoadImageView
|
|
android:id="@+id/thumb"
|
|
android:layout_width="@dimen/list_thumb_width"
|
|
android:layout_height="@dimen/list_thumb_height" />
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
style="@style/CardTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_toRightOf="@id/thumb" />
|
|
|
|
<TextView
|
|
android:id="@+id/uploader"
|
|
style="@style/CardMessage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignLeft="@id/title"
|
|
android:layout_below="@id/title"
|
|
android:layout_marginTop="2dp" />
|
|
|
|
<com.hippo.ehviewer.widget.RatingView
|
|
android:id="@+id/rate"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignLeft="@id/title"
|
|
android:layout_below="@id/uploader"
|
|
android:layout_marginTop="4dp" />
|
|
|
|
<!-- RelativeLayout layout_marginBottom layout_below -->
|
|
|
|
<TextView
|
|
android:id="@+id/category"
|
|
style="@style/CardMessage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBottom="@id/thumb"
|
|
android:layout_alignLeft="@id/title"
|
|
android:layout_marginBottom="8dp"
|
|
android:paddingBottom="2dp"
|
|
android:paddingLeft="8dp"
|
|
android:paddingRight="8dp"
|
|
android:paddingTop="2dp"
|
|
android:textColor="@android:color/white" />
|
|
|
|
<TextView
|
|
android:id="@+id/posted"
|
|
style="@style/CardMessage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBottom="@id/thumb"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginRight="4dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/simple_language"
|
|
style="@style/CardMessage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@id/posted"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginRight="4dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout> |