Issue with using view element in Accessibility
From: |
harish
|
Sent on: |
Friday, April 24, 2015, 3:03 PM
|
Hi Droids,
i have the following view ..
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/linen"
tools:context=".AdherenceFragment" >
<!-- TODO: Update blank fragment layout -->
<TabHost
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<Button
android:id="@+id/todayButton"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:background="@drawable/rounded_blue_button"
android:contentDescription="@string/today"
android:gravity="center"
android:padding="5dp"
android:shadowColor="@android:color/black"
android:shadowDx="0"
android:shadowDy="-1"
android:shadowRadius="1"
android:text="@string/today"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold" />
</RelativeLayout>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<RelativeLayout
android:id="@+id/weekLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/topControls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="@drawable/black_gradient"
android:gravity="center_horizontal"
android:orientation="horizontal" >
<TextView
android:id="@+id/prevweek"
android:layout_width="32dp"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:contentDescription="@string/previousweek"
android:gravity="center"
android:shadowColor="@android:color/black"
android:shadowDx="0"
android:shadowDy="-1"
android:shadowRadius="1"
android:text="@string/lt"
android:textColor="@android:color/white"
android:textSize="22sp"
android:textStyle="bold" />
<TextView
android:id="@+id/dateRange"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/every_dose"
android:gravity="center_horizontal"
android:paddingBottom="5dp"
android:paddingTop="5dp"
android:text="@string/datefromto"
android:textColor="@android:color/white"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/nextweek"
android:layout_width="32dp"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:contentDescription="@string/nextweek"
android:gravity="center"
android:shadowColor="@android:color/black"
android:shadowDx="0"
android:shadowDy="-1"
android:shadowRadius="1"
android:text="@string/gt"
android:textColor="@android:color/white"
android:textSize="22sp"
android:textStyle="bold" />
</LinearLayout>
<ListView
android:id="@+id/week"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/adherence_percentage"
android:layout_below="@+id/topControls" >
</ListView>
<TextView
android:id="@+id/adherence_percentage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@drawable/black_gradient"
android:gravity="center_horizontal"
android:padding="5dp"
android:text="@string/app_name"
android:textColor="@android:color/white"
android:textSize="16sp" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/monthlayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/topControlsMonth"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="@drawable/black_gradient"
android:gravity="center_horizontal"
android:orientation="horizontal" >
<TextView
android:id="@+id/tookittv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/dot_green"
android:minWidth="80dp"
android:text="@string/took_it"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/missedtv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/dot_red"
android:minWidth="80dp"
android:text="@string/missed_it"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/prev"
android:layout_width="32dp"
android:layout_height="wrap_content"
android:contentDescription="@string/previousmonth"
android:gravity="center"
android:shadowColor="@android:color/black"
android:shadowDx="0"
android:shadowDy="-1"
android:shadowRadius="1"
android:text="@string/lt"
android:textColor="@android:color/white"
android:textSize="22sp"
android:textStyle="bold" />
<TextView
android:id="@+id/month"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center"
android:minWidth="100dp"
android:text="@string/monthname"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/next"
android:layout_width="32dp"
android:layout_height="wrap_content"
android:contentDescription="@string/nextmonth"
android:gravity="center"
android:shadowColor="@android:color/black"
android:shadowDx="0"
android:shadowDy="-1"
android:shadowRadius="1"
android:text="@string/gt"
android:textColor="@android:color/white"
android:textSize="22sp"
android:textStyle="bold" />
</LinearLayout>
<GridView
android:id="@+id/calendar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/topControlsMonth"
android:horizontalSpacing="-1px"
android:numColumns="7"
android:verticalSpacing="-1px" >
</GridView>
<TextView
android:id="@+id/adherence_percentageMonth"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@drawable/black_gradient"
android:gravity="center_horizontal"
android:padding="5dp"
android:text="@string/app_name"
android:textColor="@android:color/white"
android:textSize="16sp" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/year"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/topControlsYear"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="@drawable/black_gradient"
android:orientation="horizontal" >
<TextView
android:id="@+id/tookityeartv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/dot_green"
android:minWidth="80dp"
android:text="@string/took_it"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/missedityeartv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/dot_red"
android:minWidth="80dp"
android:text="@string/missed_it"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/prevYear"
android:layout_width="32dp"
android:layout_height="wrap_content"
android:contentDescription="@string/previousyear"
android:gravity="center"
android:shadowColor="@android:color/black"
android:shadowDx="0"
android:shadowDy="-1"
android:shadowRadius="1"
android:text="@string/lt"
android:textColor="@android:color/white"
android:textSize="22sp"
android:textStyle="bold" />
<TextView
android:id="@+id/yearNumber"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:minWidth="80dp"
android:textColor="@android:color/white"
android:textSize="22sp"
android:textStyle="bold" />
<TextView
android:id="@+id/nextYear"
android:layout_width="32dp"
android:layout_height="wrap_content"
android:contentDescription="@string/nextyear"
android:gravity="center"
android:shadowColor="@android:color/black"
android:shadowDx="0"
android:shadowDy="-1"
android:shadowRadius="1"
android:text="@string/gt"
android:textColor="@android:color/white"
android:textSize="22sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:id="@+id/dataChart"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/adherence_percentageyear"
android:layout_below="@+id/topControlsYear"
android:orientation="vertical" />
<TextView
android:id="@+id/adherence_percentageyear"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@drawable/black_gradient"
android:gravity="center_horizontal"
android:padding="5dp"
android:textColor="@android:color/white"
android:textSize="16sp" />
</RelativeLayout>
</FrameLayout>
</LinearLayout>
</TabHost>
</FrameLayout>
in the above view cursor is not coming to the dateRange and and adherence_percentage views, this i need in the accessibility, for other views the
cursor is coming and able to listen in talkbalk .How to solve this issue.
Thanks & Regards
Harish Kumar Yerra