Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erchenger/SizeAdjustingTextView
This is based on an open source autosizing textview for Android.
https://github.com/erchenger/SizeAdjustingTextView
Last synced: about 2 months ago
JSON representation
This is based on an open source autosizing textview for Android.
- Host: GitHub
- URL: https://github.com/erchenger/SizeAdjustingTextView
- Owner: erchenger
- License: gpl-2.0
- Created: 2014-01-18T14:25:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-07T20:43:33.000Z (over 9 years ago)
- Last Synced: 2024-07-31T18:16:51.136Z (4 months ago)
- Language: Java
- Size: 924 KB
- Stars: 253
- Watchers: 12
- Forks: 53
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- -awesome-android-ui - SizeAdjustingTextView - 3.0.en.html) | NONE (Index `(light-weight pages)`)
- awesome-android-ui - SizeAdjustingTextView - 3.0.en.html) | NONE (Index `(light-weight pages)`)
- awesome-android-ui - SizeAdjustingTextView - 3.0.en.html) | NONE (Index)
- awesome-android-ui - https://github.com/erchenger/SizeAdjustingTextView
- awesome-android-ui - https://github.com/erchenger/SizeAdjustingTextView
- awesome - SizeAdjustingTextView - This is based on an open source autosizing textview for Android. (etc)
- awesome - SizeAdjustingTextView - This is based on an open source autosizing textview for Android. (etc)
README
SizeAdjustingTextView
=====================This is based on an open source autosizing textview for Android I found a few weeks ago. The initial approach
didn't resize multiple lines and wasn't maintained to keep up with changes in Android. I decided to go ahead
and create this as a place to preserve the auto sizing text view as well as giving it a platform for some change
and to possibly add some features and functionality.## Usage
To use the SizeAdjustingTextView make sure you have the custom view somewhere in your project.
From there when using XML Layouts you can simply use the com.some.package.name.SizeAdjustingTextView
widget and thats it. From there you need to make sure that you set a text size as the baseline for the view.
```XML```
Lastly when using custom views in XML, make sure you have the XLMNS tag in the root of the layout tag.
```XML
xmlns:app="http://schemas.android.com/apk/res/com.example.SizeAdjustingTextView"
```I didn't want to make this a library because there is no need for adding a library for one view. Just port over the SizeAdjustingTextView and you should be good.