diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-29 00:29:46 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-29 00:29:46 -0700 |
commit | 8f2e56eb5ecfc6b5ce2f1530ead6fe73f5bfe89c (patch) | |
tree | f6e3d074c1f5d21faac6375f356607408e1e465c /library/src/main/res/layout/kau_about_iitem_library.xml | |
parent | b45156a92f9b2f3fcce62fd58d25474196048f1a (diff) | |
download | kau-8f2e56eb5ecfc6b5ce2f1530ead6fe73f5bfe89c.tar.gz kau-8f2e56eb5ecfc6b5ce2f1530ead6fe73f5bfe89c.tar.bz2 kau-8f2e56eb5ecfc6b5ce2f1530ead6fe73f5bfe89c.zip |
Completely rewrite about activity
Diffstat (limited to 'library/src/main/res/layout/kau_about_iitem_library.xml')
-rw-r--r-- | library/src/main/res/layout/kau_about_iitem_library.xml | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/library/src/main/res/layout/kau_about_iitem_library.xml b/library/src/main/res/layout/kau_about_iitem_library.xml new file mode 100644 index 0000000..0129512 --- /dev/null +++ b/library/src/main/res/layout/kau_about_iitem_library.xml @@ -0,0 +1,107 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/lib_item_card" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingBottom="8dp" + android:paddingTop="8dp" + android:clickable="true" + android:foreground="?selectableItemBackground" + android:layoutDirection="ltr"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="6dp"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:orientation="horizontal" + android:paddingLeft="8dp" + android:paddingRight="8dp"> + + <TextView + android:id="@+id/lib_item_name" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="5" + android:ellipsize="end" + android:gravity="start" + android:maxLines="1" + android:textSize="@dimen/textSizeLarge_openSource" + android:textStyle="normal" + tools:text="Library name" /> + + <TextView + android:id="@+id/lib_item_author" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginTop="2dp" + android:layout_weight="2" + android:gravity="end" + android:maxLines="2" + android:textSize="@dimen/textSizeSmall_openSource" + android:textStyle="normal" + tools:text="Author" /> + </LinearLayout> + + <View + android:id="@+id/lib_item_top_divider" + android:layout_width="match_parent" + android:layout_height="1px" + android:layout_marginTop="4dp" /> + + <TextView + android:id="@+id/lib_item_description" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:maxLines="20" + android:padding="8dp" + android:textSize="@dimen/textSizeSmall_openSource" + android:textStyle="normal" + tools:text="Description"/> + + <View + android:id="@+id/lib_item_bottom_divider" + android:layout_width="match_parent" + android:layout_height="1px" + android:layout_marginTop="4dp" /> + + <LinearLayout + android:id="@+id/lib_item_bottom_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:orientation="horizontal" + android:paddingLeft="8dp" + android:paddingRight="8dp" + android:paddingTop="4dp"> + + <TextView + android:id="@+id/lib_item_version" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="start" + android:maxLines="1" + android:textSize="@dimen/textSizeSmall_openSource" + android:textStyle="normal" + tools:text="Version" /> + + <TextView + android:id="@+id/lib_item_license" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="end" + android:maxLines="1" + android:textSize="@dimen/textSizeSmall_openSource" + android:textStyle="normal" + tools:text="License" /> + </LinearLayout> + </LinearLayout> +</android.support.v7.widget.CardView>
\ No newline at end of file |