Bug: 28141203 Bug: 28316618 Bug: 28316343 - Replaced hardcoded fragment layout with a RecyclerView. The old layout was essentially building a list manually. - Tweaked layout to look better. - Hide escalation cards when there is no account. Show cards when there is at least 1 account. - Request an intent to start specified support type when card is clicked. - Monitor account changes so we can hide/show escalation cards when add/remove account. Change-Id: Ie48158b85ade1363a41817cc88b1193e0aef87ae
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <!--
 | |
|      Copyright (C) 2016 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.
 | |
| -->
 | |
| 
 | |
| <LinearLayout
 | |
|     xmlns:android="http://schemas.android.com/apk/res/android"
 | |
|     android:layout_width="match_parent"
 | |
|     android:layout_height="wrap_content"
 | |
|     android:orientation="vertical">
 | |
|     <TextView
 | |
|         android:id="@android:id/title"
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:paddingEnd="8dp"
 | |
|         android:paddingStart="8dp"
 | |
|         android:paddingTop="8dp"
 | |
|         android:textAppearance="@style/TextAppearance.SupportTitle"/>
 | |
|     <TextView
 | |
|         android:id="@android:id/summary"
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:paddingBottom="16dp"
 | |
|         android:paddingEnd="8dp"
 | |
|         android:paddingStart="8dp"
 | |
|         android:paddingTop="8dp"
 | |
|         android:textAppearance="@style/TextAppearance.CategoryTitle"/>
 | |
| </LinearLayout> |