Skip to content

Commit

Permalink
added headings
Browse files Browse the repository at this point in the history
  • Loading branch information
deeppp15 committed Jan 3, 2025
1 parent 8e36415 commit ed6dea2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ class TeamFragment : Fragment(), AdapterTeamList.OnClickTeamItem {
}

fragmentTeamBinding.addTeam.setOnClickListener { createTeamAlert(null) }

fragmentTeamBinding.tvFragmentInfo.text = if (TextUtils.equals(type, "enterprise")) {
getString(R.string.enterprises)
} else {
getString(R.string.team)
}
teamList = mRealm.where(RealmMyTeam::class.java).isEmpty("teamId")
.notEqualTo("status", "archived").findAllAsync()

Expand Down
26 changes: 25 additions & 1 deletion app/src/main/res/layout/fragment_team.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,41 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/secondary_bg"
android:padding="@dimen/padding_normal"
tools:context=".ui.team.TeamFragment">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimary"
android:orientation="horizontal"
android:padding="@dimen/padding_normal">
<TextView
android:id="@+id/tv_fragment_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_margin="@dimen/_10dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:padding="@dimen/padding_normal"
android:textColor="@color/textColorPrimary"
android:textSize="@dimen/text_size_large"
android:textStyle="bold"
android:minWidth="150dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>

<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:labelFor="@+id/et_search"
android:padding="@dimen/padding_normal"
android:textColorHint="@color/hint_color">

<EditText
Expand All @@ -33,6 +56,7 @@
android:id="@+id/tableTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/padding_normal"
android:layout_marginStart="8dp">

<TextView
Expand Down

0 comments on commit ed6dea2

Please sign in to comment.