mirror of
https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC.git
synced 2024-12-22 12:30:16 +02:00
MOB-14 changed the placement of views inside the layout
This commit is contained in:
parent
24b5e89751
commit
804b4472e8
2
MobileAuthApp/.idea/misc.xml
generated
2
MobileAuthApp/.idea/misc.xml
generated
@ -8,7 +8,7 @@
|
|||||||
<entry key="..\:/Users/henri/Desktop/Tarkvaraprojekt/Estonian-ID-card-mobile-authenticator-POC/MobileAuthApp/app/src/main/res/layout/fragment_can.xml" value="0.1598731884057971" />
|
<entry key="..\:/Users/henri/Desktop/Tarkvaraprojekt/Estonian-ID-card-mobile-authenticator-POC/MobileAuthApp/app/src/main/res/layout/fragment_can.xml" value="0.1598731884057971" />
|
||||||
<entry key="..\:/Users/henri/Desktop/Tarkvaraprojekt/Estonian-ID-card-mobile-authenticator-POC/MobileAuthApp/app/src/main/res/layout/fragment_home.xml" value="0.17300724637681159" />
|
<entry key="..\:/Users/henri/Desktop/Tarkvaraprojekt/Estonian-ID-card-mobile-authenticator-POC/MobileAuthApp/app/src/main/res/layout/fragment_home.xml" value="0.17300724637681159" />
|
||||||
<entry key="..\:/Users/henri/Desktop/Tarkvaraprojekt/Estonian-ID-card-mobile-authenticator-POC/MobileAuthApp/app/src/main/res/layout/fragment_pin.xml" value="0.1598731884057971" />
|
<entry key="..\:/Users/henri/Desktop/Tarkvaraprojekt/Estonian-ID-card-mobile-authenticator-POC/MobileAuthApp/app/src/main/res/layout/fragment_pin.xml" value="0.1598731884057971" />
|
||||||
<entry key="..\:/Users/henri/Desktop/Tarkvaraprojekt/Estonian-ID-card-mobile-authenticator-POC/MobileAuthApp/app/src/main/res/layout/fragment_user.xml" value="0.1598731884057971" />
|
<entry key="..\:/Users/henri/Desktop/Tarkvaraprojekt/Estonian-ID-card-mobile-authenticator-POC/MobileAuthApp/app/src/main/res/layout/fragment_user.xml" value="0.35170603674540685" />
|
||||||
</map>
|
</map>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
@ -36,9 +36,8 @@ class UserFragment : Fragment() {
|
|||||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
super.onViewCreated(view, savedInstanceState)
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
|
||||||
binding!!.firstName.text = getString(R.string.info_text, "First name", viewModel.userFirstName)
|
binding!!.userName.text = getString(R.string.user_name, viewModel.userFirstName, viewModel.userLastName)
|
||||||
binding!!.lastName.text = getString(R.string.info_text, "Last name", viewModel.userLastName)
|
binding!!.identificationNumber.text = viewModel.userIdentificationNumber
|
||||||
binding!!.identificationNumber.text = getString(R.string.info_text, "Idenfitication number", viewModel.userIdentificationNumber)
|
|
||||||
binding!!.clearButton.setOnClickListener { goToTheStart() }
|
binding!!.clearButton.setOnClickListener { goToTheStart() }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,53 +8,42 @@
|
|||||||
tools:context=".UserFragment">
|
tools:context=".UserFragment">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/user_fragment_text"
|
android:id="@+id/user_name_label"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/user_fragment"
|
android:text="@string/user_name_label"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
android:layout_marginTop="24dp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent" />
|
app:layout_constraintEnd_toEndOf="parent" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/test_info_output"
|
android:id="@+id/user_name"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/test_info"
|
android:text="@string/user_name"
|
||||||
android:layout_marginTop="24dp"
|
android:layout_marginTop="12dp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/user_fragment_text"
|
app:layout_constraintTop_toBottomOf="@id/user_name_label"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintBottom_toTopOf="@id/identification_number_label"/>
|
||||||
app:layout_constraintBottom_toTopOf="@id/clear_button"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/first_name"
|
android:id="@+id/identification_number_label"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/info_text"
|
android:text="@string/identification_number_label"
|
||||||
android:layout_marginTop="24dp"
|
android:layout_marginTop="12dp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/test_info_output"
|
app:layout_constraintTop_toBottomOf="@id/user_name"
|
||||||
app:layout_constraintBottom_toTopOf="@id/last_name"/>
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/last_name"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/info_text"
|
|
||||||
android:layout_marginTop="24dp"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/first_name"
|
|
||||||
app:layout_constraintBottom_toTopOf="@id/identification_number"/>
|
app:layout_constraintBottom_toTopOf="@id/identification_number"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/identification_number"
|
android:id="@+id/identification_number"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/info_text"
|
android:layout_marginTop="12dp"
|
||||||
android:layout_marginTop="24dp"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/last_name"
|
app:layout_constraintTop_toBottomOf="@id/identification_number_label"
|
||||||
app:layout_constraintBottom_toTopOf="@id/clear_button"/>
|
app:layout_constraintBottom_toTopOf="@id/clear_button"/>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
@ -62,7 +51,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/clear_text"
|
android:text="@string/clear_text"
|
||||||
android:layout_marginTop="24dp"
|
android:layout_marginTop="12dp"
|
||||||
app:layout_constraintTop_toBottomOf="@id/identification_number"
|
app:layout_constraintTop_toBottomOf="@id/identification_number"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"/>
|
app:layout_constraintEnd_toEndOf="parent"/>
|
||||||
|
@ -12,9 +12,11 @@
|
|||||||
<string name="clear_text">Clear</string>
|
<string name="clear_text">Clear</string>
|
||||||
<string name="cancel_text">Cancel</string>
|
<string name="cancel_text">Cancel</string>
|
||||||
|
|
||||||
<string name="test_info">Test information</string>
|
|
||||||
<string name="info_text">%1$s: %2$s</string>
|
|
||||||
|
|
||||||
<string name="enter_can">Enter CAN</string>
|
<string name="enter_can">Enter CAN</string>
|
||||||
<string name="enter_pin">Enter PIN</string>
|
<string name="enter_pin">Enter PIN</string>
|
||||||
|
|
||||||
|
<!-- string resources for UserFragment layout -->
|
||||||
|
<string name="user_name_label">NIMI</string>
|
||||||
|
<string name="user_name">%1$s %2$s</string>
|
||||||
|
<string name="identification_number_label">ISIKUKOOD</string>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in New Issue
Block a user