mirror of https://github.com/ThmmyNoLife/mTHMMY
Apostolos Fanakis
8 years ago
4 changed files with 163 additions and 91 deletions
@ -0,0 +1,24 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<rotate xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
android:fromDegrees="0" |
||||
|
android:pivotX="50%" |
||||
|
android:pivotY="50%" |
||||
|
android:toDegrees="360"> |
||||
|
<shape |
||||
|
android:innerRadiusRatio="3" |
||||
|
android:shape="ring" |
||||
|
android:thicknessRatio="8" |
||||
|
android:useLevel="false"> |
||||
|
|
||||
|
<size |
||||
|
android:width="76dip" |
||||
|
android:height="76dip"/> |
||||
|
<gradient |
||||
|
android:angle="0" |
||||
|
android:endColor="@color/accent" |
||||
|
android:startColor="@color/accent" |
||||
|
android:type="sweep" |
||||
|
android:useLevel="false" |
||||
|
/> |
||||
|
</shape> |
||||
|
</rotate> |
@ -1,97 +1,129 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
android:layout_width="fill_parent" |
android:layout_width="fill_parent" |
||||
android:layout_height="fill_parent" |
android:layout_height="fill_parent" |
||||
android:fitsSystemWindows="true"> |
android:fitsSystemWindows="true"> |
||||
|
|
||||
<LinearLayout |
<ScrollView |
||||
|
android:id="@+id/inner_scroll_view" |
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="match_parent"> |
||||
android:layout_gravity="top" |
|
||||
android:focusableInTouchMode="true" |
|
||||
android:orientation="vertical" |
|
||||
android:paddingLeft="24dp" |
|
||||
android:paddingRight="24dp"> |
|
||||
|
|
||||
<Space |
<LinearLayout |
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="25dp"/> |
android:layout_height="wrap_content" |
||||
|
android:layout_gravity="top" |
||||
|
android:focusableInTouchMode="true" |
||||
|
android:orientation="vertical" |
||||
|
android:paddingLeft="24dp" |
||||
|
android:paddingRight="24dp"> |
||||
|
|
||||
<ImageView |
<Space |
||||
android:id="@+id/thmmyLogo" |
android:layout_width="match_parent" |
||||
android:layout_width="match_parent" |
android:layout_height="25dp"/> |
||||
android:layout_height="144dp" |
|
||||
android:layout_gravity="center_horizontal" |
|
||||
android:layout_marginBottom="0dp" |
|
||||
android:contentDescription="@string/thmmy_img_description" |
|
||||
android:src="@drawable/logo_try_no_letter"/> |
|
||||
|
|
||||
<ImageView |
|
||||
android:id="@+id/thmmy3dImg" |
|
||||
android:layout_width="match_parent" |
|
||||
android:layout_height="40dp" |
|
||||
android:layout_gravity="center_horizontal" |
|
||||
android:layout_marginBottom="0dp" |
|
||||
android:contentDescription="@string/thmmy_img_description" |
|
||||
android:src="@drawable/thmmy_material_somehow"/> |
|
||||
|
|
||||
<Space |
<ImageView |
||||
android:layout_width="match_parent" |
android:id="@+id/thmmyLogo" |
||||
android:layout_height="10dp"/> |
android:layout_width="match_parent" |
||||
|
android:layout_height="144dp" |
||||
|
android:layout_gravity="center_horizontal" |
||||
|
android:layout_marginBottom="0dp" |
||||
|
android:contentDescription="@string/thmmy_img_description" |
||||
|
android:src="@drawable/logo_try_no_letter"/> |
||||
|
|
||||
<!-- Username Label --> |
<ImageView |
||||
<android.support.design.widget.TextInputLayout |
android:id="@+id/thmmy3dImg" |
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="40dp" |
||||
android:layout_marginBottom="8dp" |
android:layout_gravity="center_horizontal" |
||||
android:layout_marginTop="8dp"> |
android:layout_marginBottom="0dp" |
||||
|
android:contentDescription="@string/thmmy_img_description" |
||||
|
android:src="@drawable/thmmy_material_somehow"/> |
||||
|
|
||||
|
<Space |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="10dp"/> |
||||
|
|
||||
<EditText |
<!-- Username Label --> |
||||
android:id="@+id/username" |
<android.support.design.widget.TextInputLayout |
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:hint="@string/hint_username" |
android:layout_marginBottom="8dp" |
||||
android:inputType="textPersonName"/> |
android:layout_marginTop="8dp"> |
||||
</android.support.design.widget.TextInputLayout> |
|
||||
|
|
||||
<!-- Password Label --> |
<EditText |
||||
<android.support.design.widget.TextInputLayout |
android:id="@+id/username" |
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
app:passwordToggleEnabled="true" |
android:hint="@string/hint_username" |
||||
android:layout_marginBottom="8dp" |
android:inputType="textPersonName"/> |
||||
android:layout_marginTop="8dp"> |
</android.support.design.widget.TextInputLayout> |
||||
|
|
||||
<EditText |
<!-- Password Label --> |
||||
android:id="@+id/password" |
<android.support.design.widget.TextInputLayout |
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:hint="@string/hint_password" |
android:layout_marginBottom="8dp" |
||||
android:inputType="textPassword"/> |
android:layout_marginTop="8dp" |
||||
</android.support.design.widget.TextInputLayout> |
app:passwordToggleEnabled="true"> |
||||
|
|
||||
<!-- Login Button --> |
<EditText |
||||
<android.support.v7.widget.AppCompatButton |
android:id="@+id/password" |
||||
android:id="@+id/btnLogin" |
android:layout_width="match_parent" |
||||
android:layout_width="match_parent" |
android:layout_height="wrap_content" |
||||
android:layout_height="wrap_content" |
android:hint="@string/hint_password" |
||||
android:layout_marginBottom="24dp" |
android:inputType="textPassword"/> |
||||
android:layout_marginTop="24dp" |
</android.support.design.widget.TextInputLayout> |
||||
android:padding="12dp" |
|
||||
android:text="@string/btn_login" |
<!-- Login Button --> |
||||
android:textSize="18sp"/> |
<android.support.v7.widget.AppCompatButton |
||||
|
android:id="@+id/btnLogin" |
||||
<Button |
android:layout_width="match_parent" |
||||
android:id="@+id/btnContinueAsGuest" |
android:layout_height="wrap_content" |
||||
android:layout_width="match_parent" |
android:layout_marginBottom="24dp" |
||||
|
android:layout_marginTop="24dp" |
||||
|
android:padding="12dp" |
||||
|
android:text="@string/btn_login" |
||||
|
android:textSize="18sp"/> |
||||
|
|
||||
|
<Button |
||||
|
android:id="@+id/btnContinueAsGuest" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_marginBottom="24dp" |
||||
|
android:layout_marginTop="40dip" |
||||
|
android:background="@null" |
||||
|
android:text="@string/btn_continue_as_guest" |
||||
|
android:textAllCaps="false" |
||||
|
android:textSize="15sp"/> |
||||
|
|
||||
|
</LinearLayout> |
||||
|
</ScrollView> |
||||
|
|
||||
|
<LinearLayout |
||||
|
android:id="@+id/login_progress_bar" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="match_parent" |
||||
|
android:gravity="center" |
||||
|
android:orientation="vertical" |
||||
|
android:visibility="invisible"> |
||||
|
|
||||
|
<ProgressBar |
||||
|
style="?android:attr/progressBarStyleInverse" |
||||
|
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="24dp" |
android:layout_gravity="center" |
||||
android:layout_marginTop="40dip" |
android:background="@drawable/login_progress_bar_bg"/> |
||||
android:background="@null" |
|
||||
android:text="@string/btn_continue_as_guest" |
|
||||
android:textAllCaps="false" |
|
||||
android:textSize="15sp"/> |
|
||||
|
|
||||
|
<TextView |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_gravity="center" |
||||
|
android:layout_marginTop="10dp" |
||||
|
android:text="@string/login_spinner" |
||||
|
android:textColor="@color/accent" |
||||
|
android:textSize="20sp" |
||||
|
android:textStyle="bold"/> |
||||
</LinearLayout> |
</LinearLayout> |
||||
</ScrollView> |
</RelativeLayout> |
Loading…
Reference in new issue