]> gitweb.stoutner.com Git - PrivacyCell.git/blobdiff - app/src/main/res/layout/privacy_cell_drawerlayout.xml
Add explanation dialogs for the network types. https://redmine.stoutner.com/issues/756
[PrivacyCell.git] / app / src / main / res / layout / privacy_cell_drawerlayout.xml
index 37e47547fbfc5118172a4624b6e271d6cf97e5f3..24fa4a5aeaddc728e11c316bc18b7af375f48403 100644 (file)
                     android:orientation="vertical"
                     android:padding="15dp" >
 
-                    <!-- Secure from stingray. -->
-                    <ImageView
-                        android:id="@+id/secure_from_stingray_imageview"
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_gravity="center_horizontal"
-                        tools:ignore="ContentDescription" />
-
-                    <!-- The text color primary is only displayed if the read phone state permission is not granted.
-                        The default text is replaced if the permission is not granted or the device is connected to a cell phone network. -->
-                    <TextView
-                        android:id="@+id/secure_from_stingray_textview"
+                    <!-- Stingray. -->
+                    <LinearLayout
+                        android:id="@+id/stingray_linearlayout"
                         android:layout_height="wrap_content"
                         android:layout_width="wrap_content"
                         android:layout_gravity="center_horizontal"
-                        android:textAlignment="center"
-                        android:layout_marginTop="10dp"
-                        android:textColor="?android:textColorPrimary"
-                        android:textSize="20sp"
-                        android:textStyle="bold"
-                        android:text="@string/not_connected" />
+                        android:orientation="vertical"
+                        tools:ignore="UseCompoundDrawables" >
+
+                        <ImageView
+                            android:id="@+id/stingray_imageview"
+                            android:layout_width="wrap_content"
+                            android:layout_height="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            tools:ignore="ContentDescription" />
+
+                        <!-- The text color primary is only displayed if the read phone state permission is not granted.
+                            The default text is replaced if the permission is not granted or the device is connected to a cell phone network. -->
+                        <TextView
+                            android:id="@+id/stingray_textview"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:layout_marginTop="10dp"
+                            android:textColor="?android:textColorPrimary"
+                            android:textSize="20sp"
+                            android:textStyle="bold"
+                            android:text="@string/not_connected" />
+                    </LinearLayout>
 
                     <!-- Voice network. -->
-                    <TextView
-                        android:id="@+id/voice_network"
+                    <LinearLayout
+                        android:id="@+id/voice_network_linearlayout"
                         android:layout_height="wrap_content"
                         android:layout_width="wrap_content"
                         android:layout_gravity="center_horizontal"
-                        android:textAlignment="center"
-                        android:layout_marginTop="30dp"
-                        android:textColor="@color/blue_text"
-                        android:textSize="18sp"
-                        android:textStyle="bold" />
-
-                    <TextView
-                        android:id="@+id/voice_network_details"
-                        android:layout_height="wrap_content"
-                        android:layout_width="wrap_content"
-                        android:layout_gravity="center_horizontal"
-                        android:textAlignment="center"
-                        android:layout_marginBottom="10dp" />
+                        android:orientation="vertical" >
+
+                        <TextView
+                            android:id="@+id/voice_network"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:layout_marginTop="30dp"
+                            android:textColor="@color/blue_text"
+                            android:textSize="18sp"
+                            android:textStyle="bold" />
+
+                        <TextView
+                            android:id="@+id/voice_network_details"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:layout_marginBottom="10dp" />
+                    </LinearLayout>
 
                     <!-- Data network. -->
-                    <TextView
-                        android:id="@+id/data_network"
+                    <LinearLayout
+                        android:id="@+id/data_network_linearlayout"
                         android:layout_height="wrap_content"
                         android:layout_width="wrap_content"
                         android:layout_gravity="center_horizontal"
-                        android:textAlignment="center"
-                        android:textColor="@color/blue_text"
-                        android:textSize="18sp"
-                        android:textStyle="bold" />
-
-                    <TextView
-                        android:id="@+id/data_network_details"
-                        android:layout_height="wrap_content"
-                        android:layout_width="wrap_content"
-                        android:layout_gravity="center_horizontal"
-                        android:textAlignment="center"
-                        android:layout_marginBottom="10dp" />
+                        android:orientation="vertical" >
+
+                        <TextView
+                            android:id="@+id/data_network"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:textColor="@color/blue_text"
+                            android:textSize="18sp"
+                            android:textStyle="bold" />
+
+                        <TextView
+                            android:id="@+id/data_network_details"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:layout_marginBottom="10dp" />
+                    </LinearLayout>
 
                     <!-- Additional network info. -->
-                    <TextView
-                        android:id="@+id/additional_network_info"
-                        android:layout_height="wrap_content"
-                        android:layout_width="wrap_content"
-                        android:layout_gravity="center_horizontal"
-                        android:textAlignment="center"
-                        android:textColor="@color/blue_text"
-                        android:textSize="18sp"
-                        android:textStyle="bold" />
-
-                    <TextView
-                        android:id="@+id/additional_network_info_details"
+                    <LinearLayout
+                        android:id="@+id/additional_network_info_linearlayout"
                         android:layout_height="wrap_content"
                         android:layout_width="wrap_content"
                         android:layout_gravity="center_horizontal"
-                        android:textAlignment="center" />
+                        android:orientation="vertical" >
+
+                        <TextView
+                            android:id="@+id/additional_network_info"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center"
+                            android:textColor="@color/blue_text"
+                            android:textSize="18sp"
+                            android:textStyle="bold" />
+
+                        <TextView
+                            android:id="@+id/additional_network_info_details"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:textAlignment="center" />
+                    </LinearLayout>
                 </LinearLayout>
             </ScrollView>
         </LinearLayout>