mirror of https://github.com/tasks/tasks
RTL support
parent
d18f35965e
commit
cc022036b2
@ -1,22 +1,27 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2006 The Android Open Source Project
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:layout_width="match_parent"
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
android:layout_height="wrap_content"
|
you may not use this file except in compliance with the License.
|
||||||
android:orientation="horizontal"
|
You may obtain a copy of the License at
|
||||||
android:padding="@dimen/keyline_first">
|
|
||||||
|
|
||||||
<ImageView
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
android:id="@+id/color_primary"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content" />
|
|
||||||
|
|
||||||
<TextView
|
Unless required by applicable law or agreed to in writing, software
|
||||||
android:id="@android:id/text1"
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
android:layout_width="match_parent"
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
android:layout_height="wrap_content"
|
See the License for the specific language governing permissions and
|
||||||
android:gravity="center_vertical"
|
limitations under the License.
|
||||||
android:paddingLeft="@dimen/keyline_first"
|
-->
|
||||||
android:paddingStart="@dimen/keyline_first"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceListItemSmall" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:id="@android:id/text1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:drawablePadding="@dimen/keyline_second"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||||
|
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||||
|
android:paddingLeft="?android:attr/listPreferredItemPaddingStart"
|
||||||
|
android:paddingRight="?android:attr/listPreferredItemPaddingEnd"
|
||||||
|
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceListItemSmall" />
|
||||||
|
|||||||
@ -1,62 +1,39 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?><!--
|
||||||
<!--
|
|
||||||
** Copyright (c) 2012 Todoroo Inc
|
** Copyright (c) 2012 Todoroo Inc
|
||||||
**
|
**
|
||||||
** See the file "LICENSE" for the full license governing this code.
|
** See the file "LICENSE" for the full license governing this code.
|
||||||
-->
|
-->
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:minHeight="55dip"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical"
|
||||||
|
android:padding="@dimen/keyline_first">
|
||||||
<RelativeLayout
|
|
||||||
android:layout_width="fill_parent"
|
<TextView
|
||||||
android:layout_height="wrap_content"
|
android:id="@+id/title"
|
||||||
android:background="@android:drawable/list_selector_background"
|
android:layout_width="fill_parent"
|
||||||
android:paddingTop="5dip"
|
android:layout_height="wrap_content"
|
||||||
android:paddingBottom="5dip"
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
android:paddingLeft="6dip"
|
android:textSize="16sp" />
|
||||||
android:paddingRight="6dip">
|
|
||||||
|
<TextView
|
||||||
<!-- title -->
|
android:id="@+id/date"
|
||||||
<TextView android:id="@+id/title"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="fill_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:ellipsize="end"
|
||||||
android:layout_alignParentTop="true"
|
android:singleLine="true"
|
||||||
android:textColor="?android:attr/textColorPrimary"
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
android:layout_alignParentLeft="true"
|
android:textSize="12sp"
|
||||||
android:paddingLeft="5dip"
|
android:textStyle="normal" />
|
||||||
android:paddingRight="3dip"
|
|
||||||
android:textSize="16sp"/>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- activity date -->
|
|
||||||
<TextView android:id="@+id/date"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_below="@id/title"
|
|
||||||
android:layout_alignLeft="@id/title"
|
|
||||||
android:layout_marginLeft="5dip"
|
|
||||||
android:paddingTop="1dip"
|
|
||||||
android:textColor="?android:attr/textColorSecondary"
|
|
||||||
android:textStyle="normal"
|
|
||||||
android:gravity="left"
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:textSize="12sp"
|
|
||||||
android:singleLine="true"/>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<!-- picture -->
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/comment_picture"
|
android:id="@+id/comment_picture"
|
||||||
android:layout_width="50dip"
|
android:layout_width="50dip"
|
||||||
android:layout_height="50dip"
|
android:layout_height="50dip"
|
||||||
android:layout_alignParentBottom="true"
|
android:scaleType="fitCenter"
|
||||||
android:layout_marginLeft="50dip"
|
|
||||||
android:layout_marginBottom="4dip"
|
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:scaleType="fitCenter"/>
|
tools:ignore="ContentDescription" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
Loading…
Reference in New Issue