mirror of https://github.com/tasks/tasks
Added images to comment bar and working on adding pictures
parent
03f2327dfe
commit
ed10a08cbe
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
/* //device/apps/common/assets/res/any/drawable/editbox_background.xml
|
||||||
|
**
|
||||||
|
** Copyright 2006, 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.
|
||||||
|
*/
|
||||||
|
-->
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_focused="true" android:drawable="@drawable/footer_comment_edittext_focused" />
|
||||||
|
<item android:drawable="@drawable/footer_comment_edittext_normal" />
|
||||||
|
</selector>
|
||||||
|
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<stroke
|
||||||
|
android:color="#f28118"
|
||||||
|
android:width="1dip" />
|
||||||
|
|
||||||
|
<gradient
|
||||||
|
android:startColor="#eeeeee"
|
||||||
|
android:endColor="#ffffff"
|
||||||
|
android:angle="270"
|
||||||
|
android:height="20dp" />
|
||||||
|
|
||||||
|
<size android:width="40dip"
|
||||||
|
android:height="40dip"/>
|
||||||
|
</shape>
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
|
||||||
|
<gradient
|
||||||
|
android:startColor="#eeeeee"
|
||||||
|
android:endColor="#ffffff"
|
||||||
|
android:angle="270"
|
||||||
|
android:height="20dp" />
|
||||||
|
<stroke
|
||||||
|
android:color="#bbbbbf"
|
||||||
|
android:width="1dip" />
|
||||||
|
|
||||||
|
|
||||||
|
<size android:width="40dip"
|
||||||
|
android:height="40dip"/>
|
||||||
|
</shape>
|
||||||
@ -1,90 +1,100 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
style="@style/Content"
|
||||||
android:orientation="vertical"
|
android:layout_width="fill_parent"
|
||||||
android:layout_width="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:orientation="vertical" >
|
||||||
style="@style/Content">
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
style="@style/Header"
|
style="@style/Header"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="43dip"
|
android:layout_height="43dip"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
<!-- List Label -->
|
<!-- List Label -->
|
||||||
<TextView android:id="@+id/listLabel"
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/listLabel"
|
||||||
|
style="@style/TextAppearance.TLA_Header"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:layout_weight="100"
|
android:layout_weight="100"
|
||||||
android:gravity="center"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:ellipsize="start"
|
android:ellipsize="start"
|
||||||
style="@style/TextAppearance.TLA_Header"/>
|
android:gravity="center"
|
||||||
|
android:singleLine="true" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
android:id="@+id/progressBar"
|
android:id="@+id/progressBar"
|
||||||
|
style="@android:style/Widget.ProgressBar.Horizontal"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="5dip"
|
android:layout_height="5dip"
|
||||||
style="@android:style/Widget.ProgressBar.Horizontal"
|
android:layout_weight="1"
|
||||||
android:visibility="gone"
|
android:visibility="gone" />
|
||||||
android:layout_weight="1" />
|
|
||||||
|
|
||||||
<ListView
|
<ListView
|
||||||
android:id="@android:id/list"
|
android:id="@android:id/list"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:layout_weight="100"/>
|
android:layout_weight="100" />
|
||||||
|
|
||||||
|
|
||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/updatesFooter"
|
android:id="@+id/updatesFooter"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:minHeight="47dip"
|
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/footer_background"
|
android:background="@drawable/footer_background"
|
||||||
android:padding="3dip"
|
android:minHeight="47dip"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal"
|
||||||
|
android:padding="3dip" >
|
||||||
|
|
||||||
<!-- Voice Add Button -->
|
<!-- Voice Add Button -->
|
||||||
<ImageButton android:id="@+id/picture"
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/picture"
|
||||||
android:layout_width="39dip"
|
android:layout_width="39dip"
|
||||||
android:layout_height="39dip"
|
android:layout_height="39dip"
|
||||||
android:layout_gravity="top"
|
android:layout_gravity="top"
|
||||||
android:layout_marginRight="3dip"
|
android:layout_marginRight="3dip"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="#00000000"
|
||||||
|
android:paddingBottom="2dip"
|
||||||
android:paddingLeft="7dip"
|
android:paddingLeft="7dip"
|
||||||
android:paddingRight="7dip"
|
android:paddingRight="7dip"
|
||||||
android:paddingBottom="2dip"
|
android:scaleType="centerInside"
|
||||||
android:layout_weight="1"
|
android:src="@drawable/camera_button" />
|
||||||
android:src="@drawable/camera_button"
|
|
||||||
android:scaleType="fitCenter"/>
|
|
||||||
|
|
||||||
<!-- Quick Add Task -->
|
<!-- Quick Add Task -->
|
||||||
<EditText android:id="@+id/commentField"
|
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/commentField"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginRight="3dip"
|
android:layout_marginRight="1dip"
|
||||||
|
android:layout_marginLeft="1dip"
|
||||||
|
android:paddingLeft="10dip"
|
||||||
android:layout_weight="100"
|
android:layout_weight="100"
|
||||||
android:background="@drawable/footer_edittext"
|
|
||||||
android:hint="@string/TVA_add_comment"
|
|
||||||
android:textSize="16sp"
|
|
||||||
android:autoText="true"
|
android:autoText="true"
|
||||||
android:capitalize="sentences"/>
|
android:background="@drawable/footer_comment_edittext"
|
||||||
|
android:capitalize="sentences"
|
||||||
|
android:hint="@string/TVA_add_comment"
|
||||||
|
android:textSize="16sp" />
|
||||||
|
|
||||||
<!-- Extended Add Button -->
|
<!-- Extended Add Button -->
|
||||||
<ImageButton android:id="@+id/commentButton"
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/commentButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="39dip"
|
android:layout_height="39dip"
|
||||||
android:layout_gravity="top"
|
android:layout_gravity="top"
|
||||||
android:layout_marginRight="3dip"
|
android:layout_marginRight="3dip"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/footer_button"
|
android:background="@drawable/footer_button"
|
||||||
android:src="@drawable/ic_footer_add"
|
android:scaleType="center"
|
||||||
android:scaleType="center"/>
|
android:src="@drawable/ic_footer_add" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
Loading…
Reference in New Issue