summaryrefslogtreecommitdiffstats
path: root/res/layout/app_drawer_item.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout/app_drawer_item.xml')
-rw-r--r--res/layout/app_drawer_item.xml58
1 files changed, 34 insertions, 24 deletions
diff --git a/res/layout/app_drawer_item.xml b/res/layout/app_drawer_item.xml
index 08043eb..43e2562 100644
--- a/res/layout/app_drawer_item.xml
+++ b/res/layout/app_drawer_item.xml
@@ -14,34 +14,44 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:autofit="http://schemas.android.com/apk/res-auto"
- android:orientation="vertical"
android:splitMotionEvents="false"
android:layout_width="match_parent"
android:layout_height="wrap_content">
+ <!-- Layout in back to front render order -->
<LinearLayout
- android:layout_marginTop="10dp"
+ android:id="@+id/drawer_item_flow"
+ android:layout_alignParentRight="true"
+ android:paddingTop="10dp"
+ android:layout_toRightOf="@+id/drawer_item_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="horizontal" >
- <com.android.launcher3.AutoFitTextView
- android:id="@+id/drawer_item_title"
- android:layout_width="30dp"
- android:layout_height="wrap_content"
- android:layout_marginLeft="10dp"
- android:includeFontPadding="false"
- android:gravity="start|top"
- android:singleLine="true"
- autofit:minTextSize="8sp"
- android:textSize="24sp"
- android:layout_gravity="center"
- android:fontFamily="sans-serif-light"
- android:textColor="@android:color/white"/>
- <LinearLayout
- android:id="@+id/drawer_item_flow"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal" />
- </LinearLayout>
-</LinearLayout>
+ android:orientation="horizontal" />
+
+ <View
+ android:id="@+id/fading_background"
+ android:alpha="0"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_alignTop="@id/drawer_item_flow"
+ android:layout_alignBottom="@id/drawer_item_flow"
+ android:background="@color/app_drawer_drag_background" />
+
+ <com.android.launcher3.AutoFitTextView
+ android:id="@+id/drawer_item_title"
+ android:layout_width="27dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="10dp"
+ android:layout_marginLeft="10dp"
+ android:layout_centerVertical="true"
+ android:includeFontPadding="false"
+ android:gravity="center"
+ android:singleLine="true"
+ autofit:minTextSize="8sp"
+ android:textSize="24sp"
+ android:layout_gravity="center"
+ android:fontFamily="sans-serif-light"
+ android:textColor="@android:color/white" />
+
+</RelativeLayout>