Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
4ff269e7
Commit
4ff269e7
authored
Mar 02, 2019
by
Arthur Diniz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create header text of edittext and it style
Signed-off-by:
Arthur Diniz
<
arthurbdiniz@gmail.com
>
parent
345d5cf1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
4 deletions
+34
-4
fragment_profile.xml
app/src/main/res/layout/fragment_profile.xml
+23
-3
strings.xml
app/src/main/res/values/strings.xml
+1
-1
styles.xml
app/src/main/res/values/styles.xml
+10
-0
No files found.
app/src/main/res/layout/fragment_profile.xml
View file @
4ff269e7
...
...
@@ -29,37 +29,57 @@
android:layout_height=
"wrap_content"
android:layout_marginTop=
"32dp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
style=
"@style/Profile.TextView"
android:text=
"@string/msg_name"
/>
<EditText
android:id=
"@+id/text_name"
style=
"@style/Profile.EditText"
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
android:layout_marginTop=
"
32
dp"
android:layout_marginTop=
"
8
dp"
android:drawableStart=
"@drawable/ic_person_black_20dp"
android:hint=
"@string/msg_name"
android:inputType=
"textCapWords"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
style=
"@style/Profile.TextView"
android:text=
"@string/msg_username"
/>
<EditText
android:id=
"@+id/text_username"
style=
"@style/Profile.EditText"
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
android:layout_marginTop=
"
16
dp"
android:layout_marginTop=
"
8
dp"
android:drawableStart=
"@drawable/ic_at_black_20dp"
android:hint=
"@string/msg_username"
android:inputType=
"text"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
style=
"@style/Profile.TextView"
android:text=
"@string/msg_email"
/>
<EditText
android:id=
"@+id/text_email"
style=
"@style/Profile.EditText"
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
android:layout_marginTop=
"
16
dp"
android:layout_marginTop=
"
8
dp"
android:layout_marginBottom=
"16dp"
android:drawableStart=
"@drawable/ic_email_black_20dp"
android:hint=
"@string/msg_email"
android:inputType=
"textEmailAddress"
/>
</LinearLayout>
</ScrollView>
<com.wang.avi.AVLoadingIndicatorView
...
...
app/src/main/res/values/strings.xml
View file @
4ff269e7
...
...
@@ -90,7 +90,7 @@ https://github.com/RocketChat/java-code-styles/blob/master/CODING_STYLE.md#strin
<string
name=
"msg_check_this_out"
>
Check this out
</string>
<string
name=
"msg_share_using"
>
Share using
</string>
<string
name=
"msg_profile_update_successfully"
>
Profile update successfully
</string>
<string
name=
"msg_username"
>
u
sername
</string>
<string
name=
"msg_username"
>
U
sername
</string>
<string
name=
"msg_username_or_email"
>
Username or email
</string>
<string
name=
"msg_password"
>
Password
</string>
<string
name=
"msg_name"
>
Name
</string>
...
...
app/src/main/res/values/styles.xml
View file @
4ff269e7
...
...
@@ -249,6 +249,16 @@
// REMARK: To be removed.
<style
name=
"Profile.EditText"
parent=
"Authentication.EditText.Border"
/>
<style
name=
"Profile.TextView"
parent=
"TextAppearance.AppCompat.Title"
>
<item
name=
"android:textSize"
>
16sp
</item>
<item
name=
"android:fontFamily"
>
sans-serif-medium
</item>
<item
name=
"android:textStyle"
>
normal
</item>
<item
name=
"android:layout_marginTop"
>
24dp
</item>
<item
name=
"android:layout_gravity"
>
left
</item>
<item
name=
"android:textColor"
>
@color/colorPrimary
</item>
<item
name=
"android:maxLines"
>
1
</item>
</style>
<style
name=
"ActionModeStyle"
parent=
"ThemeOverlay.AppCompat.Dark.ActionBar"
>
<item
name=
"android:actionModeCloseDrawable"
>
@drawable/ic_close_white_24dp
</item>
<item
name=
"actionModeCloseDrawable"
>
@drawable/ic_close_white_24dp
</item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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