This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public reqfields(formName: FormGroup) { | |
| let arr = []; | |
| Object.keys(formName.controls).forEach(formControl => { | |
| if (formName.controls[formControl].errors && formName.controls[formControl].errors != null) { | |
| let obj = { | |
| controlName: formControl, | |
| errors: formName.controls[formControl].errors['required'] | |
| } | |
| arr.push(obj); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.meet.customadapter; | |
| import android.widget.TextView; | |
| public class employee_view_holder { | |
| TextView tvid; | |
| TextView tvname; | |
| public employee_view_holder(TextView tvid, TextView tvname) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.meet.customadapter; | |
| import android.content.Context; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.BaseAdapter; | |
| import android.widget.TextView; | |
| import java.util.ArrayList; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" | |
| android:layout_height="match_parent"> | |
| <LinearLayout | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" > | |
| <TextView |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.meet.customadapter; | |
| public class employee { | |
| int id; | |
| String name; | |
| public employee(int id, String name) { | |
| this.id = id; | |
| this.name = name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <ListView | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:id="@+id/lstemp"> | |
| </ListView> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.meet.customadapter; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.widget.ListView; | |
| import java.util.ArrayList; | |
| public class MainActivity extends AppCompatActivity { |