Advertisement
Guest User

Untitled

a guest
Aug 13th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.14 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:background="@drawable/button"
  8.    android:orientation="vertical"
  9.    android:padding="@dimen/simple_border_padding"
  10.    tools:context=".controller.GridActivity">
  11.  
  12.     <RelativeLayout
  13.        android:id="@+id/top_buttons_activity_grid"
  14.        android:layout_width="match_parent"
  15.        android:layout_height="wrap_content"
  16.        android:layout_alignParentTop="true"
  17.        android:background="@drawable/inside"
  18.        android:gravity="center"
  19.        android:padding="@dimen/simple_border_half_padding">
  20.  
  21.         <LinearLayout
  22.            android:id="@+id/first_timer"
  23.            android:layout_width="wrap_content"
  24.            android:layout_height="@dimen/icon_size"
  25.            android:orientation="horizontal"
  26.            android:layout_alignParentLeft="true"
  27.            android:layout_alignParentStart="true">
  28.  
  29.             <ImageView
  30.                android:id="@+id/timer_1"
  31.                android:layout_width="wrap_content"
  32.                android:layout_height="match_parent"
  33.                android:adjustViewBounds="true"
  34.                android:contentDescription="Timer"
  35.                android:scaleType="fitXY"
  36.                app:srcCompat="@drawable/time_0"
  37.                tools:ignore="HardcodedText"
  38.                tools:srcCompat="@drawable/time_0" />
  39.  
  40.             <ImageView
  41.                android:id="@+id/timer_2"
  42.                android:layout_width="wrap_content"
  43.                android:layout_height="match_parent"
  44.                android:adjustViewBounds="true"
  45.                android:contentDescription="Timer 2"
  46.                android:scaleType="fitXY"
  47.                app:srcCompat="@drawable/time_0"
  48.                tools:ignore="HardcodedText"
  49.                tools:srcCompat="@drawable/time_0" />
  50.  
  51.             <ImageView
  52.                android:id="@+id/timer_3"
  53.                android:layout_width="wrap_content"
  54.                android:layout_height="match_parent"
  55.                android:adjustViewBounds="true"
  56.                android:contentDescription="Timer"
  57.                android:scaleType="fitXY"
  58.                app:srcCompat="@drawable/time_0"
  59.                tools:ignore="HardcodedText"
  60.                tools:srcCompat="@drawable/time_0" />
  61.  
  62.         </LinearLayout>
  63.  
  64.         <ImageButton
  65.            android:id="@+id/smiley_button"
  66.            android:layout_width="@dimen/icon_size"
  67.            android:layout_height="@dimen/icon_size"
  68.            android:layout_gravity="center"
  69.            android:background="@android:color/transparent"
  70.            android:contentDescription="smiley button"
  71.            android:padding="0dp"
  72.            android:scaleType="fitCenter"
  73.            android:src="@drawable/smiley_1"
  74.            tools:ignore="ContentDescription,HardcodedText,RtlHardcoded"
  75.            tools:src="@drawable/smiley_1"
  76.            android:layout_centerHorizontal="true"/>
  77.  
  78.         <LinearLayout
  79.            android:id="@+id/second_timer"
  80.            android:layout_width="wrap_content"
  81.            android:layout_height="@dimen/icon_size"
  82.            android:layout_gravity="end"
  83.            android:gravity="center"
  84.            android:orientation="horizontal"
  85.            tools:ignore="RtlHardcoded"
  86.            android:layout_alignParentEnd="true">
  87.  
  88.             <ImageView
  89.                android:id="@+id/timer_4"
  90.                android:layout_width="wrap_content"
  91.                android:layout_height="match_parent"
  92.                android:adjustViewBounds="true"
  93.                android:contentDescription="Timer"
  94.                android:scaleType="fitXY"
  95.                app:srcCompat="@drawable/time_0"
  96.                tools:ignore="HardcodedText"
  97.                tools:srcCompat="@drawable/time_0" />
  98.  
  99.             <ImageView
  100.                android:id="@+id/timer_5"
  101.                android:layout_width="wrap_content"
  102.                android:layout_height="match_parent"
  103.                android:adjustViewBounds="true"
  104.                android:contentDescription="Timer"
  105.                android:scaleType="fitXY"
  106.                app:srcCompat="@drawable/time_0"
  107.                tools:ignore="HardcodedText"
  108.                tools:srcCompat="@drawable/time_0" />
  109.  
  110.             <ImageView
  111.                android:id="@+id/timer_6"
  112.                android:layout_width="wrap_content"
  113.                android:layout_height="match_parent"
  114.                android:adjustViewBounds="true"
  115.                android:contentDescription="Timer"
  116.                android:scaleType="fitXY"
  117.                app:srcCompat="@drawable/time_0"
  118.                tools:ignore="HardcodedText"
  119.                tools:srcCompat="@drawable/time_0" />
  120.         </LinearLayout>
  121.  
  122.     </RelativeLayout>
  123.  
  124.     <GridView
  125.        android:id="@+id/grid_view"
  126.        android:layout_width="match_parent"
  127.        android:layout_height="match_parent"
  128.        android:layout_marginTop="@dimen/inside_padding"
  129.        android:layout_marginBottom="@dimen/inside_padding"
  130.        android:background="@drawable/inside"
  131.        android:gravity="center"
  132.        android:numColumns="2"
  133.        android:padding="@dimen/border"
  134.        android:layout_above="@id/ad_activity_grid"
  135.        android:layout_below="@id/top_buttons_activity_grid"/>
  136.  
  137.     <LinearLayout
  138.        android:id="@+id/ad_activity_grid"
  139.        android:layout_width="match_parent"
  140.        android:layout_height="54dp"
  141.        android:background="@drawable/inside"
  142.        android:orientation="vertical"
  143.        android:padding="2dp"
  144.        android:layout_alignParentBottom="true">
  145.  
  146.         <TextView
  147.            android:layout_width="match_parent"
  148.            android:layout_height="match_parent"
  149.            android:gravity="center"
  150.            android:text="La bannière ici"
  151.            android:textColor="@android:color/black"
  152.            tools:ignore="HardcodedText" />
  153.     </LinearLayout>
  154. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement