Advertisement
olcayertas

Layout with support library v4 widged SwipeRefreshLayout

May 20th, 2015
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.99 KB | None | 0 0
  1. <RelativeLayout
  2.    xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:segmentedgroup="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="@color/background"
  8.    tools:context="com.yceo.namazvakti.fragments.FindMosqueFragment">
  9.  
  10.     <!--Başlık-->
  11.     <com.yceo.namazvakti.utility.AutoResizeTextView
  12.        android:id="@+id/find_mosque_title"
  13.        android:layout_width="match_parent"
  14.        android:layout_height="60dp"
  15.        android:layout_alignParentEnd="true"
  16.        android:layout_alignParentLeft="true"
  17.        android:layout_alignParentRight="true"
  18.        android:layout_alignParentStart="true"
  19.        android:layout_alignParentTop="true"
  20.        android:gravity="center"
  21.        android:text="@string/find_mosque_title"
  22.        android:textAppearance="@style/TextAppearance.FontPathView"
  23.        android:textColor="@android:color/white"
  24.        android:textSize="25sp"
  25.        android:textStyle="bold"/>
  26.  
  27.     <!--Liste / Harita düpmeleri-->
  28.     <com.yceo.namazvakti.utility.SegmentedGroup
  29.        android:id="@+id/segmentedControl"
  30.        android:layout_width="match_parent"
  31.        android:layout_height="wrap_content"
  32.        android:layout_below="@+id/find_mosque_title"
  33.        android:layout_centerHorizontal="true"
  34.        android:layout_marginBottom="10dp"
  35.        android:layout_marginLeft="20dp"
  36.        android:layout_marginRight="20dp"
  37.        android:clickable="false"
  38.        android:focusable="false"
  39.        android:focusableInTouchMode="false"
  40.        android:orientation="horizontal"
  41.        segmentedgroup:border_width="2dp"
  42.        segmentedgroup:corner_radius="5dp">
  43.  
  44.         <RadioButton
  45.            android:id="@+id/missedSalaahsButton"
  46.            style="@style/RadioButton"
  47.            android:layout_width="wrap_content"
  48.            android:layout_height="wrap_content"
  49.            android:layout_weight="1"
  50.            android:checked="true"
  51.            android:contentDescription="@string/mosque_list_button_content_description"
  52.            android:text="@string/mosque_list_button"
  53.            android:textAppearance="@style/TextAppearance.FontPathView"
  54.            android:textStyle="bold" />
  55.  
  56.         <RadioButton
  57.            android:id="@+id/missedFastingsButton"
  58.            style="@style/RadioButton"
  59.            android:layout_width="wrap_content"
  60.            android:layout_height="wrap_content"
  61.            android:layout_weight="1"
  62.            android:contentDescription="Map button"
  63.            android:text="@string/mosque_map_button"
  64.            android:textAppearance="@style/TextAppearance.FontPathView"
  65.            android:textStyle="bold" />
  66.  
  67.     </com.yceo.namazvakti.utility.SegmentedGroup>
  68.  
  69.     <!--Harita-->
  70.     <fragment
  71.        xmlns:android="http://schemas.android.com/apk/res/android"
  72.        android:id="@+id/map"
  73.        android:name="com.google.android.gms.maps.SupportMapFragment"
  74.        android:layout_width="match_parent"
  75.        android:layout_height="match_parent"
  76.        android:layout_below="@+id/segmentedControl" />
  77.  
  78.     <!--Liste-->
  79.     <LinearLayout
  80.        android:id="@+id/mosque_list_group"
  81.        android:layout_width="match_parent"
  82.        android:layout_height="match_parent"
  83.        android:layout_below="@+id/segmentedControl"
  84.        android:background="@color/application_in_backgraund"
  85.        android:orientation="vertical">
  86.  
  87.         <!--Arama bölümü-->
  88.         <RelativeLayout
  89.            android:layout_width="match_parent"
  90.            android:layout_height="40dp"
  91.            android:layout_marginEnd="20dp"
  92.            android:layout_marginLeft="20dp"
  93.            android:layout_marginRight="20dp"
  94.            android:layout_marginStart="20dp"
  95.            android:layout_marginTop="10dp"
  96.            android:background="@drawable/rounded_edit_text">
  97.  
  98.             <EditText
  99.                android:id="@+id/search_bar"
  100.                android:layout_width="match_parent"
  101.                android:layout_height="match_parent"
  102.                android:layout_toEndOf="@+id/search_icon"
  103.                android:layout_toRightOf="@+id/search_icon"
  104.                android:enabled="false"
  105.                android:gravity="center_vertical"
  106.                android:inputType="text"
  107.                android:textColor="@android:color/darker_gray"
  108.                android:textColorHint="@android:color/darker_gray" />
  109.  
  110.             <ImageView
  111.                android:id="@+id/search_icon"
  112.                android:layout_width="wrap_content"
  113.                android:layout_height="wrap_content"
  114.                android:layout_centerVertical="true"
  115.                android:padding="10dp"
  116.                android:src="@drawable/search"/>
  117.  
  118.         </RelativeLayout>
  119.  
  120.         <com.yceo.namazvakti.utility.MySwipeRefreshLayout
  121.            android:id="@+id/swipe_to_refresh"
  122.            android:layout_width="match_parent"
  123.            android:layout_height="match_parent"
  124.            android:layout_marginBottom="10dp"
  125.            android:layout_marginEnd="20dp"
  126.            android:layout_marginLeft="20dp"
  127.            android:layout_marginRight="20dp"
  128.            android:layout_marginStart="20dp"
  129.            android:layout_marginTop="10dp"
  130.            android:background="@drawable/rounded_edit_text">
  131.  
  132.             <!--Camii listesi-->
  133.             <ListView
  134.                android:id="@+id/mosque_list_view"
  135.                android:layout_width="match_parent"
  136.                android:layout_height="match_parent"
  137.                android:choiceMode="singleChoice"
  138.                android:clickable="true"
  139.                android:divider="@color/AntiqueWhite"
  140.                android:dividerHeight="0.5dp"
  141.                android:drawSelectorOnTop="true"
  142.                android:textAppearance="@style/TextAppearance.FontPathView" />
  143.  
  144.         </com.yceo.namazvakti.utility.MySwipeRefreshLayout>
  145.  
  146.     </LinearLayout>
  147.  
  148. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement