Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hds
flexin
android-app
Commits
9f84c96d
Commit
9f84c96d
authored
Oct 28, 2017
by
Nastuzzi Samy
Browse files
Optimization
Use GridLayout
parent
62b759f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/res/layout/activity_main.xml
View file @
9f84c96d
<?xml version="1.0" encoding="utf-8"?>
<
Relative
Layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
Grid
Layout
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"
tools:context=
"fr.utc.simde.payutc.MainActivity"
android:layout_width=
"fill_parent"
android:layout_height=
"fill_parent"
>
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:rowCount=
"2"
>
<LinearLayout
android:layout_width=
"
fill
_parent"
android:layout_
h
eight=
"
fill_parent
"
android:layout_width=
"
match
_parent"
android:layout_
rowW
eight=
"
1
"
android:gravity=
"center"
android:orientation=
"vertical"
android:layout_alignParentTop=
"true"
android:layout_alignParentStart=
"true"
>
android:orientation=
"vertical"
>
<ImageView
android:id=
"@+id/img_payutc"
android:layout_width=
"100dp"
android:layout_height=
"100dp"
android:layout_marginBottom=
"25dp"
android:src=
"@mipmap/ic_launcher_round"
/>
android:layout_margin=
"25dp"
android:src=
"@mipmap/ic_launcher_round"
android:contentDescription=
"@string/app_name"
/>
<TextView
android:id=
"@+id/text_app_config"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"5
0
dp"
android:layout_marginBottom=
"
2
5dp"
android:textStyle=
"bold"
android:gravity=
"center"
android:text=
"@string/app_not_configured"
/>
...
...
@@ -42,24 +43,17 @@
android:id=
"@+id/button_username"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"100dp"
android:text=
"@string/connexion"
/>
</LinearLayout>
<RelativeLayout
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
>
<TextView
android:id=
"@+id/text_app_registered"
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:textStyle=
"italic"
android:layout_margin=
"10dp"
android:text=
"@string/app_not_registred"
/>
</RelativeLayout>
</RelativeLayout>
<TextView
android:id=
"@+id/text_app_registered"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_rowWeight=
"1"
android:gravity=
"center"
android:textStyle=
"italic"
android:layout_margin=
"10dp"
android:text=
"@string/app_not_registred"
/>
</GridLayout>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment