Skip to content

Instantly share code, notes, and snippets.

@rymate1234
Created November 19, 2014 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rymate1234/303986c969afd5c86fcb to your computer and use it in GitHub Desktop.
Save rymate1234/303986c969afd5c86fcb to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="?attr/colorPrimary" >
<item
android:bottom="7dp"
android:left="10dp"
android:right="10dp"
android:top="5dp">
<shape android:shape="rectangle">
<solid android:color="@color/card_white"
android:alpha="?android:attr/disabledAlpha"/>
</shape>
</item>
</ripple>
<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2010 The Android Open Source Project
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.
-->
<TwoLineListItem xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/card"
android:clickable="true"
android:elevation="2dp"
android:minHeight="?android:attr/listPreferredItemHeight"
android:mode="twoLine"
android:paddingBottom="16dip"
android:paddingLeft="16dip"
android:paddingRight="16dip"
android:paddingTop="8dip">
<net.rymate.notes.ui.RobotoLightTextView
android:id="@android:id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="1"
android:textAppearance="?android:attr/textAppearanceLarge" />
<net.rymate.notes.ui.RobotoLightItalicsTextView
android:id="@android:id/text2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignStart="@android:id/text1"
android:layout_below="@android:id/text1"
android:maxLines="3"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textStyle="italic" />
</TwoLineListItem>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment