123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context=".MainActivity"
- android:background="#fff">
- <ImageView
- android:layout_width="fill_parent"
- android:layout_height="0dp"
- android:id="@+id/main_action_bar_placeholder"
- android:layout_alignParentTop="true"
- android:background="#E46C62"/>
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="fill_parent"
- android:id="@+id/layout_header"
- android:layout_above="@+id/layout_control"
- android:background="#E46C62"
- android:layout_marginBottom="12dp">
- <TextView
- android:id="@+id/textView"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="40dp"
- android:gravity="center_vertical|center_horizontal"
- android:text="@string/app_name"
- android:textColor="#fff"
- android:textIsSelectable="false"
- android:textSize="28dp" />
- <TextView android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:id="@+id/textView5"
- android:text="@string/app_version"
- android:textColor="#fff"
- android:gravity="center_vertical|center_horizontal"
- android:layout_marginTop="4dp"/>
- </LinearLayout>
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@mipmap/bg_snow"
- android:id="@+id/main_bg_snow"
- android:layout_alignBottom="@id/layout_header"/>
- <LinearLayout android:id="@+id/layout_control"
- android:orientation="horizontal"
- android:layout_width="match_parent"
- android:layout_height="110dp"
- android:layout_above="@+id/layout_uber"
- android:layout_marginLeft="12dp"
- android:layout_marginRight="12dp"
- android:layout_marginTop="8dp"
- android:layout_marginBottom="8dp" android:baselineAligned="false">
- <LinearLayout style="?android:attr/borderlessButtonStyle"
- android:id="@+id/layout_control_community"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:background="#ffffff"
- android:textColor="#858585"
- android:textSize="20sp"
- android:orientation="vertical"
- android:layout_weight="0.35"
- android:layout_marginRight="5dp"
- android:onClick="openGitHub" android:layout_marginEnd="5dp">
- <ImageView
- android:layout_width="24dp"
- android:layout_height="24dp"
- android:id="@+id/imageView"
- android:src="@mipmap/ic_community"
- android:layout_margin="10dp"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/community"
- android:id="@+id/textView2"
- android:layout_margin="5dp"
- android:textColor="#858585" android:textSize="16sp" android:textStyle="bold"/>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/layout_control_accessibility"
- style="?android:attr/borderlessButtonStyle"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="5dp"
- android:layout_marginRight="5dp"
- android:layout_weight="0.3"
- android:background="#ffffff"
- android:onClick="openAccessibility"
- android:textColor="#858585"
- android:textSize="20sp">
- <ImageView
- android:id="@+id/layout_control_accessibility_icon"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="6dp"
- android:layout_marginTop="6dp"
- android:background="@mipmap/ic_start"
- android:baselineAligned="false" />
- <TextView
- android:id="@+id/layout_control_accessibility_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:text="@string/service_on"
- android:textColor="#dfaa6a"
- android:textSize="16sp"
- android:textStyle="bold" />
- </LinearLayout>
- <LinearLayout style="?android:attr/borderlessButtonStyle"
- android:id="@+id/layout_control_settings"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:background="#ffffff"
- android:textColor="#858585"
- android:textSize="20sp"
- android:orientation="vertical"
- android:layout_weight="0.35"
- android:layout_marginLeft="5dp"
- android:onClick="openSettings" android:layout_marginStart="5dp">
- <ImageView android:layout_width="24dp"
- android:layout_height="24dp"
- android:id="@+id/imageView4"
- android:layout_margin="10dp"
- android:src="@mipmap/ic_settings"/>
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/settings"
- android:id="@+id/textView3"
- android:layout_margin="5dp"
- android:textColor="#858585" android:textSize="16sp" android:textStyle="bold"/>
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/layout_uber"
- android:orientation="horizontal"
- android:layout_width="match_parent"
- android:layout_height="72dp"
- android:layout_marginLeft="12dp"
- android:layout_marginRight="12dp"
- android:background="#ffffff"
- android:layout_marginTop="8dp"
- android:layout_alignParentBottom="false"
- android:layout_above="@+id/linearLayout2"
- android:layout_marginBottom="8dp"
- android:onClick="openUber">
- <ImageView
- android:layout_width="60dp"
- android:layout_height="60dp"
- android:id="@+id/icon_uber"
- android:src="@mipmap/ic_uber"
- android:layout_marginLeft="8dp"
- android:layout_marginRight="10dp"
- android:layout_gravity="center_vertical"
- android:layout_marginBottom="2dp" android:layout_marginStart="8dp" android:layout_marginEnd="10dp"/>
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/layout_uber_text"
- android:layout_gravity="center_vertical">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/uber_ad_title"
- android:id="@+id/label_uber_text"
- android:layout_margin="2dp"
- android:textColor="#858585"/>
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/uber_ad_text"
- android:id="@+id/label_uber_link"
- android:layout_margin="2dp"
- android:textColor="#dfaa6a" android:textStyle="bold"/>
- </LinearLayout>
- </LinearLayout>
- <LinearLayout android:id="@+id/linearLayout2"
- android:orientation="horizontal"
- android:layout_width="match_parent"
- android:layout_height="40dp"
- android:layout_marginLeft="12dp"
- android:layout_marginRight="12dp"
- android:background="#ffffff"
- android:layout_marginTop="8dp"
- android:layout_marginBottom="24dp"
- android:onClick="openGitHub"
- android:layout_alignParentBottom="true">
- <ImageView android:layout_width="20dp"
- android:layout_height="20dp"
- android:id="@+id/imageView2"
- android:src="@mipmap/ic_github"
- android:layout_marginLeft="15dp"
- android:layout_marginRight="5dp"
- android:layout_gravity="center_vertical" android:layout_marginStart="15dp" android:layout_marginEnd="5dp"/>
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/github_1"
- android:id="@+id/textView6"
- android:layout_margin="2dp"
- android:textColor="#858585"
- android:layout_gravity="center_vertical"/>
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/star_1"
- android:id="@+id/textView7"
- android:textColor="#dfaa6a"
- android:layout_gravity="center_vertical"
- android:paddingBottom="1dp"/>
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/textView8"
- android:text="@string/star_2"
- android:textColor="#dfaa6a"
- android:layout_gravity="center_vertical"
- android:layout_marginLeft="2dp"
- android:layout_marginRight="2dp" android:textStyle="bold"/>
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/github_2"
- android:id="@+id/textView9"
- android:layout_margin="2dp"
- android:textColor="#858585"
- android:layout_gravity="center_vertical"/>
- </LinearLayout>
- </RelativeLayout>
|