Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

wtw-software/AndroidLabeledEditText

Repository files navigation

!!DEPRECATED!!

AndroidLabeledEditText

<dependency>
  <groupId>no.wtw.android</groupId>
  <artifactId>android-labeled-edittext</artifactId>
  <type>apklib</type>
  <version>xxx</version>
</dependency>

Usage

Add a new namespace attribute to your root layout container.

xmlns:app="http://schemas.android.com/apk/res-auto"

Add and use LabeledEditText as you would any other EditText widget, with the exception of three new attributes.

<no.wtw.android.labelededittext.widget.LabeledEditText
  ...
  app:label="The label:"
  app:labelMargin="16dp"
  app:labelColor="@color/my_label_color_or_color_statelist"
  ... 
  />

Automagic

  • label defaults to hint, if hint is set.
  • If both hint and label are set, AND they match, only label will be displayed.
  • labelMargin defaults to 16dp.
  • labelColor defaults to hintColor.

About

EditText widget with embedded label

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages